Fixed some Buslogic bugs;

Implemented the EuroPC JIM chip NVR saving/loading correctly.
This commit is contained in:
OBattler
2017-08-25 23:17:45 +02:00
parent d21a4fbf3c
commit 2b980aae72
5 changed files with 56 additions and 10 deletions

View File

@@ -25,6 +25,7 @@
#include "CPU/cpu.h"
#include "device.h"
#include "io.h"
#include "jim.h"
#include "mem.h"
#include "model.h"
#include "nmi.h"
@@ -279,6 +280,12 @@ void savenvr(void)
wchar_t *model_name;
wchar_t *nvr_name;
if (romset == ROM_EUROPC)
{
jim_save_nvr();
return;
}
model_name = (wchar_t *) malloc((strlen(model_get_internal_name_ex(oldmodel)) << 1) + 2);
mbstowcs(model_name, model_get_internal_name_ex(oldmodel), strlen(model_get_internal_name_ex(oldmodel)) + 1);
nvr_name = (wchar_t *) malloc((wcslen(model_name) << 1) + 2 + 8);