X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ffile.cpp;h=4586245656f9e9b4832299bed7ea44c100cb20e6;hb=48dd9ba5b6742935eef61cec80964afe093139ad;hp=06c6822378f2daf982bfe544cdf30983389e2c3d;hpb=10d7ab1fb217c01030a0b637f9a571c1faf61ede;p=virtualjaguar diff --git a/src/file.cpp b/src/file.cpp index 06c6822..4586245 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -8,9 +8,10 @@ // JLH = James Hammons // // Who When What -// --- ---------- ------------------------------------------------------------- +// --- ---------- ------------------------------------------------------------ // JLH 01/16/2010 Created this log ;-) -// JLH 02/28/2010 Added functions to look inside .ZIP files and handle contents +// JLH 02/28/2010 Added functions to look inside .ZIP files and handle +// contents // JLH 06/01/2012 Added function to check ZIP file CRCs against file DB // @@ -107,8 +108,9 @@ uint32_t JaguarLoadROM(uint8_t * &rom, char * path) // // Jaguar file loading -// We do a more intelligent file analysis here instead of relying on (possible false) -// file extensions which people don't seem to give two shits about anyway. :-( +// We do a more intelligent file analysis here instead of relying on (possible +// false) file extensions which people don't seem to give two shits about +// anyway. :-( // bool JaguarLoadFile(char * path) { @@ -251,14 +253,16 @@ SET16(jaguarMainRAM, 0x1000, 0x60FE); // Here: bra Here } // We can assume we have JST_NONE at this point. :-P + WriteLog("FILE: Failed to load headerless file.\n"); return false; } // // "Alpine" file loading -// Since the developers were coming after us with torches and pitchforks, we decided to -// allow this kind of thing. ;-) But ONLY FOR THE DEVS, DAMMIT! >:-U O_O +// Since the developers were coming after us with torches and pitchforks, we +// decided to allow this kind of thing. ;-) But ONLY FOR THE DEVS, DAMMIT! >:-U +// O_O // bool AlpineLoadFile(char * path) { @@ -285,7 +289,8 @@ bool AlpineLoadFile(char * path) delete[] buffer; // Maybe instead of this, we could try requiring the STUBULATOR ROM? Just a thought... - // Try setting the vector to say, $1000 and putting an instruction there that loops forever: + // Try setting the vector to say, $1000 and putting an instruction there + // that loops forever: // This kludge works! Yeah! SET32(jaguarMainRAM, 0x10, 0x00001000); // Set Exception #4 (Illegal Instruction) SET16(jaguarMainRAM, 0x1000, 0x60FE); // Here: bra Here