Skip to content

Commit

Permalink
Fix in Load State GUI.
Browse files Browse the repository at this point in the history
  • Loading branch information
captainys committed Apr 18, 2021
1 parent f4ac242 commit 88718b8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions gui/src/main_gui/fsguiapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1011,17 +1011,15 @@ void FsGuiMainCanvas::State_LoadState_FileSelected(FsGuiDialog *dlg,int returnCo
YsString utf8;
utf8.EncodeUTF8(selectedStateFName.data());

subproc.Send("PAUSE");

YsString cmd;
cmd="LOADSTATE \"";
cmd.Append(utf8);
cmd.Append("\"");
subproc.Send(cmd.data());

if(true!=loadStateThenPause)
if(true==loadStateThenPause)
{
subproc.Send("RUN");
subproc.Send("PAUSE");
}

lastStateFName=selectedStateFName;
Expand Down

0 comments on commit 88718b8

Please sign in to comment.