#include <SDL.h>
#include <time.h>
#include "file.h"
-#include "gui.h"
+//#include "gui.h"
#include "jaguar.h"
#include "log.h"
#include "memory.h"
//Maybe we should move the video stuff to TOM? Makes more sense to put it there...
//Actually, it would probably be better served in VIDEO.CPP... !!! FIX !!! [DONE]
//uint32 totalFrames;//temp, so we can grab this from elsewhere...
-int main(int argc, char * argv[])
+int main_old(int argc, char * argv[])
{
//NOTE: This isn't actually used anywhere... !!! FIX !!!
int32 nFrameskip = 0; // Default: Show every frame
WriteLog("VJ: SDL successfully initialized.\n");
- WriteLog("Initializing memory subsystem...\n");
- MemoryInit();
+// WriteLog("Initializing memory subsystem...\n");
+// MemoryInit();
#ifdef VJ_RELEASE_VERSION
WriteLog("Virtual Jaguar %s (Last full build was on %s %s)\n", VJ_RELEASE_VERSION, __DATE__, __TIME__);
#else
// Get the BIOS ROM
#ifdef USE_BUILT_IN_BIOS
WriteLog("VJ: Using built in BIOS/CD BIOS...\n");
- memcpy(jaguarBootRom, jagBootROM, 0x20000);
+ memcpy(jaguarBootROM, jagBootROM, 0x20000);
memcpy(jaguarCDBootROM, jagCDROM, 0x40000);
BIOSLoaded = CDBIOSLoaded = true;
#else
// What would be nice here would be a way to check if the BIOS was loaded so that we
// could disable the pushbutton on the Misc Options menu... !!! FIX !!! [DONE here, but needs to be fixed in GUI as well!]
WriteLog("About to attempt to load BIOSes...\n");
- BIOSLoaded = (JaguarLoadROM(jaguarBootRom, vjs.jagBootPath) == 0x20000 ? true : false);
+ BIOSLoaded = (JaguarLoadROM(jaguarBootROM, vjs.jagBootPath) == 0x20000 ? true : false);
WriteLog("VJ: BIOS is %savailable...\n", (BIOSLoaded ? "" : "not "));
CDBIOSLoaded = (JaguarLoadROM(jaguarCDBootROM, vjs.CDBootPath) == 0x40000 ? true : false);
WriteLog("VJ: CD BIOS is %savailable...\n", (CDBIOSLoaded ? "" : "not "));
#endif
- SET32(jaguarMainRam, 0, 0x00200000); // Set top of stack...
+ SET32(jaguarMainRAM, 0, 0x00200000); // Set top of stack...
WriteLog("Initializing video subsystem...\n");
VideoInit();
WriteLog("Initializing GUI subsystem...\n");
- GUIInit();
+#warning "!!! FIX !!! (GUIInit())"
+// GUIInit();
// Now with crunchy GUI goodness!
WriteLog("About to start GUI...\n");
- GUIMain(haveCart ? argv[1] : NULL);
+#warning "!!! FIX !!! (GUIMain(...))"
+// GUIMain(haveCart ? argv[1] : NULL);
//This is no longer accurate...!
// int elapsedTime = clock() - startTime;
JaguarDone();
VideoDone();
- MemoryDone();
+// MemoryDone();
LogDone();
// Free SDL components last...!
SDL_QuitSubSystem(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK | SDL_INIT_AUDIO | SDL_INIT_TIMER);
SDL_Quit();
- return 0;
+ return 0;
}