* 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
GetBaseDirectory();
// load fceux.cfg
sprintf(TempArray,"%s\\%s",BaseDirectory.c_str(),cfgFile.c_str());
LoadConfig(TempArray);
//initDirectories();
// Parse the commandline arguments
t = ParseArgies(argc, argv);
@ -648,8 +653,8 @@ int main(int argc,char *argv[])
if (ConfigToLoad)
{
// alternative config file specified
cfgFile.assign(ConfigToLoad);
//initDirectories();
// Load the config information
sprintf(TempArray,"%s\\%s",BaseDirectory.c_str(),cfgFile.c_str());
LoadConfig(TempArray);
@ -679,12 +684,6 @@ int main(int argc,char *argv[])
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
//sure the temporary input type variables are set.
ParseGIInput(NULL);

View File

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

View File

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