* win32: fixed fceux.cfg loading bug caused by r2689

* Taseditor: straighten out pause_frame logic (seriously)
This commit is contained in:
ansstuff 2012-10-09 15:17:20 +00:00
parent f5339a36d6
commit 39414012b1
3 changed files with 8 additions and 8 deletions

View File

@ -641,6 +641,11 @@ int main(int argc,char *argv[])
// Get the base directory // Get the base directory
GetBaseDirectory(); GetBaseDirectory();
// load fceux.cfg
sprintf(TempArray,"%s\\%s",BaseDirectory.c_str(),cfgFile.c_str());
LoadConfig(TempArray);
//initDirectories();
// Parse the commandline arguments // Parse the commandline arguments
t = ParseArgies(argc, argv); t = ParseArgies(argc, argv);
@ -648,8 +653,8 @@ int main(int argc,char *argv[])
if (ConfigToLoad) if (ConfigToLoad)
{ {
// alternative config file specified
cfgFile.assign(ConfigToLoad); cfgFile.assign(ConfigToLoad);
//initDirectories();
// Load the config information // Load the config information
sprintf(TempArray,"%s\\%s",BaseDirectory.c_str(),cfgFile.c_str()); sprintf(TempArray,"%s\\%s",BaseDirectory.c_str(),cfgFile.c_str());
LoadConfig(TempArray); LoadConfig(TempArray);
@ -679,12 +684,6 @@ int main(int argc,char *argv[])
FCEUI_SetPCMVolume(soundPCMvol); FCEUI_SetPCMVolume(soundPCMvol);
} }
if (!ConfigToLoad)
{
sprintf(TempArray,"%s\\%s",BaseDirectory.c_str(),cfgFile.c_str());
LoadConfig(TempArray);
}
//Since a game doesn't have to be loaded before the GUI can be used, make //Since a game doesn't have to be loaded before the GUI can be used, make
//sure the temporary input type variables are set. //sure the temporary input type variables are set.
ParseGIInput(NULL); ParseGIInput(NULL);

View File

@ -312,7 +312,7 @@ void PLAYBACK::MiddleButtonClick()
jump(selection_beginning); jump(selection_beginning);
SeekingStart(saved_currFrameCounter); SeekingStart(saved_currFrameCounter);
} }
} else if (GetLostPosition() > currFrameCounter && greenzone.SavestateIsEmpty(GetLostPosition())) } else if (GetLostPosition() >= greenzone.GetSize())
{ {
RestorePosition(); RestorePosition();
} else } else

View File

@ -1,2 +1,3 @@
call SubWCRev.bat
call archive.bat call archive.bat
call upload.bat %1 call upload.bat %1