X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fvj.cpp;h=ef6ea79772d992bf0c0184773e7439e0750bffe2;hb=a1ad40785ac6d954051e4e5882436da9a58cc3a6;hp=303da5310aecf2e1f127e28913815a9858b66857;hpb=91b25f65139b827132c4deb7f9d9b2501d249454;p=virtualjaguar diff --git a/src/vj.cpp b/src/vj.cpp index 303da53..ef6ea79 100644 --- a/src/vj.cpp +++ b/src/vj.cpp @@ -10,13 +10,13 @@ #include #endif -#include // POSIX, but should compile with linux & mingw... +//#include // POSIX, but should compile with linux & mingw... #include #include #include "jaguar.h" -#include "crc32.h" -#include "zlib.h" -#include "unzip.h" +//#include "crc32.h" +//#include "zlib.h" +//#include "unzip.h" #include "video.h" #include "gui.h" #include "sdlemu_opengl.h" @@ -27,10 +27,9 @@ // Private function prototypes -//void InitSDL(void); -uint32 JaguarLoadROM(uint8 *, char *); -void JaguarLoadCart(uint8 *, char *); -int gzfilelength(gzFile gd); +//uint32 JaguarLoadROM(uint8 *, char *); +//void JaguarLoadCart(uint8 *, char *); +//int gzfilelength(gzFile gd); // External variables @@ -40,16 +39,18 @@ extern uint8 * jaguar_mainRom; // Various paths -static char * jaguar_bootRom_path = "./bios/jagboot.rom"; +//static char * jaguar_bootRom_path = "./bios/jagboot.rom"; //static char *jaguar_bootRom_path="c:/jaguarEmu/newload.img"; //static char *jaguar_bootRom_path="./bios/JagOS.bin"; -char * jaguar_eeproms_path = "./eeproms/"; -char jaguar_boot_dir[1024]; +//char * jaguar_eeproms_path = "./eeproms/"; +//char jaguar_boot_dir[MAX_PATH]; -SDL_Surface * surface, * mainSurface; -int16 * backbuffer = NULL; -SDL_Joystick * joystick; -Uint32 mainSurfaceFlags = SDL_SWSURFACE; +//These should go into video.cpp... +//And they will! +//SDL_Surface * surface, * mainSurface; +//int16 * backbuffer = NULL; +//SDL_Joystick * joystick; +//Uint32 mainSurfaceFlags = SDL_SWSURFACE; bool finished = false; bool showGUI = false; @@ -61,7 +62,7 @@ char messageBuffer[200]; // The main emulator loop (what else?) // //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 !!! +//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[]) { @@ -71,7 +72,7 @@ int main(int argc, char * argv[]) int32 nFrameskip = 0; // Default: Show every frame int32 nFrame = 0; // No. of Frame - printf("Virtual Jaguar GCC/SDL Portable Jaguar Emulator v1.0.6\n"); + printf("Virtual Jaguar GCC/SDL Portable Jaguar Emulator v1.0.7\n"); printf("Based upon Virtual Jaguar core v1.0.0 by Cal2 of Potato emulation.\n"); printf("Written by Niels Wagenaar (Linux/WIN32), Caz (BeOS),\n"); printf("James L. Hammons (WIN32) and Adam Green (MacOS)\n"); @@ -79,10 +80,12 @@ int main(int argc, char * argv[]) bool haveCart = false; // Assume there is no cartridge...! + log_init("vj.log"); LoadVJSettings(); // Get config file settings... // Check the switches... ;-) - // NOTE: Command line switches can override any config file settings. + // NOTE: Command line switches can override any config file settings, thus the + // proliferation of the noXXX switches. ;-) for(int i=1; i