Fix style, tiny error, and typo
This commit is contained in:
+1
-1
@@ -66,4 +66,4 @@ Sprite* sprite_object_get_sprite(SpriteObject* sprite_object);
|
|||||||
void sprite_object_set_focus(SpriteObject* sprite_object, bool focus);
|
void sprite_object_set_focus(SpriteObject* sprite_object, bool focus);
|
||||||
bool sprite_object_is_focused(SpriteObject* sprite_object);
|
bool sprite_object_is_focused(SpriteObject* sprite_object);
|
||||||
|
|
||||||
#endif // SPRITE_H
|
#endif // SPRITE_H
|
||||||
@@ -1,15 +1,14 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
POOL_DEF_FILE='./include/pools.def'
|
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'
|
READELF='/opt/devkitpro/devkitARM/bin/arm-none-eabi-readelf'
|
||||||
|
TOTAL_BYTES=0
|
||||||
|
|
||||||
get_pool_names() {
|
get_pool_names() {
|
||||||
grep POOL_ENTRY "$POOL_DEF_FILE" | sed -n 's@.*(\(.*\)).*@\1@p' | sed 's@,@@g' | cut -d ' ' -f 1
|
grep POOL_ENTRY "$POOL_DEF_FILE" | sed -n 's@.*(\(.*\)).*@\1@p' | sed 's@,@@g' | cut -d ' ' -f 1
|
||||||
}
|
}
|
||||||
|
|
||||||
TOTAL_BYTES=0
|
|
||||||
|
|
||||||
print_line_break() {
|
print_line_break() {
|
||||||
echo "--------------------------------------------------------------------"
|
echo "--------------------------------------------------------------------"
|
||||||
}
|
}
|
||||||
@@ -38,7 +37,7 @@ for name in $(get_pool_names); do
|
|||||||
location="$(cut -d ' ' -f 2 <<< $output_pool)"
|
location="$(cut -d ' ' -f 2 <<< $output_pool)"
|
||||||
pool_size="$(cut -d ' ' -f 3 <<< $output_pool)"
|
pool_size="$(cut -d ' ' -f 3 <<< $output_pool)"
|
||||||
func_size="$(cut -d ' ' -f 3 <<< $output_func)"
|
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 ))
|
TOTAL_BYTES=$(( TOTAL_BYTES + pool_size + func_size + bm_size ))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user