Fix menu IDs; always look for valid.ext in DEFAULT_DIR

This commit is contained in:
OV2 2010-10-21 23:07:11 +02:00
parent 59f68745be
commit 3018f8dac0
3 changed files with 6 additions and 3 deletions

View File

@ -393,6 +393,7 @@
#define ID_CHEAT_ENTER 40063
#define ID_CHEAT_SEARCH 40064
#define ID_CHEAT_APPLY 40065
#define ID_FILE_SAVE_SPC_DATA 40066
#define ID_HELP_ABOUT 40067
#define ID_SOUND_OPTIONS 40068
#define ID_OPTIONS_EMULATION 40069
@ -464,7 +465,6 @@
#define ID_FILE_LOADMULTICART 40153
#define ID_SOUND_16MS 40154
#define ID_SOUND_32MS 40155
#define ID_FILE_SAVE_SPC_DATA 40066
#define ID_SOUND_48MS 40156
#define ID_SOUND_64MS 40157
#define ID_SOUND_80MS 40158
@ -476,13 +476,14 @@
#define ID_SOUND_176MS 40164
#define ID_SOUND_194MS 40165
#define ID_SOUND_210MS 40166
#define ID_EMULATION_PAUSEWHENINACTIVE 40167
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 151
#define _APS_NEXT_COMMAND_VALUE 40156
#define _APS_NEXT_COMMAND_VALUE 40168
#define _APS_NEXT_CONTROL_VALUE 3018
#define _APS_NEXT_SYMED_VALUE 101
#endif

View File

@ -873,7 +873,7 @@ BEGIN
POPUP "&Emulation"
BEGIN
MENUITEM "&Pause", ID_FILE_PAUSE
MENUITEM "Pause &When Inactive", ID_SOUND_48MS
MENUITEM "Pause &When Inactive", ID_EMULATION_PAUSEWHENINACTIVE
MENUITEM SEPARATOR
MENUITEM "Se&ttings...\tAlt+F8", ID_OPTIONS_SETTINGS
END

View File

@ -3190,6 +3190,8 @@ int WINAPI WinMain(
{
Settings.StopEmulation = TRUE;
SetCurrentDirectory(S9xGetDirectoryT(DEFAULT_DIR));
// Redirect stderr and stdout to file. It wouldn't go to any commandline anyway.
FILE* fout = freopen("stdout.txt", "w", stdout);
if(fout) setvbuf(fout, NULL, _IONBF, 0);