Fixing sprite corruption and adding game pak sprite debug toggle

This commit is contained in:
The Gears of Progress 2025-05-25 13:00:07 -04:00
parent 868b23ba45
commit dd0dc20837
4 changed files with 6 additions and 5 deletions

View File

@ -9,7 +9,8 @@
#define PRINT_LINK_DATA (false && DEBUG_MODE) // This is currently broken... not sure why
#define INSTANT_TEXT_SPEED (false && DEBUG_MODE)
#define IGNORE_GAME_PAK (true && DEBUG_MODE)
#define IGNORE_LINK_CABLE (true && DEBUG_MODE)
#define IGNORE_GAME_PAK_SPRITES (true && DEBUG_MODE)
#define IGNORE_LINK_CABLE (false && DEBUG_MODE)
#define IGNORE_MG_E4_FLAGS (true && DEBUG_MODE)
#define IGNORE_UNRECEIVED_PKMN (true && DEBUG_MODE)
#define FORCE_TUTORIAL (false && DEBUG_MODE)

Binary file not shown.

View File

@ -123,7 +123,7 @@ void setup()
end_of_data = false;
create_textbox(0, 0, 80, 80, true);
tte_erase_screen();
//tte_erase_screen();
tte_set_pos(40, 24);
ptgb_write("\n\n\n Connecting to\n GameBoy");
}

View File

@ -465,7 +465,7 @@ void load_temp_box_sprites(Pokemon_Party *party_data)
{
u32 curr_tile_id = global_tile_id_end;
if (!IGNORE_GAME_PAK)
if (!(IGNORE_GAME_PAK || IGNORE_GAME_PAK_SPRITES))
{
for (int i = 0; i < 30; i++)
{
@ -855,7 +855,7 @@ void update_y_offset()
void update_front_box_sprite(Simplified_Pokemon *curr_pkmn)
{
if (IGNORE_GAME_PAK)
if (IGNORE_GAME_PAK || IGNORE_GAME_PAK_SPRITES)
{
return; // We don't want to look into garbage data, get out of here.
}
@ -897,7 +897,7 @@ void update_front_box_sprite(Simplified_Pokemon *curr_pkmn)
void update_menu_sprite(Pokemon_Party *party_data, int index, int frame)
{
if (IGNORE_GAME_PAK)
if (IGNORE_GAME_PAK || IGNORE_GAME_PAK_SPRITES)
{
return; // We don't want to look into garbage data, get out of here.
}