summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
627d17f)
EEPROM directory creation allowed only for Windows at the moment.
/Win-VS2017/GeneratedFiles/\r
/Win-VS2017/GeneratedFiles/qrc_virtualjaguar.cpp\r
/Win-VS2017/My Inspector Results - virtualjaguar\r
/Win-VS2017/GeneratedFiles/\r
/Win-VS2017/GeneratedFiles/qrc_virtualjaguar.cpp\r
/Win-VS2017/My Inspector Results - virtualjaguar\r
-- Will avoid source code mismatching with the ELF executable
15) Remove Visual Studio 2015 support
16) Project has switched to libdwarf 20201020 library 64bits for VS 2017
-- Will avoid source code mismatching with the ELF executable
15) Remove Visual Studio 2015 support
16) Project has switched to libdwarf 20201020 library 64bits for VS 2017
+17) Work around fix for a compilation error on Linux
+-- EEPROM directory creation allowed only for Windows at the moment
Release 4a (15th August 2019)
-----------------------------
Release 4a (15th August 2019)
-----------------------------
// JLH = James Hammons <jlhamm@acm.org>\r
// JPM = Jean-Paul Mari <djipi.mari@gmail.com>\r
//\r
// JLH = James Hammons <jlhamm@acm.org>\r
// JPM = Jean-Paul Mari <djipi.mari@gmail.com>\r
//\r
-// Who When What\r
-// --- ---------- ------------------------------------------------------------\r
-// JLH 01/16/2010 Created this log ;-)\r
-// JPM 10/11/2017 Directory detection and creation if missing\r
+// Who When (MM/DD/YY) What\r
+// --- --------------- ------------------------------------------------------------\r
+// JLH 01/16/2010 Created this log ;-)\r
+// JPM 10/11/2017 EEPROM directory detection and creation if missing\r
+// JPM 11/18/2020 EEPROM directory creation allowed only for Windows\r
//\r
\r
#include "eeprom.h"\r
//\r
\r
#include "eeprom.h"\r
+#else\r
+#define _mkdir(dir) 1\r
+#endif\r
#include <stdlib.h>\r
#include <string.h> // For memset\r
#include "jaguar.h"\r
#include <stdlib.h>\r
#include <string.h> // For memset\r
#include "jaguar.h"\r
void EepromReset(void)\r
{\r
if (!haveEEPROM)\r
void EepromReset(void)\r
{\r
if (!haveEEPROM)\r
memset(eeprom_ram, 0xFF, 64 * sizeof(uint16_t));\r
memset(eeprom_ram, 0xFF, 64 * sizeof(uint16_t));\r
\r
if (!haveCDROMEEPROM)\r
\r
if (!haveCDROMEEPROM)\r
memset(cdromEEPROM, 0xFF, 64 * sizeof(uint16_t));\r
memset(cdromEEPROM, 0xFF, 64 * sizeof(uint16_t));\r
uint8_t buffer[128];\r
size_t ignored = fread(buffer, 1, 128, file);\r
\r
uint8_t buffer[128];\r
size_t ignored = fread(buffer, 1, 128, file);\r
\r
- for(int i=0; i<64; i++)\r
+ for (int i = 0; i < 64; i++)\r
+ {\r
ram[i] = (buffer[(i * 2) + 0] << 8) | buffer[(i * 2) + 1];\r
ram[i] = (buffer[(i * 2) + 0] << 8) | buffer[(i * 2) + 1];\r