Skip to content

Commit

Permalink
add log severity to settings screen, optimize audio isr
Browse files Browse the repository at this point in the history
  • Loading branch information
evanbowman committed Aug 20, 2020
1 parent 6f04ad9 commit c9b7fd8
Show file tree
Hide file tree
Showing 70 changed files with 356 additions and 223 deletions.
1 change: 1 addition & 0 deletions build/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ if(GAMEBOY_ADVANCE)
${SOURCE_DIR}/data/sound_heart.s
${SOURCE_DIR}/data/sound_creak.s
${SOURCE_DIR}/data/sound_dropitem.s
${SOURCE_DIR}/data/sound_reload.s
${SOURCE_DIR}/data/sound_scroll.s
${SOURCE_DIR}/data/sound_laser1.s
${SOURCE_DIR}/data/sound_select.s
Expand Down
4 changes: 3 additions & 1 deletion source/bulkAllocator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ DynamicMemory<T> allocate_dynamic(Platform& pfrm, Args&&... args)

auto deleter = [](T* val) {
if (val) {
val->~T();
if constexpr (not std::is_trivial<T>()) {
val->~T();
}
// No need to actually deallocate anything, we
// just need to make sure that we're calling the
// destructor.
Expand Down
6 changes: 3 additions & 3 deletions source/data/blaster_info_flattened.s
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

@=======================================================================
@
@ blaster_info_flattened, 3816x8@4,
@ blaster_info_flattened, 3816x8@4,
@ Transparent color : FF,00,FF
@ + palette 256 entries, not compressed
@ + 477 tiles not compressed
Expand All @@ -16,7 +16,7 @@
@=======================================================================

.section .rodata
.align 2
.align 4
.global blaster_info_flattenedTiles @ 15264 bytes
blaster_info_flattenedTiles:
.word 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000
Expand Down Expand Up @@ -558,7 +558,7 @@ blaster_info_flattenedTiles:
.size blaster_info_flattenedTiles, .-blaster_info_flattenedTiles

.section .rodata
.align 2
.align 4
.global blaster_info_flattenedPal @ 512 bytes
blaster_info_flattenedPal:
.hword 0x7C1F,0x7719,0x255E,0x4567,0x20A2,0x571A,0x0000,0x0000
Expand Down
6 changes: 3 additions & 3 deletions source/data/charset_en_spn_fr.s
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

@=======================================================================
@
@ charset_en_spn_fr, 824x8@4,
@ charset_en_spn_fr, 824x8@4,
@ Transparent color : FF,00,FF
@ + palette 256 entries, not compressed
@ + 103 tiles not compressed
Expand All @@ -16,7 +16,7 @@
@=======================================================================

.section .rodata
.align 2
.align 4
.global charset_en_spn_frTiles @ 3296 bytes
charset_en_spn_frTiles:
.word 0x00000002,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000
Expand Down Expand Up @@ -137,7 +137,7 @@ charset_en_spn_frTiles:
.size charset_en_spn_frTiles, .-charset_en_spn_frTiles

.section .rodata
.align 2
.align 4
.global charset_en_spn_frPal @ 512 bytes
charset_en_spn_frPal:
.hword 0x7C1F,0x7719,0x0800,0x0000,0x0000,0x0000,0x0000,0x0000
Expand Down
3 changes: 1 addition & 2 deletions source/data/clair_de_lune.s
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.section .rodata
.align 2
.align 4
.global clair_de_lune @ 1040792 bytes
clair_de_lune:
.byte 0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0xFF,0x00,0xFF,0xFF,0x00,0xFF,0x00
Expand Down Expand Up @@ -73184,4 +73184,3 @@ clair_de_lune:
.byte 0x03,0x03,0x03,0x04,0x04,0x04,0x04,0x04,0x03,0x03,0x03,0x03,0x02,0x02,0x01,0x01
.byte 0x01,0x00,0x00,0xFF,0xFF,0xFF
.size clair_de_lune, .-clair_de_lune

6 changes: 3 additions & 3 deletions source/data/launch_flattened.s
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

@=======================================================================
@
@ launch_flattened, 3368x8@4,
@ launch_flattened, 3368x8@4,
@ Transparent color : FF,00,FF
@ + palette 256 entries, not compressed
@ + 421 tiles not compressed
Expand All @@ -16,7 +16,7 @@
@=======================================================================

.section .rodata
.align 2
.align 4
.global launch_flattenedTiles @ 13472 bytes
launch_flattenedTiles:
.word 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000
Expand Down Expand Up @@ -495,7 +495,7 @@ launch_flattenedTiles:
.size launch_flattenedTiles, .-launch_flattenedTiles

.section .rodata
.align 2
.align 4
.global launch_flattenedPal @ 512 bytes
launch_flattenedPal:
.hword 0x7C1F,0x1D05,0x664C,0x5A23,0x6A72,0x5E45,0x6AB4,0x6AB2
Expand Down
6 changes: 3 additions & 3 deletions source/data/old_poster_flattened.s
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

@=======================================================================
@
@ old_poster_flattened, 3816x8@4,
@ old_poster_flattened, 3816x8@4,
@ Transparent color : FF,00,FF
@ + palette 256 entries, not compressed
@ + 477 tiles not compressed
Expand All @@ -16,7 +16,7 @@
@=======================================================================

.section .rodata
.align 2
.align 4
.global old_poster_flattenedTiles @ 15264 bytes
old_poster_flattenedTiles:
.word 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000
Expand Down Expand Up @@ -558,7 +558,7 @@ old_poster_flattenedTiles:
.size old_poster_flattenedTiles, .-old_poster_flattenedTiles

.section .rodata
.align 2
.align 4
.global old_poster_flattenedPal @ 512 bytes
old_poster_flattenedPal:
.hword 0x7C1F,0x0D7F,0x4AFA,0x0800,0x4146,0x0000,0x0000,0x0000
Expand Down
6 changes: 3 additions & 3 deletions source/data/overlay.s
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

@=======================================================================
@
@ overlay, 4032x8@4,
@ overlay, 4032x8@4,
@ Transparent color : FF,00,FF
@ + palette 256 entries, not compressed
@ + 504 tiles not compressed
Expand All @@ -16,7 +16,7 @@
@=======================================================================

.section .rodata
.align 2
.align 4
.global overlayTiles @ 16128 unsigned chars
.hidden overlayTiles
overlayTiles:
Expand Down Expand Up @@ -588,7 +588,7 @@ overlayTiles:
.word 0x00000EEE,0x000000EE,0x0000000E,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000

.section .rodata
.align 2
.align 4
.global overlayPal @ 512 unsigned chars
.hidden overlayPal
overlayPal:
Expand Down
6 changes: 3 additions & 3 deletions source/data/overlay_cutscene.s
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

@=======================================================================
@
@ overlay_cutscene, 904x8@4,
@ overlay_cutscene, 904x8@4,
@ Transparent color : FF,00,FF
@ + palette 256 entries, not compressed
@ + 113 tiles not compressed
Expand All @@ -16,7 +16,7 @@
@=======================================================================

.section .rodata
.align 2
.align 4
.global overlay_cutsceneTiles @ 3616 bytes
overlay_cutsceneTiles:
.word 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000
Expand Down Expand Up @@ -149,7 +149,7 @@ overlay_cutsceneTiles:
.size overlay_cutsceneTiles, .-overlay_cutsceneTiles

.section .rodata
.align 2
.align 4
.global overlay_cutscenePal @ 512 bytes
overlay_cutscenePal:
.hword 0x7C1F,0x2C7D,0x0800,0x55CE,0x72D8,0x7FFF,0x0000,0x0000
Expand Down
6 changes: 3 additions & 3 deletions source/data/overlay_journal.s
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

@=======================================================================
@
@ overlay_journal, 664x8@4,
@ overlay_journal, 664x8@4,
@ Transparent color : FF,00,FF
@ + palette 256 entries, not compressed
@ + 83 tiles not compressed
Expand All @@ -16,7 +16,7 @@
@=======================================================================

.section .rodata
.align 2
.align 4
.global overlay_journalTiles @ 2656 bytes
overlay_journalTiles:
.word 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000
Expand Down Expand Up @@ -115,7 +115,7 @@ overlay_journalTiles:
.size overlay_journalTiles, .-overlay_journalTiles

.section .rodata
.align 2
.align 4
.global overlay_journalPal @ 512 bytes
overlay_journalPal:
.hword 0x7C1F,0x2CC2,0x4B1B,0x0000,0x0000,0x0000,0x0000,0x0000
Expand Down
6 changes: 3 additions & 3 deletions source/data/overlay_network_flattened.s
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

@=======================================================================
@
@ overlay_network_flattened, 3816x8@4,
@ overlay_network_flattened, 3816x8@4,
@ Transparent color : FF,00,FF
@ + palette 256 entries, not compressed
@ + 477 tiles not compressed
Expand All @@ -16,7 +16,7 @@
@=======================================================================

.section .rodata
.align 2
.align 4
.global overlay_network_flattenedTiles @ 15264 bytes
overlay_network_flattenedTiles:
.word 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000
Expand Down Expand Up @@ -558,7 +558,7 @@ overlay_network_flattenedTiles:
.size overlay_network_flattenedTiles, .-overlay_network_flattenedTiles

.section .rodata
.align 2
.align 4
.global overlay_network_flattenedPal @ 512 bytes
overlay_network_flattenedPal:
.hword 0x7C1F,0x5AD5,0x3D64,0x4164,0x77BE,0x0000,0x0000,0x0000
Expand Down
2 changes: 1 addition & 1 deletion source/data/scottbuckley_computations.s
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.section .rodata
.align 2
.align 4
.global scottbuckley_computations @ 1468576 bytes
scottbuckley_computations:
.byte 0xFE,0xFE,0xFF,0xFE,0xFC,0xF9,0xF6,0xF3,0xF0,0xF0,0xF0,0xF0,0xEE,0xE9,0xE3,0xDE
Expand Down
3 changes: 1 addition & 2 deletions source/data/scottbuckley_hiraeth.s
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.section .rodata
.align 2
.align 4
.global scottbuckley_hiraeth @ 3526280 bytes
scottbuckley_hiraeth:
.byte 0xFD,0xFC,0xFC,0xFC,0xFC,0xFC,0xFC,0xFC,0xFD,0xFD,0xFD,0xFD,0xFE,0xFE,0xFE,0xFE
Expand Down Expand Up @@ -247945,4 +247945,3 @@ scottbuckley_hiraeth:

.byte 0xFF,0xFE,0xFE,0xFE,0xFE,0xFD
.size scottbuckley_hiraeth, .-scottbuckley_hiraeth

2 changes: 1 addition & 1 deletion source/data/scottbuckley_omega.s
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.section .rodata
.align 2
.align 4
.global scottbuckley_omega @ 3924640 bytes
scottbuckley_omega:
.byte 0x00,0x00,0x00,0xFF,0x00,0x00,0xFF,0x00,0xFF,0x00,0x00,0xFF,0x00,0xFF,0x00,0xFF
Expand Down
6 changes: 3 additions & 3 deletions source/data/seed_packet_flattened.s
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

@=======================================================================
@
@ seed_packet_flattened, 3816x8@4,
@ seed_packet_flattened, 3816x8@4,
@ Transparent color : FF,00,FF
@ + palette 256 entries, not compressed
@ + 477 tiles not compressed
Expand All @@ -16,7 +16,7 @@
@=======================================================================

.section .rodata
.align 2
.align 4
.global seed_packet_flattenedTiles @ 15264 bytes
seed_packet_flattenedTiles:
.word 0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000
Expand Down Expand Up @@ -558,7 +558,7 @@ seed_packet_flattenedTiles:
.size seed_packet_flattenedTiles, .-seed_packet_flattenedTiles

.section .rodata
.align 2
.align 4
.global seed_packet_flattenedPal @ 512 bytes
seed_packet_flattenedPal:
.hword 0x7C1F,0x5F3B,0x2DB4,0x737B,0x00DF,0x3269,0x0D9F,0x1A5A
Expand Down
2 changes: 1 addition & 1 deletion source/data/september.s
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.section .rodata
.align 2
.align 4
.global september @ 3201988 bytes
september:
.byte 0x00,0xFF,0x00,0xFF,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0xFF
Expand Down
3 changes: 1 addition & 2 deletions source/data/sound_bell.s
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.section .rodata
.align 2
.align 4
.global sound_bell @ 96688 bytes
sound_bell:
.byte 0x02,0x03,0x03,0x02,0x00,0x00,0xFE,0xFD,0xFC,0xFC,0xFB,0xFB,0xFC,0xFC,0xFD,0xFD
Expand Down Expand Up @@ -6801,4 +6801,3 @@ sound_bell:
.byte 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00
.byte 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF
.size sound_bell, .-sound_bell

3 changes: 1 addition & 2 deletions source/data/sound_blaster.s
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.section .rodata
.align 2
.align 4
.global sound_blaster @ 3504 bytes
sound_blaster:
.byte 0xFE,0xFA,0xFC,0xFB,0xFB,0xFB,0xFB,0xFB,0xFB,0xFB,0xFB,0xFB,0xFA,0xFB,0xFA,0xFA
Expand Down Expand Up @@ -249,4 +249,3 @@ sound_blaster:
.byte 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF
.byte 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF
.size sound_blaster, .-sound_blaster

3 changes: 1 addition & 2 deletions source/data/sound_click.s
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.section .rodata
.align 2
.align 4
.global sound_click @ 3032 bytes
sound_click:
.byte 0x03,0x06,0x05,0x08,0x05,0x05,0x01,0x04,0x09,0x06,0x0B,0x0F,0x0A,0x00,0xFB,0xF6
Expand Down Expand Up @@ -216,4 +216,3 @@ sound_click:
.byte 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF
.byte 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF
.size sound_click, .-sound_click

3 changes: 1 addition & 2 deletions source/data/sound_coin.s
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.section .rodata
.align 2
.align 4
.global sound_coin @ 11848 bytes
sound_coin:
.byte 0x00,0x00,0xFF,0x00,0xFF,0xFF,0x00,0xFF,0x00,0xFF,0xFF,0x00,0xFF,0x00,0xFF,0x00
Expand Down Expand Up @@ -836,4 +836,3 @@ sound_coin:
.byte 0x00,0xFF,0x00,0x00,0xFF,0x00,0x00,0xFF,0x00,0xFF,0x00,0xFF,0x00,0xFF,0x00,0xFF
.byte 0x00,0xFF,0x00,0x00,0xFF,0x00,0xFF,0x00
.size sound_coin, .-sound_coin

3 changes: 1 addition & 2 deletions source/data/sound_creak.s
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.section .rodata
.align 2
.align 4
.global sound_creak @ 11648 bytes
sound_creak:
.byte 0x00,0xFF,0xFF,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x00,0xFF
Expand Down Expand Up @@ -821,4 +821,3 @@ sound_creak:
.byte 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x00,0xFF,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00
.byte 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF
.size sound_creak, .-sound_creak

3 changes: 1 addition & 2 deletions source/data/sound_dropitem.s
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.section .rodata
.align 2
.align 4
.global sound_dropitem @ 13284 bytes
sound_dropitem:
.byte 0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF
Expand Down Expand Up @@ -937,4 +937,3 @@ sound_dropitem:
.byte 0x00,0xFF,0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
.byte 0x00,0x00,0x00
.size sound_dropitem, .-sound_dropitem

3 changes: 1 addition & 2 deletions source/data/sound_explosion1.s
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.section .rodata
.align 2
.align 4
.global sound_explosion1 @ 16484 bytes
sound_explosion1:
.byte 0xFC,0xFC,0xFF,0xFF,0xFF,0xFF,0xFD,0xFD,0xFE,0xFE,0xFF,0xFF,0x00,0x01,0x02,0x01
Expand Down Expand Up @@ -1162,4 +1162,3 @@ sound_explosion1:
.byte 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF
.byte 0xFF,0xFF,0xFF
.size sound_explosion1, .-sound_explosion1

Loading

0 comments on commit c9b7fd8

Please sign in to comment.