Fix style, tiny error, and typo

This commit is contained in:
Rickey Fehr
2025-09-21 15:02:09 -07:00
parent 5e2bd9a59a
commit d78e04c6b5
2 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -66,4 +66,4 @@ Sprite* sprite_object_get_sprite(SpriteObject* sprite_object);
void sprite_object_set_focus(SpriteObject* sprite_object, bool focus);
bool sprite_object_is_focused(SpriteObject* sprite_object);
#endif // SPRITE_H
#endif // SPRITE_H
+3 -4
View File
@@ -1,15 +1,14 @@
#!/usr/bin/env bash
POOL_DEF_FILE='./include/pools.def'
ELF_FILE='./build/balatro-gba.elf'
ELF_FILE='./build/balatro.elf'
READELF='/opt/devkitpro/devkitARM/bin/arm-none-eabi-readelf'
TOTAL_BYTES=0
get_pool_names() {
grep POOL_ENTRY "$POOL_DEF_FILE" | sed -n 's@.*(\(.*\)).*@\1@p' | sed 's@,@@g' | cut -d ' ' -f 1
}
TOTAL_BYTES=0
print_line_break() {
echo "--------------------------------------------------------------------"
}
@@ -38,7 +37,7 @@ for name in $(get_pool_names); do
location="$(cut -d ' ' -f 2 <<< $output_pool)"
pool_size="$(cut -d ' ' -f 3 <<< $output_pool)"
func_size="$(cut -d ' ' -f 3 <<< $output_func)"
bm_size=4 #always gonna be 4, sizof(u32)
bm_size=16 #always gonna be 16, 4 * sizeof(u32)
TOTAL_BYTES=$(( TOTAL_BYTES + pool_size + func_size + bm_size ))