The emulator is now almost completely Unicode - this means all paths and file names used can now use non-Latin characters;

Fixed several NVR- and ROM-related bugs in the process of doing the above.
This commit is contained in:
OBattler
2017-05-06 04:02:03 +02:00
parent cee82642ef
commit c403855a94
48 changed files with 524 additions and 680 deletions

View File

@@ -4,7 +4,9 @@
#include <stdlib.h>
#include "ibm.h"
#include "device.h"
#include "mem.h"
#include "io.h"
#include "rom.h"
#include "tandy_eeprom.h"
typedef struct
@@ -124,10 +126,10 @@ void *tandy_eeprom_init()
switch (romset)
{
case ROM_TANDY1000HX:
f = romfopen(nvr_concat("tandy1000hx.bin"), "rb");
f = nvrfopen(L"tandy1000hx.bin", L"rb");
break;
case ROM_TANDY1000SL2:
f = romfopen(nvr_concat("tandy1000sl2.bin"), "rb");
f = nvrfopen(L"tandy1000sl2.bin", L"rb");
break;
}
if (f)
@@ -151,10 +153,10 @@ void tandy_eeprom_close(void *p)
switch (eeprom->romset)
{
case ROM_TANDY1000HX:
f = romfopen(nvr_concat("tandy1000hx.bin"), "wb");
f = nvrfopen(L"tandy1000hx.bin", L"wb");
break;
case ROM_TANDY1000SL2:
f = romfopen(nvr_concat("tandy1000sl2.bin"), "wb");
f = nvrfopen(L"tandy1000sl2.bin", L"wb");
break;
}
fwrite(eeprom->store, 128, 1, f);