X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fgui.cpp;h=0c0627d877567945c974e4dc081e1bb73925f8e0;hb=6c19e4098a43c47f8cd1824902f7335e124b834f;hp=38fc12841d44b027a41acaa994319eeb1a6a91ba;hpb=7c6cd30da93c3fefde7fe189e3a0aa4a26be972d;p=virtualjaguar diff --git a/src/gui.cpp b/src/gui.cpp index 38fc128..0c0627d 100644 --- a/src/gui.cpp +++ b/src/gui.cpp @@ -5,6 +5,8 @@ // by James L. Hammons // +#include "gui.h" + #include #include // For MacOS dependency #include @@ -24,7 +26,9 @@ #include "zlib.h" #include "unzip.h" #include "sdlemu_opengl.h" -#include "gui.h" +#include "log.h" +#include "jaguar.h" +#include "eeprom.h" using namespace std; // For STL stuff @@ -68,7 +72,7 @@ bool exitGUI = false; // GUI (emulator) done variable int mouseX = 0, mouseY = 0; uint32 background[1280 * 256]; // GUI background buffer -char separator[] = "--------------------------------------------------------"; +const char separator[] = "--------------------------------------------------------"; // // Case insensitive string compare function @@ -80,7 +84,7 @@ int stringCmpi(const string &s1, const string &s2) // Select the first element of each string: string::const_iterator p1 = s1.begin(), p2 = s2.begin(); - while (p1 != s1.end() && p2 != s2.end()) // Don’t run past the end + while (p1 != s1.end() && p2 != s2.end()) // Don�t run past the end { if (toupper(*p1) != toupper(*p2)) // Compare upper-cased chars return (toupper(*p1) < toupper(*p2) ? -1 : 1);// Report which was lexically greater @@ -2070,7 +2074,7 @@ Window * RunEmu(void) else if (jaguar_mainRom_crc32 == 0x55A0669C) cartType = 3; - char * cartTypeName[5] = { "2M Cartridge", "4M Cartridge", "CD BIOS", "CD Dev BIOS", "Homebrew" }; + const char * cartTypeName[5] = { "2M Cartridge", "4M Cartridge", "CD BIOS", "CD Dev BIOS", "Homebrew" }; uint32 elapsedTicks = SDL_GetTicks(), frameCount = 0, framesPerSecond = 0; while (!finished)