mirror of
https://github.com/holub/mame
synced 2025-06-25 13:54:37 +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"
|
#import "debugosx.h"
|
||||||
|
|
||||||
|
#include "util/utilfwd.h"
|
||||||
|
|
||||||
#import <Cocoa/Cocoa.h>
|
#import <Cocoa/Cocoa.h>
|
||||||
|
|
||||||
|
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
#import "debugcommandhistory.h"
|
#import "debugcommandhistory.h"
|
||||||
|
|
||||||
|
#include "util/xmlfile.h"
|
||||||
|
|
||||||
|
|
||||||
@implementation MAMEDebugCommandHistory
|
@implementation MAMEDebugCommandHistory
|
||||||
|
|
||||||
@ -124,14 +126,14 @@
|
|||||||
[self clear];
|
[self clear];
|
||||||
util::xml::data_node const *const hist = node->get_child(osd::debugger::NODE_WINDOW_HISTORY);
|
util::xml::data_node const *const hist = node->get_child(osd::debugger::NODE_WINDOW_HISTORY);
|
||||||
if (hist) {
|
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) {
|
while (item) {
|
||||||
if (item->get_value() && *item->get_value()) {
|
if (item->get_value() && *item->get_value()) {
|
||||||
while ([history count] >= length)
|
while ([history count] >= length)
|
||||||
[history removeLastObject];
|
[history removeLastObject];
|
||||||
[history insertObject:[NSString stringWithUTF8String:item->get_value()] atIndex:0];
|
[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