From 984f9d07f971779f25819acaecc7fe2388930229 Mon Sep 17 00:00:00 2001 From: HoraceAndTheSpider Date: Sun, 15 Apr 2018 22:20:30 +0100 Subject: [PATCH] Fixes issues with XML data collection. --- src/osdep/amiberry_whdbooter.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/osdep/amiberry_whdbooter.cpp b/src/osdep/amiberry_whdbooter.cpp index 7f210520..461e0b44 100644 --- a/src/osdep/amiberry_whdbooter.cpp +++ b/src/osdep/amiberry_whdbooter.cpp @@ -470,12 +470,12 @@ void whdload_auto_prefs(struct uae_prefs* p, char* filepath) { // now get the and items - //printf("found game in XML?\n"); + //printf("found game in XML\n"); auto temp_node = game_node->xmlChildrenNode; temp_node = get_node(temp_node, "hardware"); if (xmlNodeGetContent(temp_node) != nullptr) { - _stprintf(hardware_settings, "%p", xmlNodeGetContent(temp_node)); + _stprintf(hardware_settings, "%s", xmlNodeGetContent(temp_node)); // printf("%s\n",hardware_settings); game_detail = get_game_settings(hardware_settings); } @@ -484,8 +484,9 @@ void whdload_auto_prefs(struct uae_prefs* p, char* filepath) temp_node = get_node(temp_node, "custom_controls"); if (xmlNodeGetContent(temp_node) != nullptr) { - _stprintf(custom_settings, "%p", xmlNodeGetContent(temp_node)); + _stprintf(custom_settings, "%s", xmlNodeGetContent(temp_node)); // process these later + //printf("%s\n",custom_settings); } break; } @@ -502,8 +503,8 @@ void whdload_auto_prefs(struct uae_prefs* p, char* filepath) // printf("port 0: %s \n",game_detail.port0); // printf("port 1: %s \n",game_detail.port1); // printf("contrl: %s \n",game_detail.control); - // printf("fstcpr: %s \n",game_detail.fastcopper); - // printf("cpu : %s \n",game_detail.cpu); + // printf("fstcpr: %s \n",game_detail.fastcopper); + // printf("cpu : %s \n",game_detail.cpu); // printf("blitta: %s \n",game_detail.blitter); // printf("clock : %s \n",game_detail.clock); // printf("chipst: %s \n",game_detail.chipset);