mirror of
https://github.com/holub/mame
synced 2025-06-24 21:34:43 +03:00
debugger: Hopefully fix undefined names in Cocoa debugger.
This commit is contained in:
parent
516f6b5d2b
commit
27e761f628
@ -8,6 +8,8 @@
|
||||
|
||||
#import "debugosx.h"
|
||||
|
||||
#include "util/utilfwd.h"
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user