summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKiritoDv <kiritodev01@gmail.com>2026-01-07 03:12:53 -0600
committerLywx <kiritodev01@gmail.com>2026-01-14 19:25:57 -0600
commit6d142b4977b21b0c049c0e7c48fc00d1f44a3083 (patch)
tree59618040b25253e0883433faced4c85c8eb38436 /src
parent0109ff3182895871cbaa379f7430b45c8f4381b4 (diff)
Fixed spdlog issues
Diffstat (limited to 'src')
-rw-r--r--src/factories/sm64/BehaviorScriptFactory.cpp2
-rw-r--r--src/factories/sm64/behavior/BehaviorCommand.h9
-rw-r--r--src/factories/sm64/geo/GeoCommand.h9
-rw-r--r--src/factories/sm64/level/LevelCommand.h9
4 files changed, 28 insertions, 1 deletions
diff --git a/src/factories/sm64/BehaviorScriptFactory.cpp b/src/factories/sm64/BehaviorScriptFactory.cpp
index a492c21..1033676 100644
--- a/src/factories/sm64/BehaviorScriptFactory.cpp
+++ b/src/factories/sm64/BehaviorScriptFactory.cpp
@@ -185,7 +185,7 @@ std::optional<std::shared_ptr<IParsedData>> SM64::BehaviorScriptFactory::parse(s
while(processing) {
auto opcode = static_cast<BehaviorOpcode>(cmd[0x00]);
- // SPDLOG_INFO("Processing Command {}", opcode);
+ SPDLOG_INFO("Processing Command {}", opcode);
std::vector<BehaviorArgument> arguments;
diff --git a/src/factories/sm64/behavior/BehaviorCommand.h b/src/factories/sm64/behavior/BehaviorCommand.h
index 74bc22c..d8c2fb4 100644
--- a/src/factories/sm64/behavior/BehaviorCommand.h
+++ b/src/factories/sm64/behavior/BehaviorCommand.h
@@ -245,6 +245,15 @@ inline std::ostream& operator<<(std::ostream& out, const BehaviorOpcode& opcode)
return out << output;
}
+template <>
+struct fmt::formatter<BehaviorOpcode> : fmt::formatter<std::string> {
+ auto format(const BehaviorOpcode& opcode, format_context& ctx) const {
+ std::stringstream ss;
+ ss << opcode; // This calls your operator<< above
+ return formatter<std::string>::format(ss.str(), ctx);
+ }
+};
+
#define cur_behavior_cmd_u8(offset) \
(cmd[CMD_PROCESS_OFFSET(offset)])
diff --git a/src/factories/sm64/geo/GeoCommand.h b/src/factories/sm64/geo/GeoCommand.h
index 4600d22..c2fbbf6 100644
--- a/src/factories/sm64/geo/GeoCommand.h
+++ b/src/factories/sm64/geo/GeoCommand.h
@@ -153,6 +153,15 @@ inline std::ostream& operator<<(std::ostream& out, const GeoOpcode& opcode) {
return out << output;
}
+template <>
+struct fmt::formatter<GeoOpcode> : fmt::formatter<std::string> {
+ auto format(const GeoOpcode& opcode, format_context& ctx) const {
+ std::stringstream ss;
+ ss << opcode; // This calls your operator<< above
+ return formatter<std::string>::format(ss.str(), ctx);
+ }
+};
+
#define cur_geo_cmd_u8(offset) \
(cmd[CMD_PROCESS_OFFSET(offset)])
diff --git a/src/factories/sm64/level/LevelCommand.h b/src/factories/sm64/level/LevelCommand.h
index b47d84a..8b917a8 100644
--- a/src/factories/sm64/level/LevelCommand.h
+++ b/src/factories/sm64/level/LevelCommand.h
@@ -265,6 +265,15 @@ inline std::ostream& operator<<(std::ostream& out, const LevelOpcode& opcode) {
return out << output;
}
+template <>
+struct fmt::formatter<LevelOpcode> : fmt::formatter<std::string> {
+ auto format(const LevelOpcode& opcode, format_context& ctx) const {
+ std::stringstream ss;
+ ss << opcode; // This calls your operator<< above
+ return formatter<std::string>::format(ss.str(), ctx);
+ }
+};
+
#define cur_level_cmd_u8(offset) \
(cmd[CMD_PROCESS_OFFSET(offset)])