Cascade operations to make loading smoother
This commit is contained in:
parent
85ad7ec37c
commit
f888130c9e
|
@ -293,7 +293,7 @@ function V86Starter(options)
|
||||||
{
|
{
|
||||||
if(index === total)
|
if(index === total)
|
||||||
{
|
{
|
||||||
done();
|
setTimeout(done, 0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -336,20 +336,26 @@ function V86Starter(options)
|
||||||
{
|
{
|
||||||
emulator.init(settings);
|
emulator.init(settings);
|
||||||
|
|
||||||
if(settings.initial_state)
|
setTimeout(function()
|
||||||
{
|
{
|
||||||
emulator.restore_state(settings.initial_state);
|
if(settings.initial_state)
|
||||||
}
|
{
|
||||||
|
emulator.restore_state(settings.initial_state);
|
||||||
|
}
|
||||||
|
|
||||||
if(settings.fs9p)
|
setTimeout(function()
|
||||||
{
|
{
|
||||||
settings.fs9p.OnJSONLoaded(settings.fs9p_json);
|
if(settings.fs9p)
|
||||||
}
|
{
|
||||||
|
settings.fs9p.OnJSONLoaded(settings.fs9p_json);
|
||||||
|
}
|
||||||
|
|
||||||
if(options["autostart"])
|
if(options["autostart"])
|
||||||
{
|
{
|
||||||
emulator.run();
|
emulator.run();
|
||||||
}
|
}
|
||||||
|
}, 0)
|
||||||
|
}, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue