mirror of
https://github.com/0ldsk00l/nestopia.git
synced 2024-06-22 06:02:26 -04:00
Fix DIP Switches in FLTK port
This commit is contained in:
parent
70f71ca630
commit
013c441255
|
@ -226,7 +226,7 @@ void nst_dip_handle(const char *dippath) {
|
|||
root.AddAttribute(L"version", L"1.0");
|
||||
|
||||
wchar_t wbuf[32];
|
||||
char buf[2];
|
||||
char buf[32];
|
||||
|
||||
int numdips = dipswitches.NumDips();
|
||||
|
||||
|
@ -234,7 +234,8 @@ void nst_dip_handle(const char *dippath) {
|
|||
for (int i = 0; i < numdips; i++) {
|
||||
Xml::Node node(root.AddChild(L"dip"));
|
||||
|
||||
mbstowcs(wbuf, dipswitches.GetDipName(i), sizeof(wbuf));
|
||||
snprintf(buf, sizeof(buf), "%s", dipswitches.GetDipName(i));
|
||||
mbstowcs(wbuf, buf, sizeof(buf));
|
||||
node.AddChild(L"description", wbuf);
|
||||
|
||||
snprintf(buf, sizeof(buf), "%d", dipswitches.GetValue(i));
|
||||
|
|
|
@ -101,7 +101,6 @@ static void NST_CALLBACK nst_cb_event(void *userData, User::Event event, const v
|
|||
fprintf(stderr, "Cpu: Unofficial Opcode %s\n", (const char*)data);
|
||||
break;
|
||||
case User::EVENT_DISPLAY_TIMER:
|
||||
fprintf(stderr, "\r%s", (const char*)data);
|
||||
nst_video_print_time((const char*)data + strlen((char*)data) - 5, true);
|
||||
break;
|
||||
default: break;
|
||||
|
|
Loading…
Reference in a new issue