debugger: Hopefully fix undefined names in Cocoa debugger.

This commit is contained in:
Vas Crabb 2022-12-02 02:55:28 +11:00
parent 516f6b5d2b
commit 27e761f628
2 changed files with 6 additions and 2 deletions

View File

@ -8,6 +8,8 @@
#import "debugosx.h"
#include "util/utilfwd.h"
#import <Cocoa/Cocoa.h>

View File

@ -12,6 +12,8 @@
#import "debugcommandhistory.h"
#include "util/xmlfile.h"
@implementation MAMEDebugCommandHistory
@ -124,14 +126,14 @@
[self clear];
util::xml::data_node const *const hist = node->get_child(osd::debugger::NODE_WINDOW_HISTORY);
if (hist) {
util::xml::data_node const *item = hist->get_child(NODE_HISTORY_ITEM);
util::xml::data_node const *item = hist->get_child(osd::debugger::NODE_HISTORY_ITEM);
while (item) {
if (item->get_value() && *item->get_value()) {
while ([history count] >= length)
[history removeLastObject];
[history insertObject:[NSString stringWithUTF8String:item->get_value()] atIndex:0];
}
item = item->get_next_sibling(NODE_HISTORY_ITEM);
item = item->get_next_sibling(osd::debugger::NODE_HISTORY_ITEM);
}
}
}