mirror of
https://github.com/izzy2lost/Torch.git
synced 2026-07-06 00:18:35 -07:00
Changed short to int16 and fixed throw message
This commit is contained in:
@@ -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>();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user