summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2024-06-26 22:08:27 -0400
committerJonathan Bradley <jcb@pikum.xyz>2024-06-26 22:08:27 -0400
commit89f740220cc04fc85689fce28438be46b655151c (patch)
treec4b193df7284f0e695b7a4d0d45a9b4b93d0cf39 /src/game.cpp
parent7c73f70312def33a74f1f90d0dbbceb84cd46eae (diff)
imgui and logging cleanup
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp8
1 files changed, 4 insertions, 4 deletions
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<CreateInst*>(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);
}
}
}