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>
|
template<typename T>
|
||||||
T GetSafeNode(YAML::Node& node, const std::string& key) {
|
T GetSafeNode(YAML::Node& node, const std::string& key) {
|
||||||
if(!node[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>();
|
return node[key].as<T>();
|
||||||
|
|||||||
@@ -14,16 +14,16 @@ typedef union {
|
|||||||
} Gfx;
|
} Gfx;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
short ob[3];
|
int16_t ob[3];
|
||||||
unsigned short flag;
|
uint16_t flag;
|
||||||
short tc[2];
|
int16_t tc[2];
|
||||||
unsigned char cn[4];
|
unsigned char cn[4];
|
||||||
} Vtx_t;
|
} Vtx_t;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
short ob[3];
|
int16_t ob[3];
|
||||||
unsigned short flag;
|
uint16_t flag;
|
||||||
short tc[2];
|
int16_t tc[2];
|
||||||
signed char n[3];
|
signed char n[3];
|
||||||
unsigned char a;
|
unsigned char a;
|
||||||
} Vtx_tn;
|
} Vtx_tn;
|
||||||
|
|||||||
Reference in New Issue
Block a user