Skip to content

Commit 020a673

Browse files
f4mrfauxclaude
andcommitted
debug: Add detailed cheat auto-load path logging
Shows exactly what the auto-load system is looking for: - Cheat database path - Core name (for directory structure) - Game name (for file matching) - Full search path being checked This will help identify if the issue is: - Missing cheat database configuration - Wrong core directory structure - Missing cheat files - Path/name matching problems 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent ae2c41b commit 020a673

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

cheat_manager.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,17 +835,30 @@ unsigned cheat_manager_auto_resolve_and_load_for_current_content(
835835
if (settings)
836836
path_cheat_database = settings->paths.path_cheat_database;
837837

838+
RARCH_LOG("[Cheats][auto] Debug info - cheat_database: \"%s\", core: \"%s\", game: \"%s\"\n",
839+
path_cheat_database ? path_cheat_database : "NULL",
840+
core_name ? core_name : "NULL",
841+
game_name ? game_name : "NULL");
842+
838843
if ( string_is_empty(path_cheat_database)
839844
|| string_is_empty(core_name)
840845
|| string_is_empty(game_name))
846+
{
847+
RARCH_LOG("[Cheats][auto] Missing required info - skipping auto-load\n");
841848
return 0;
849+
}
842850

843851
/* Build cheat directory path: cheat_database/core_name/ */
844852
fill_pathname_join_special(cheat_dir, path_cheat_database, core_name,
845853
sizeof(cheat_dir));
846854

855+
RARCH_LOG("[Cheats][auto] Searching for cheats in: \"%s\"\n", cheat_dir);
856+
847857
if (!path_is_directory(cheat_dir))
858+
{
859+
RARCH_LOG("[Cheats][auto] Cheat directory does not exist: \"%s\"\n", cheat_dir);
848860
return 0;
861+
}
849862

850863
/* Search for cheat files matching game name */
851864
snprintf(search_pattern, sizeof(search_pattern), "%s*",

0 commit comments

Comments
 (0)