Skip to content

Commit ae2c41b

Browse files
f4mrfauxclaude
andcommitted
debug: Add logging to diagnose cheat auto-load issues
Add debug messages to track: - When cheat initialization is called during ROM loading - Whether auto-load setting is enabled/disabled - When auto-load function is triggered This will help identify why cheat auto-load isn't working for the Pokemon Red bounty feature. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 340f5ad commit ae2c41b

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

cheat_manager.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,8 @@ unsigned cheat_manager_auto_resolve_and_load_for_current_content(
778778
unsigned candidates_found = 0;
779779
settings_t *settings = config_get_ptr();
780780

781+
RARCH_LOG("[Cheats][auto] CHEAT AUTO-LOAD TRIGGERED - Starting auto-resolution...\n");
782+
781783
*loaded_exact_match = false;
782784
*has_multiple_candidates = false;
783785

command.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1362,6 +1362,8 @@ void command_event_init_cheats(
13621362

13631363
/* Try auto-resolution if enabled */
13641364
settings_t *settings = config_get_ptr();
1365+
RARCH_LOG("[Cheats][auto] Cheat init called - auto_load setting: %s\n",
1366+
(settings && settings->bools.cheats_enable_auto_load) ? "ENABLED" : "DISABLED");
13651367
if (settings && settings->bools.cheats_enable_auto_load)
13661368
{
13671369
bool loaded_exact_match = false;

0 commit comments

Comments
 (0)