Skip to content

Commit

Permalink
More debugging
Browse files Browse the repository at this point in the history
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
  • Loading branch information
sahlberg committed Sep 30, 2023
1 parent b25cb84 commit a7c5999
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pop-fe.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ def get_gameid_from_iso(path='NORMAL01.iso'):
raise Exception('Could not read system.cnf')

buf = buf[idx + 6:idx + 50]
print('BUF00', buf)
idx = buf.find('\r')
if idx > 0:
buf = buf[:idx]
Expand All @@ -135,10 +136,12 @@ def get_gameid_from_iso(path='NORMAL01.iso'):
buf = buf[:idx]
# Some games are of the form \DIR\SLPS12345, get rid of the path
buf = buf.split('\\')[-1]
print('BUF05', buf)

bad_chars = "\\_. -"
for i in bad_chars:
buf = buf.replace(i, "")
print('BUF09', '[' + buf + ']')

game_id = buf.upper()
if len(game_id) != 9:
Expand Down

0 comments on commit a7c5999

Please sign in to comment.