From 89f740220cc04fc85689fce28438be46b655151c Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Wed, 26 Jun 2024 22:08:27 -0400 Subject: imgui and logging cleanup --- src/game.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 565f1ce..8c2bc2a 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -182,7 +182,7 @@ void ParseCamera(PkeLevel *level, std::ifstream &stream) { instPos.mass = 1.f; instPos.posRot.setIdentity(); instPos.scale = btVector3(1.f, 1.f, 1.f); - fprintf(stdout, "[ParseCamera] Failed to find instance mapping. Is this an outdated parse?"); + fprintf(stdout, "[ParseCamera] Failed to find instance mapping. Is this an outdated parse?\n"); } else { instPos = loadFileInstanceMappings.data[instanceIndex].newInstance; } @@ -276,7 +276,7 @@ void ParseInstance(Entity_Base *parentEntity, std::ifstream &stream) { mapping.newEnt = reinterpret_cast(etPtr->createInstanceCallback.func)(); } else { mapping.newEnt = EntityType_CreateGenericInstance(etPtr, parentEntity, &comp, &mapping.newInstance); - fprintf(stdout ,"[Game::ParseInstance] No callback func to create instance."); + fprintf(stdout ,"[Game::ParseInstance] Debug: entTypeCode '%s' does not have a registered callback func to handle instance creation.\n", entTypeCode); } } if (mapping.newEnt != nullptr) { @@ -449,9 +449,9 @@ void Game_SaveSceneFile(const char *sceneFilePath) { errF << stream.str(); errF.flush(); errF.close(); - fprintf(stderr, "Failed to save scene file '%s', partial output saved to '%s'", sceneFilePath, errFileName); + fprintf(stderr, "Failed to save scene file '%s', partial output saved to '%s'\n", sceneFilePath, errFileName); } else { - fprintf(stderr, "Failed to save scene file '%s' and also failed to write failed output", sceneFilePath); + fprintf(stderr, "Failed to save scene file '%s' and also failed to write failed output\n", sceneFilePath); } } } -- cgit v1.2.3