summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKiritoDv <kiritodev01@gmail.com>2024-01-31 11:59:06 -0600
committerLywx <kiritodev01@gmail.com>2024-01-31 12:05:40 -0600
commitbe593f9ed29d8dfe42fbd6ba70f2c8be29dfd39f (patch)
treed973cbba180872d0f4826e95507862380add0a49 /src
parentf4990f508e78eab33b071961fadb7d07f1598330 (diff)
Changed short to int16 and fixed throw message
Diffstat (limited to 'src')
-rw-r--r--src/factories/BaseFactory.h2
-rw-r--r--src/factories/DisplayListOverrides.h12
2 files changed, 7 insertions, 7 deletions
diff --git a/src/factories/BaseFactory.h b/src/factories/BaseFactory.h
index fc7aed6..23293cf 100644
--- a/src/factories/BaseFactory.h
+++ b/src/factories/BaseFactory.h
@@ -40,7 +40,7 @@ std::optional<T> GetNode(YAML::Node& node, const std::string& key) {
template<typename T>
T GetSafeNode(YAML::Node& node, const std::string& key) {
if(!node[key]) {
- throw std::runtime_error("Failed to find " + key);
+ throw std::runtime_error("Failed to find " + key + " in yaml");
}
return node[key].as<T>();
diff --git a/src/factories/DisplayListOverrides.h b/src/factories/DisplayListOverrides.h
index b33a0f8..8eb6e0c 100644
--- a/src/factories/DisplayListOverrides.h
+++ b/src/factories/DisplayListOverrides.h
@@ -14,16 +14,16 @@ typedef union {
} Gfx;
typedef struct {
- short ob[3];
- unsigned short flag;
- short tc[2];
+ int16_t ob[3];
+ uint16_t flag;
+ int16_t tc[2];
unsigned char cn[4];
} Vtx_t;
typedef struct {
- short ob[3];
- unsigned short flag;
- short tc[2];
+ int16_t ob[3];
+ uint16_t flag;
+ int16_t tc[2];
signed char n[3];
unsigned char a;
} Vtx_tn;