Changed short to int16 and fixed throw message

This commit is contained in:
KiritoDv
2024-01-31 12:05:40 -06:00
committed by Lywx
parent f4990f508e
commit be593f9ed2
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -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>();
+6 -6
View File
@@ -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;