summaryrefslogtreecommitdiff
path: root/src/KingSystem/Map/mapDebug.cpp
diff options
context:
space:
mode:
authortheo3 <arisstephenson2@gmail.com>2022-03-11 23:55:24 -0800
committertheo3 <arisstephenson2@gmail.com>2022-03-15 22:59:12 -0700
commit4758d41d697e59d4869c23fcf1d50c4d488ca867 (patch)
treeb6688cf221bff336377cddfaaf0ead9a3d3a1d77 /src/KingSystem/Map/mapDebug.cpp
parent5fd19128f5ed169ac1726cec3911f5616aca068f (diff)
map debug stubs
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