mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-03 14:34:32 +00: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:
parent
9b9a983860
commit
5562b2ef6f
16 changed files with 31 additions and 30 deletions
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue