Merge branch 'reset_linux'
This commit is contained in:
commit
56a095f0e2
4 changed files with 24 additions and 17 deletions
|
@ -268,7 +268,14 @@ void Emulator::processKeyDown(const SDL_KeyboardEvent & key, bool & quit)
|
|||
}
|
||||
case SDLK_F2:
|
||||
{
|
||||
quit = true;
|
||||
if (key.keysym.mod & KMOD_CTRL)
|
||||
{
|
||||
CtrlReset();
|
||||
}
|
||||
else
|
||||
{
|
||||
ResetMachineState();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case SDLK_F1:
|
||||
|
|
|
@ -49,16 +49,21 @@ namespace
|
|||
{
|
||||
void initialiseEmulator()
|
||||
{
|
||||
#ifdef RIFF_SPKR
|
||||
RiffInitWriteFile("/tmp/Spkr.wav", SPKR_SAMPLE_RATE, 1);
|
||||
#endif
|
||||
#ifdef RIFF_MB
|
||||
RiffInitWriteFile("/tmp/Mockingboard.wav", 44100, 2);
|
||||
#endif
|
||||
|
||||
g_nAppMode = MODE_RUNNING;
|
||||
LogFileOutput("Initialisation\n");
|
||||
|
||||
ImageInitialize();
|
||||
g_bFullSpeed = false;
|
||||
}
|
||||
|
||||
void loadEmulator()
|
||||
{
|
||||
LoadConfiguration();
|
||||
SetCurrentCLK6502();
|
||||
CheckCpu();
|
||||
GetAppleWindowTitle();
|
||||
FrameRefreshStatus(DRAW_LEDS | DRAW_BUTTON_DRIVES, true);
|
||||
|
@ -73,10 +78,12 @@ namespace
|
|||
|
||||
GetCardMgr().GetDisk2CardMgr().Reset();
|
||||
HD_Reset();
|
||||
Snapshot_Startup();
|
||||
}
|
||||
|
||||
void stopEmulator()
|
||||
void uninitialiseEmulator()
|
||||
{
|
||||
Snapshot_Shutdown();
|
||||
CMouseInterface* pMouseCard = GetCardMgr().GetMouseCard();
|
||||
if (pMouseCard)
|
||||
{
|
||||
|
@ -84,10 +91,7 @@ namespace
|
|||
}
|
||||
VideoBufferInitialize();
|
||||
MemDestroy();
|
||||
}
|
||||
|
||||
void uninitialiseEmulator()
|
||||
{
|
||||
SpkrDestroy();
|
||||
MB_Destroy();
|
||||
DSUninit();
|
||||
|
@ -219,15 +223,7 @@ void run_sdl(int argc, const char * argv [])
|
|||
|
||||
g_nMemoryClearType = options.memclear;
|
||||
|
||||
#ifdef RIFF_SPKR
|
||||
RiffInitWriteFile("/tmp/Spkr.wav", SPKR_SAMPLE_RATE, 1);
|
||||
#endif
|
||||
#ifdef RIFF_MB
|
||||
RiffInitWriteFile("/tmp/Mockingboard.wav", 44100, 2);
|
||||
#endif
|
||||
|
||||
initialiseEmulator();
|
||||
loadEmulator();
|
||||
|
||||
applyOptions(options);
|
||||
|
||||
|
@ -419,7 +415,6 @@ void run_sdl(int argc, const char * argv [])
|
|||
SDirectSound::stop();
|
||||
}
|
||||
|
||||
stopEmulator();
|
||||
uninitialiseEmulator();
|
||||
}
|
||||
|
||||
|
|
|
@ -19,6 +19,10 @@ void JoySetJoyType(UINT num, DWORD type)
|
|||
{
|
||||
}
|
||||
|
||||
void JoyReset()
|
||||
{
|
||||
}
|
||||
|
||||
#define SS_YAML_KEY_COUNTERRESETCYCLE "Counter Reset Cycle"
|
||||
#define SS_YAML_KEY_JOY0TRIMX "Joystick0 TrimX"
|
||||
#define SS_YAML_KEY_JOY0TRIMY "Joystick0 TrimY"
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
HWND g_hFrameWindow = (HWND)0;
|
||||
BOOL g_bConfirmReboot = 1;
|
||||
bool g_bFreshReset = false;
|
||||
|
||||
void FrameSetCursorPosByMousePos()
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue