Skip to content

Commit

Permalink
Allow monitor to create save states with FLTK app (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
chuma authored May 31, 2022
1 parent 5f53fc1 commit 3f74a6d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,8 @@ DerivedData/
/Drivers/packages/MemDumper
/Drivers/EinsteinPortEnabler/portenabler.ntkc
/_Build_/AndroidStudioNative/einstein/signingConfigRelease.properties
fltk/
*.gch
CMakeCache.txt
CMakeFiles/cmake.check_cache
newt64/
3 changes: 2 additions & 1 deletion Monitor/TMonitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,10 @@ TMonitor::SaveEmulatorState(const char* inFilename)
{
inFilename = "/tmp/einstein.state";
}
mEmulator->SaveState(inFilename);

#if !TARGET_UI_FLTK
char someByte = 0;
mEmulator->SaveState(inFilename);
(void) ::write(mSocketPair[1], &someByte, 1);
#endif
}
Expand Down

0 comments on commit 3f74a6d

Please sign in to comment.