Skip to content

Commit

Permalink
testing3
Browse files Browse the repository at this point in the history
  • Loading branch information
juztamau5 committed Mar 10, 2024
1 parent 097a3f5 commit 56dfa5d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions openai/retro/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,15 @@ def get_file_path(game, file, inttype=Integrations.DEFAULT):
"""
Return the path to a given game's directory
"""
print("get_file_path()")
print(f"game: {game}")
print(f"file: {file}")
print(f"inttype: {inttype}")
base = path()
print(f"base: {base}")
for t in inttype.paths:
possible_path = os.path.join(base, t, game, file)
print(f"possible_path: {possible_path}")
if os.path.exists(possible_path):
return possible_path

Expand All @@ -313,8 +319,12 @@ def get_romfile_path(game, inttype=Integrations.DEFAULT):
"""
Return the path to a given game's romfile
"""
print("get_romfile_path()")
print(f"game: {game}")
print(f"inttype: {inttype}")
for extension in EMU_EXTENSIONS.keys():
possible_path = get_file_path(game, "rom" + extension, inttype)
print(f"possible_path: {possible_path}")
if possible_path:
return possible_path

Expand Down

0 comments on commit 56dfa5d

Please sign in to comment.