Skip to content

Commit f98a789

Browse files
authored
Merge pull request #32 from idio-sync/claude/romm-api-compatibility-X4h4n
Add support for 'cheat' subfolder category with card suit icon
2 parents 1c774ce + 5a75f45 commit f98a789

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cogs/search.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def get_file_subfolder(file_info: Dict) -> Optional[str]:
113113
if not file_path:
114114
return None
115115

116-
known_subfolders = ['hack', 'dlc', 'manual', 'mod', 'patch', 'update', 'demo', 'translation', 'prototype']
116+
known_subfolders = ['hack', 'dlc', 'manual', 'mod', 'patch', 'update', 'demo', 'translation', 'prototype', 'cheat']
117117
path_parts = file_path.split('/')
118118
for part in path_parts: # include all parts
119119
if part.lower() in known_subfolders:
@@ -133,6 +133,7 @@ def get_subfolder_icon(subfolder: Optional[str]) -> str:
133133
'demo': '🎮',
134134
'translation': '🌐',
135135
'prototype': '🔬',
136+
'cheat': '🃏',
136137
None: '📄' # Default for main/root files
137138
}
138139
return icons.get(subfolder, '📁')

0 commit comments

Comments
 (0)