From f27c63e119772f60c25a62c8ed0c250c05e40d3d Mon Sep 17 00:00:00 2001 From: IntelOrca Date: Wed, 4 Feb 2015 17:44:39 +0000 Subject: [PATCH] add more verbose logging --- src/object.c | 2 +- src/object_list.c | 2 ++ src/openrct2.c | 1 + src/rct2.c | 1 + src/title.c | 5 +++++ 5 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/object.c b/src/object.c index 03ce1d7d80..f055b4a6b4 100644 --- a/src/object.c +++ b/src/object.c @@ -51,7 +51,7 @@ int object_load_file(int groupIndex, const rct_object_entry *entry, int* chunkSi subsitute_path(path, RCT2_ADDRESS(RCT2_ADDRESS_OBJECT_DATA_PATH, char), (char*)installedObject + 16); - // log_verbose("loading object, %s", path); + log_verbose("loading object, %s", path); file = fopen(path, "rb"); if (file == NULL) diff --git a/src/object_list.c b/src/object_list.c index 8af58aec2f..6bbd6fc705 100644 --- a/src/object_list.c +++ b/src/object_list.c @@ -420,6 +420,8 @@ int object_read_and_load_entries(FILE *file) RCT2_GLOBAL(0x14241BC, uint32) = 0; return 0; } + + log_verbose("finished loading required objects"); return 1; } diff --git a/src/openrct2.c b/src/openrct2.c index 36dd388bdc..6300a69c15 100644 --- a/src/openrct2.c +++ b/src/openrct2.c @@ -84,6 +84,7 @@ void openrct2_launch() break; } + log_verbose("begin openrct2 loop"); openrct2_loop(); osinterface_free(); diff --git a/src/rct2.c b/src/rct2.c index 916bceb320..54f1050074 100644 --- a/src/rct2.c +++ b/src/rct2.c @@ -119,6 +119,7 @@ int rct2_init() gfx_clear(RCT2_ADDRESS(RCT2_ADDRESS_SCREEN_DPI, rct_drawpixelinfo), 10); RCT2_GLOBAL(RCT2_ADDRESS_RUN_INTRO_TICK_PART, uint8) = gGeneral_config.play_intro ? 8 : 255; + log_verbose("initialising game finished"); return 1; } diff --git a/src/title.c b/src/title.c index 422a7c2b24..d7a16d1b94 100644 --- a/src/title.c +++ b/src/title.c @@ -90,6 +90,8 @@ static void title_create_windows(); */ void title_load() { + log_verbose("loading title"); + if (RCT2_GLOBAL(0x009DEA6E, uint8) & 1) RCT2_CALLPROC_X(0x00667C15, 0, 1, 0, 0, 0, 0, 0);//Game pause toggle @@ -117,6 +119,8 @@ void title_load() title_init_showcase(); gfx_invalidate_screen(); RCT2_GLOBAL(0x009DEA66, uint16) = 0; + + log_verbose("loading title finished"); } /** @@ -171,6 +175,7 @@ static void title_update_showcase() log_fatal("OpenRCT2 can not currently cope when unable to load title screen scenario."); exit(-1); } + log_verbose("loaded title scenario"); w = window_get_main(); w->viewport_target_sprite = -1;