if (AttachConsole != NULL && AttachConsole(((DWORD)-1)))
{
if (_fileno(stdout) == -1)
- freopen("CONOUT$","wb",stdout);
+ freopen("CONOUT$", "wb", stdout);
if (_fileno(stderr) == -1)
- freopen("CONOUT$","wb",stderr);
+ freopen("CONOUT$", "wb", stderr);
if (_fileno(stdin) == -1)
- freopen("CONIN$","rb",stdin);
+ freopen("CONIN$", "rb", stdin);
// Fix C++
std::ios::sync_with_stdio();
fclose(ctt);
#endif
#endif
- LogDone(); // Close logfile
+ // Close logfile
+ LogDone();
return retVal;
}
mainWindow = new MainWin(loadAndGo);
mainWindow->plzDontKillMyComputer = noUntunedTankPlease;
- ParseOptions(argc, argv); // Override defaults with command line (if any)
+ // Override defaults with command line (if any)
+ ParseOptions(argc, argv);
mainWindow->SyncUI();
if (loadAndGo)
+ {
mainWindow->LoadFile(filename);
+ if (!mainWindow->cartridgeLoaded)
+ printf("Could not load file \"%s\"!\n", filename.toAscii().data());
+ }
+
mainWindow->show();
}
char alpineROMPath[MAX_PATH];
char absROMPath[MAX_PATH];
#endif
+
if (m68kPC & 0x01) // Oops! We're fetching an odd address!
{
- WriteLog("M68K: Attempted to execute from an odd adress!\n\nBacktrace:\n\n");
+ WriteLog("M68K: Attempted to execute from an odd address!\n\nBacktrace:\n\n");
static char buffer[2048];
for(int i=0; i<0x400; i++)
// | ((i & 0x07C0) << 13) | ((i & 0x0700) << 8)
// | ((i & 0x003F) << 10) | ((i & 0x0030) << 4);
RGB16ToRGB32[i] = 0x000000FF
- | ((i & 0xF100) << 16) // Red
+// | ((i & 0xF100) << 16) // Red
+ | ((i & 0xF800) << 16) // Red
| ((i & 0x003F) << 18) // Green
| ((i & 0x07C0) << 5); // Blue