mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-09-24 10:41:39 +02:00
Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
6a17b5ed4f |
@@ -1,4 +1,4 @@
|
||||
static const char bsnesVersion[] = "0.053";
|
||||
static const char bsnesVersion[] = "0.054";
|
||||
static const char bsnesTitle[] = "bsnes";
|
||||
static const unsigned bsnesSaveStateVersion = 3;
|
||||
|
||||
|
@@ -20,7 +20,7 @@ bool System::unserialize(serializer &s) {
|
||||
|
||||
if(signature != 0x31545342) return false;
|
||||
if(version != bsnesSaveStateVersion) return false;
|
||||
if(crc32 != cartridge.crc32()) return false;
|
||||
//if(crc32 != cartridge.crc32()) return false;
|
||||
scheduler.init();
|
||||
|
||||
serialize_all(s);
|
||||
|
@@ -114,6 +114,7 @@ void Application::init() {
|
||||
inputManager.refresh();
|
||||
inputManager.onInput = bind(&Utility::inputEvent, &utility);
|
||||
|
||||
utility.resizeMainWindow();
|
||||
utility.updateAvSync();
|
||||
utility.updateVideoMode();
|
||||
utility.updateColorFilter();
|
||||
|
@@ -50,9 +50,12 @@ const char defaultStylesheet[] =
|
||||
int main(int argc, char **argv) {
|
||||
application.main(argc, argv);
|
||||
#if defined(PLATFORM_WIN)
|
||||
//workaround: one of the Qt DLLs hangs during its termination, well after main() returns.
|
||||
//to prevent the process from remaining open in the background, it must be forcefully terminated.
|
||||
TerminateProcess(GetCurrentProcess(), 0);
|
||||
//Qt/Windows has a few bugs that cause the process to hang and/or crash when
|
||||
//unloading DLLs. 4.5.x always hangs, and 4.6.x crashes under certain
|
||||
//circumstances. However, all DLLs must unload for profiling to work.
|
||||
//The below code bypasses Qt DLL unloading, but only when the binary is named
|
||||
//as such to indicate that profile generation is taking place.
|
||||
if(strpos(argv[0], "bsnes-profile") < 0) TerminateProcess(GetCurrentProcess(), 0);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user