Skip to content

Commit c69ad8c

Browse files
committed
BUILD: 0.3
1 parent a7899e7 commit c69ad8c

File tree

89 files changed

+89
-111
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+89
-111
lines changed

3do_9d81c0ec-5646-4b1a-b809-e7e61e1d3577/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "GOG Galaxy 3DO RetroArch plugin",
33
"platform": "3do",
44
"guid": "9d81c0ec-5646-4b1a-b809-e7e61e1d3577",
5-
"version": "0.1",
5+
"version": "0.3",
66
"description": "Galaxy Plugin to add 3DO games and start them with the RetroArch emulator",
77
"author": "jshackles",
88
"email": "jshackles@gmail.com",

3do_9d81c0ec-5646-4b1a-b809-e7e61e1d3577/plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def update_game_cache(self):
4949
playlist_dict = json.load(playlist_json)
5050
for entry in playlist_dict["items"]:
5151
rom_path = entry["path"].split("#")[0]
52-
if os.path.abspath(user_config.rom_path) in os.path.abspath(rom_path) and os.path.isfile(rom_path):
52+
if os.path.isfile(rom_path):
5353
provided_name = entry["label"].split(" (")[0]
5454
game_list.append(
5555
Game(
@@ -114,7 +114,7 @@ async def get_game_time(self, game_id: str, context:any):
114114
playlist_dict = json.load(playlist_json)
115115
for rom in playlist_dict["items"]:
116116
if game_id == rom["label"].split(" (")[0]:
117-
file_path = user_config.emu_path + "/playlists/logs/" + os.path.abspath(rom["path"]).split(os.path.abspath(user_config.rom_path) + "\\")[1][:-4] + ".lrtl"
117+
file_path = user_config.emu_path + "/playlists/logs/" + rom["path"].rsplit("\\",1)[1].rsplit("#")[0].rsplit(".",1)[0] + ".lrtl"
118118
if os.path.isfile(file_path):
119119
with open(file_path) as json_data:
120120
time_data = json.load(json_data)

3do_9d81c0ec-5646-4b1a-b809-e7e61e1d3577/user_config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# example:
33
# emu_path = "C:/Users/USERNAME/AppData/Roaming/RetroArch/
44

5-
rom_path = ""
65
emu_path = ""
76

87
# Enter your core DLL file here, be sure to include the file extension
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.1'
1+
__version__ = '0.3'

3ds_f6acd3ed-2c31-47d6-bae4-07b6714c1e55/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "GOG Galaxy Nintendo 3DS RetroArch plugin",
33
"platform": "3ds",
44
"guid": "f6acd3ed-2c31-47d6-bae4-07b6714c1e55",
5-
"version": "0.1",
5+
"version": "0.3",
66
"description": "Galaxy Plugin to add Nintendo 3DS roms and start them with the RetroArch emulator",
77
"author": "jshackles",
88
"email": "jshackles@gmail.com",

3ds_f6acd3ed-2c31-47d6-bae4-07b6714c1e55/plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def update_game_cache(self):
4949
playlist_dict = json.load(playlist_json)
5050
for entry in playlist_dict["items"]:
5151
rom_path = entry["path"].split("#")[0]
52-
if os.path.abspath(user_config.rom_path) in os.path.abspath(rom_path) and os.path.isfile(rom_path):
52+
if os.path.isfile(rom_path):
5353
provided_name = entry["label"].split(" (")[0]
5454
game_list.append(
5555
Game(
@@ -114,7 +114,7 @@ async def get_game_time(self, game_id: str, context:any):
114114
playlist_dict = json.load(playlist_json)
115115
for rom in playlist_dict["items"]:
116116
if game_id == rom["label"].split(" (")[0]:
117-
file_path = user_config.emu_path + "/playlists/logs/" + os.path.abspath(rom["path"]).split(os.path.abspath(user_config.rom_path) + "\\")[1][:-4] + ".lrtl"
117+
file_path = user_config.emu_path + "/playlists/logs/" + rom["path"].rsplit("\\",1)[1].rsplit("#")[0].rsplit(".",1)[0] + ".lrtl"
118118
if os.path.isfile(file_path):
119119
with open(file_path) as json_data:
120120
time_data = json.load(json_data)

3ds_f6acd3ed-2c31-47d6-bae4-07b6714c1e55/user_config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# example:
33
# emu_path = "C:/Users/USERNAME/AppData/Roaming/RetroArch/
44

5-
rom_path = ""
65
emu_path = ""
76

87
# Enter your core DLL file here, be sure to include the file extension
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.1'
1+
__version__ = '0.3'

README.md

Lines changed: 1 addition & 1 deletion

atari_830528d9-e621-48e9-8ed4-e03a4853843e/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "GOG Galaxy Atari 2600 RetroArch plugin",
33
"platform": "atari",
44
"guid": "830528d9-e621-48e9-8ed4-e03a4853843e",
5-
"version": "0.1",
5+
"version": "0.3",
66
"description": "Galaxy Plugin to add Atari 2600 roms and start them with the RetroArch emulator",
77
"author": "jshackles",
88
"email": "jshackles@gmail.com",

0 commit comments

Comments
 (0)