summaryrefslogtreecommitdiff
path: root/src/KingSystem/Map/mapDebug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/KingSystem/Map/mapDebug.cpp')
-rw-r--r--src/KingSystem/Map/mapDebug.cpp22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/KingSystem/Map/mapDebug.cpp b/src/KingSystem/Map/mapDebug.cpp
index 0269169b..296a24e2 100644
--- a/src/KingSystem/Map/mapDebug.cpp
+++ b/src/KingSystem/Map/mapDebug.cpp
@@ -1,3 +1,23 @@
#include "KingSystem/Map/mapDebug.h"
+#include "KingSystem/ActorSystem/actActor.h"
-namespace ksys::map {} // namespace ksys::map
+namespace ksys::map {
+
+bool printDebugMsg(Object* object, const sead::SafeString& msg, const char* config_name) {
+ if (object == nullptr)
+ return false;
+
+ makeProjectMapMuuntPath(sead::FixedSafeString<0x200>(), object);
+ return true;
+}
+
+bool printDebugMsg(ksys::act::Actor* actor, const sead::SafeString& msg, const char* config_name) {
+ Object* o = actor->getMapObject();
+ if (o == nullptr)
+ return false;
+
+ makeProjectMapMuuntPath(sead::FixedSafeString<0x200>(), o);
+ return true;
+}
+
+} // namespace ksys::map