mirror of
https://github.com/zeldaret/oot
synced 2026-08-22 06:44:46 -04:00
Fix some fixable warnings (#728)
* Fix setup warnings Signed-off-by: angie <angheloalf95@gmail.com> * Casting the problems away Signed-off-by: angie <angheloalf95@gmail.com> * I don't really like changing the type to void Signed-off-by: angie <angheloalf95@gmail.com> * We're out of EARLY hell Signed-off-by: angie <angheloalf95@gmail.com> * ./format.sh Signed-off-by: angie <angheloalf95@gmail.com> * Change skel type to "Normal" Signed-off-by: angie <angheloalf95@gmail.com> * Changes requested Signed-off-by: angie <angheloalf95@gmail.com> * suggestion of roman Signed-off-by: angie <angheloalf95@gmail.com> * early is back :c Signed-off-by: angie <angheloalf95@gmail.com> * This will be a fix in ZAPD Signed-off-by: angie <angheloalf95@gmail.com>
This commit is contained in:
+1
-1
@@ -36,7 +36,7 @@ const struct option cmdline_opts[] = {
|
||||
|
||||
static uint32_t parse_int(const char *num){
|
||||
uint32_t ret = 0;
|
||||
char outnum[20];
|
||||
char outnum[21];
|
||||
if(strlen(num) > 2 && num[0] == '0' && (num[1] == 'x' || num[1] == 'X')) {
|
||||
strncpy(outnum, &num[2], 20);
|
||||
sscanf(outnum, "%"SCNx32, &ret);
|
||||
|
||||
+1
-1
@@ -39,7 +39,7 @@ def animation_to_xml(var_name,offset):
|
||||
return animation_xml.format(var_name,offset.lstrip('0'))
|
||||
|
||||
def skeleton_to_xml(var_name,offset, type):
|
||||
skel_type = "Flex" if "Flex" in type else "Standard"
|
||||
skel_type = "Flex" if "Flex" in type else "Normal"
|
||||
limb_type = "Standard"
|
||||
|
||||
return skeleton_xml.format(var_name, offset.lstrip('0'), skel_type, limb_type)
|
||||
|
||||
Reference in New Issue
Block a user