Skip to content

Commit

Permalink
BUILD: 0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jshackles committed Aug 27, 2020
1 parent a7899e7 commit c69ad8c
Show file tree
Hide file tree
Showing 89 changed files with 89 additions and 111 deletions.
2 changes: 1 addition & 1 deletion 3do_9d81c0ec-5646-4b1a-b809-e7e61e1d3577/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "GOG Galaxy 3DO RetroArch plugin",
"platform": "3do",
"guid": "9d81c0ec-5646-4b1a-b809-e7e61e1d3577",
"version": "0.1",
"version": "0.3",
"description": "Galaxy Plugin to add 3DO games and start them with the RetroArch emulator",
"author": "jshackles",
"email": "jshackles@gmail.com",
Expand Down
4 changes: 2 additions & 2 deletions 3do_9d81c0ec-5646-4b1a-b809-e7e61e1d3577/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def update_game_cache(self):
playlist_dict = json.load(playlist_json)
for entry in playlist_dict["items"]:
rom_path = entry["path"].split("#")[0]
if os.path.abspath(user_config.rom_path) in os.path.abspath(rom_path) and os.path.isfile(rom_path):
if os.path.isfile(rom_path):
provided_name = entry["label"].split(" (")[0]
game_list.append(
Game(
Expand Down Expand Up @@ -114,7 +114,7 @@ async def get_game_time(self, game_id: str, context:any):
playlist_dict = json.load(playlist_json)
for rom in playlist_dict["items"]:
if game_id == rom["label"].split(" (")[0]:
file_path = user_config.emu_path + "/playlists/logs/" + os.path.abspath(rom["path"]).split(os.path.abspath(user_config.rom_path) + "\\")[1][:-4] + ".lrtl"
file_path = user_config.emu_path + "/playlists/logs/" + rom["path"].rsplit("\\",1)[1].rsplit("#")[0].rsplit(".",1)[0] + ".lrtl"
if os.path.isfile(file_path):
with open(file_path) as json_data:
time_data = json.load(json_data)
Expand Down
1 change: 0 additions & 1 deletion 3do_9d81c0ec-5646-4b1a-b809-e7e61e1d3577/user_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# example:
# emu_path = "C:/Users/USERNAME/AppData/Roaming/RetroArch/

rom_path = ""
emu_path = ""

# Enter your core DLL file here, be sure to include the file extension
Expand Down
2 changes: 1 addition & 1 deletion 3do_9d81c0ec-5646-4b1a-b809-e7e61e1d3577/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1'
__version__ = '0.3'
2 changes: 1 addition & 1 deletion 3ds_f6acd3ed-2c31-47d6-bae4-07b6714c1e55/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "GOG Galaxy Nintendo 3DS RetroArch plugin",
"platform": "3ds",
"guid": "f6acd3ed-2c31-47d6-bae4-07b6714c1e55",
"version": "0.1",
"version": "0.3",
"description": "Galaxy Plugin to add Nintendo 3DS roms and start them with the RetroArch emulator",
"author": "jshackles",
"email": "jshackles@gmail.com",
Expand Down
4 changes: 2 additions & 2 deletions 3ds_f6acd3ed-2c31-47d6-bae4-07b6714c1e55/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def update_game_cache(self):
playlist_dict = json.load(playlist_json)
for entry in playlist_dict["items"]:
rom_path = entry["path"].split("#")[0]
if os.path.abspath(user_config.rom_path) in os.path.abspath(rom_path) and os.path.isfile(rom_path):
if os.path.isfile(rom_path):
provided_name = entry["label"].split(" (")[0]
game_list.append(
Game(
Expand Down Expand Up @@ -114,7 +114,7 @@ async def get_game_time(self, game_id: str, context:any):
playlist_dict = json.load(playlist_json)
for rom in playlist_dict["items"]:
if game_id == rom["label"].split(" (")[0]:
file_path = user_config.emu_path + "/playlists/logs/" + os.path.abspath(rom["path"]).split(os.path.abspath(user_config.rom_path) + "\\")[1][:-4] + ".lrtl"
file_path = user_config.emu_path + "/playlists/logs/" + rom["path"].rsplit("\\",1)[1].rsplit("#")[0].rsplit(".",1)[0] + ".lrtl"
if os.path.isfile(file_path):
with open(file_path) as json_data:
time_data = json.load(json_data)
Expand Down
1 change: 0 additions & 1 deletion 3ds_f6acd3ed-2c31-47d6-bae4-07b6714c1e55/user_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# example:
# emu_path = "C:/Users/USERNAME/AppData/Roaming/RetroArch/

rom_path = ""
emu_path = ""

# Enter your core DLL file here, be sure to include the file extension
Expand Down
2 changes: 1 addition & 1 deletion 3ds_f6acd3ed-2c31-47d6-bae4-07b6714c1e55/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1'
__version__ = '0.3'
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ Forked from Riku55's N64 Integration Plugin: https://github.com/Riku55/galaxy-in
2. Extract the ZIP file.
3. Copy the folders to your Galaxy plugin folder (standard is: *C:\Users\USERNAME\AppData\Local\GOG.com\Galaxy\plugins\installed*)
4. For each integration, open the file *user_config.py* with an editor.
5. Add your emulator and roms path, along with your preferred core as described in the file.
5. Add your emulator path, along with your preferred core as described in the file.
6. (Re)start Galaxy 2.0 and connect the integration.
2 changes: 1 addition & 1 deletion atari_830528d9-e621-48e9-8ed4-e03a4853843e/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "GOG Galaxy Atari 2600 RetroArch plugin",
"platform": "atari",
"guid": "830528d9-e621-48e9-8ed4-e03a4853843e",
"version": "0.1",
"version": "0.3",
"description": "Galaxy Plugin to add Atari 2600 roms and start them with the RetroArch emulator",
"author": "jshackles",
"email": "jshackles@gmail.com",
Expand Down
4 changes: 2 additions & 2 deletions atari_830528d9-e621-48e9-8ed4-e03a4853843e/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def update_game_cache(self):
playlist_dict = json.load(playlist_json)
for entry in playlist_dict["items"]:
rom_path = entry["path"].split("#")[0]
if os.path.abspath(user_config.rom_path) in os.path.abspath(rom_path) and os.path.isfile(rom_path):
if os.path.isfile(rom_path):
provided_name = entry["label"].split(" (")[0]
game_list.append(
Game(
Expand Down Expand Up @@ -114,7 +114,7 @@ async def get_game_time(self, game_id: str, context:any):
playlist_dict = json.load(playlist_json)
for rom in playlist_dict["items"]:
if game_id == rom["label"].split(" (")[0]:
file_path = user_config.emu_path + "/playlists/logs/" + os.path.abspath(rom["path"]).split(os.path.abspath(user_config.rom_path) + "\\")[1][:-4] + ".lrtl"
file_path = user_config.emu_path + "/playlists/logs/" + rom["path"].rsplit("\\",1)[1].rsplit("#")[0].rsplit(".",1)[0] + ".lrtl"
if os.path.isfile(file_path):
with open(file_path) as json_data:
time_data = json.load(json_data)
Expand Down
1 change: 0 additions & 1 deletion atari_830528d9-e621-48e9-8ed4-e03a4853843e/user_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# example:
# emu_path = "C:/Users/USERNAME/AppData/Roaming/RetroArch/

rom_path = ""
emu_path = ""

# Enter your core DLL file here, be sure to include the file extension
Expand Down
2 changes: 1 addition & 1 deletion atari_830528d9-e621-48e9-8ed4-e03a4853843e/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1'
__version__ = '0.3'
2 changes: 1 addition & 1 deletion dc_5d181ffd-48dc-4330-aa58-6f646e76a5c8/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "GOG Galaxy Sega Dreamcast RetroArch plugin",
"platform": "dc",
"guid": "5d181ffd-48dc-4330-aa58-6f646e76a5c8",
"version": "0.1",
"version": "0.3",
"description": "Galaxy Plugin to add Sega Dreamcast isos and start them with the RetroArch emulator",
"author": "jshackles",
"email": "jshackles@gmail.com",
Expand Down
4 changes: 2 additions & 2 deletions dc_5d181ffd-48dc-4330-aa58-6f646e76a5c8/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def update_game_cache(self):
playlist_dict = json.load(playlist_json)
for entry in playlist_dict["items"]:
rom_path = entry["path"].split("#")[0]
if os.path.abspath(user_config.rom_path) in os.path.abspath(rom_path) and os.path.isfile(rom_path):
if os.path.isfile(rom_path):
provided_name = entry["label"].split(" (")[0]
game_list.append(
Game(
Expand Down Expand Up @@ -114,7 +114,7 @@ async def get_game_time(self, game_id: str, context:any):
playlist_dict = json.load(playlist_json)
for rom in playlist_dict["items"]:
if game_id == rom["label"].split(" (")[0]:
file_path = user_config.emu_path + "/playlists/logs/" + os.path.abspath(rom["path"]).split(os.path.abspath(user_config.rom_path) + "\\")[1][:-4] + ".lrtl"
file_path = user_config.emu_path + "/playlists/logs/" + rom["path"].rsplit("\\",1)[1].rsplit("#")[0].rsplit(".",1)[0] + ".lrtl"
if os.path.isfile(file_path):
with open(file_path) as json_data:
time_data = json.load(json_data)
Expand Down
1 change: 0 additions & 1 deletion dc_5d181ffd-48dc-4330-aa58-6f646e76a5c8/user_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# example:
# emu_path = "C:/Users/USERNAME/AppData/Roaming/RetroArch/

rom_path = ""
emu_path = ""

# Enter your core DLL file here, be sure to include the file extension
Expand Down
2 changes: 1 addition & 1 deletion dc_5d181ffd-48dc-4330-aa58-6f646e76a5c8/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1'
__version__ = '0.3'
2 changes: 1 addition & 1 deletion gb_4345afe1-a2c3-4c58-93d3-373c53a90a92/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "GOG Galaxy Nintendo Gameboy RetroArch plugin",
"platform": "ngameboy",
"guid": "4345afe1-a2c3-4c58-93d3-373c53a90a92",
"version": "0.1",
"version": "0.3",
"description": "Galaxy Plugin to add Nintendo GameBoy roms and start them with the RetroArch emulator",
"author": "jshackles",
"email": "jshackles@gmail.com",
Expand Down
4 changes: 2 additions & 2 deletions gb_4345afe1-a2c3-4c58-93d3-373c53a90a92/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def update_game_cache(self):
playlist_dict = json.load(playlist_json)
for entry in playlist_dict["items"]:
rom_path = entry["path"].split("#")[0]
if os.path.abspath(user_config.rom_path) in os.path.abspath(rom_path) and os.path.isfile(rom_path):
if os.path.isfile(rom_path):
provided_name = entry["label"].split(" (")[0]
game_list.append(
Game(
Expand Down Expand Up @@ -114,7 +114,7 @@ async def get_game_time(self, game_id: str, context:any):
playlist_dict = json.load(playlist_json)
for rom in playlist_dict["items"]:
if game_id == rom["label"].split(" (")[0]:
file_path = user_config.emu_path + "/playlists/logs/" + os.path.abspath(rom["path"]).split(os.path.abspath(user_config.rom_path) + "\\")[1][:-4] + ".lrtl"
file_path = user_config.emu_path + "/playlists/logs/" + rom["path"].rsplit("\\",1)[1].rsplit("#")[0].rsplit(".",1)[0] + ".lrtl"
if os.path.isfile(file_path):
with open(file_path) as json_data:
time_data = json.load(json_data)
Expand Down
1 change: 0 additions & 1 deletion gb_4345afe1-a2c3-4c58-93d3-373c53a90a92/user_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# example:
# emu_path = "C:/Users/USERNAME/AppData/Roaming/RetroArch/

rom_path = ""
emu_path = ""

# Enter your core DLL file here, be sure to include the file extension
Expand Down
2 changes: 1 addition & 1 deletion gb_4345afe1-a2c3-4c58-93d3-373c53a90a92/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1'
__version__ = '0.3'
2 changes: 1 addition & 1 deletion gba_16a78ef5-fba6-4629-b83c-ef47adab5aab/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "GOG Galaxy Nintendo Gameboy Advance RetroArch plugin",
"platform": "ngameboy",
"guid": "16a78ef5-fba6-4629-b83c-ef47adab5aab",
"version": "0.1",
"version": "0.3",
"description": "Galaxy Plugin to add Nintendo GameBoy Advance roms and start them with the RetroArch emulator",
"author": "jshackles",
"email": "jshackles@gmail.com",
Expand Down
4 changes: 2 additions & 2 deletions gba_16a78ef5-fba6-4629-b83c-ef47adab5aab/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def update_game_cache(self):
playlist_dict = json.load(playlist_json)
for entry in playlist_dict["items"]:
rom_path = entry["path"].split("#")[0]
if os.path.abspath(user_config.rom_path) in os.path.abspath(rom_path) and os.path.isfile(rom_path):
if os.path.isfile(rom_path):
provided_name = entry["label"].split(" (")[0]
game_list.append(
Game(
Expand Down Expand Up @@ -114,7 +114,7 @@ async def get_game_time(self, game_id: str, context:any):
playlist_dict = json.load(playlist_json)
for rom in playlist_dict["items"]:
if game_id == rom["label"].split(" (")[0]:
file_path = user_config.emu_path + "/playlists/logs/" + os.path.abspath(rom["path"]).split(os.path.abspath(user_config.rom_path) + "\\")[1][:-4] + ".lrtl"
file_path = user_config.emu_path + "/playlists/logs/" + rom["path"].rsplit("\\",1)[1].rsplit("#")[0].rsplit(".",1)[0] + ".lrtl"
if os.path.isfile(file_path):
with open(file_path) as json_data:
time_data = json.load(json_data)
Expand Down
1 change: 0 additions & 1 deletion gba_16a78ef5-fba6-4629-b83c-ef47adab5aab/user_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# example:
# emu_path = "C:/Users/USERNAME/AppData/Roaming/RetroArch/

rom_path = ""
emu_path = ""

# Enter your core DLL file here, be sure to include the file extension
Expand Down
2 changes: 1 addition & 1 deletion gba_16a78ef5-fba6-4629-b83c-ef47adab5aab/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1'
__version__ = '0.3'
2 changes: 1 addition & 1 deletion gbc_9b53fc85-af7c-4ce2-af31-0d95234d783a/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "GOG Galaxy Nintendo Gameboy Color RetroArch plugin",
"platform": "ngameboy",
"guid": "9b53fc85-af7c-4ce2-af31-0d95234d783a",
"version": "0.1",
"version": "0.3",
"description": "Galaxy Plugin to add Nintendo GameBoy Color roms and start them with the RetroArch emulator",
"author": "jshackles",
"email": "jshackles@gmail.com",
Expand Down
4 changes: 2 additions & 2 deletions gbc_9b53fc85-af7c-4ce2-af31-0d95234d783a/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def update_game_cache(self):
playlist_dict = json.load(playlist_json)
for entry in playlist_dict["items"]:
rom_path = entry["path"].split("#")[0]
if os.path.abspath(user_config.rom_path) in os.path.abspath(rom_path) and os.path.isfile(rom_path):
if os.path.isfile(rom_path):
provided_name = entry["label"].split(" (")[0]
game_list.append(
Game(
Expand Down Expand Up @@ -114,7 +114,7 @@ async def get_game_time(self, game_id: str, context:any):
playlist_dict = json.load(playlist_json)
for rom in playlist_dict["items"]:
if game_id == rom["label"].split(" (")[0]:
file_path = user_config.emu_path + "/playlists/logs/" + os.path.abspath(rom["path"]).split(os.path.abspath(user_config.rom_path) + "\\")[1][:-4] + ".lrtl"
file_path = user_config.emu_path + "/playlists/logs/" + rom["path"].rsplit("\\",1)[1].rsplit("#")[0].rsplit(".",1)[0] + ".lrtl"
if os.path.isfile(file_path):
with open(file_path) as json_data:
time_data = json.load(json_data)
Expand Down
1 change: 0 additions & 1 deletion gbc_9b53fc85-af7c-4ce2-af31-0d95234d783a/user_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# example:
# emu_path = "C:/Users/USERNAME/AppData/Roaming/RetroArch/

rom_path = ""
emu_path = ""

# Enter your core DLL file here, be sure to include the file extension
Expand Down
2 changes: 1 addition & 1 deletion gbc_9b53fc85-af7c-4ce2-af31-0d95234d783a/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1'
__version__ = '0.3'
2 changes: 1 addition & 1 deletion jaguar_b9773549-9c20-4729-b23d-f683762ce73a/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "GOG Galaxy Atari Jaguar RetroArch plugin",
"platform": "jaguar",
"guid": "b9773549-9c20-4729-b23d-f683762ce73a",
"version": "0.1",
"version": "0.3",
"description": "Galaxy Plugin to add Atari Jaguar roms and start them with the RetroArch emulator",
"author": "jshackles",
"email": "jshackles@gmail.com",
Expand Down
4 changes: 2 additions & 2 deletions jaguar_b9773549-9c20-4729-b23d-f683762ce73a/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def update_game_cache(self):
playlist_dict = json.load(playlist_json)
for entry in playlist_dict["items"]:
rom_path = entry["path"].split("#")[0]
if os.path.abspath(user_config.rom_path) in os.path.abspath(rom_path) and os.path.isfile(rom_path):
if os.path.isfile(rom_path):
provided_name = entry["label"].split(" (")[0]
game_list.append(
Game(
Expand Down Expand Up @@ -114,7 +114,7 @@ async def get_game_time(self, game_id: str, context:any):
playlist_dict = json.load(playlist_json)
for rom in playlist_dict["items"]:
if game_id == rom["label"].split(" (")[0]:
file_path = user_config.emu_path + "/playlists/logs/" + os.path.abspath(rom["path"]).split(os.path.abspath(user_config.rom_path) + "\\")[1][:-4] + ".lrtl"
file_path = user_config.emu_path + "/playlists/logs/" + rom["path"].rsplit("\\",1)[1].rsplit("#")[0].rsplit(".",1)[0] + ".lrtl"
if os.path.isfile(file_path):
with open(file_path) as json_data:
time_data = json.load(json_data)
Expand Down
1 change: 0 additions & 1 deletion jaguar_b9773549-9c20-4729-b23d-f683762ce73a/user_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# example:
# emu_path = "C:/Users/USERNAME/AppData/Roaming/RetroArch/

rom_path = ""
emu_path = ""

# Enter your core DLL file here, be sure to include the file extension
Expand Down
2 changes: 1 addition & 1 deletion jaguar_b9773549-9c20-4729-b23d-f683762ce73a/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1'
__version__ = '0.3'
2 changes: 1 addition & 1 deletion n64_a3824d31-c2d3-4a1a-b321-7d0764da5513/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Galaxy n64 RetroArch plugin",
"platform": "n64",
"guid": "a3824d31-c2d3-4a1a-b321-7d0764da5513",
"version": "0.2",
"version": "0.3",
"description": "Galaxy Plugin to add n64 roms and start them with RetroArch emulator",
"author": "riku55",
"email": "",
Expand Down
4 changes: 2 additions & 2 deletions n64_a3824d31-c2d3-4a1a-b321-7d0764da5513/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def update_game_cache(self):
playlist_dict = json.load(playlist_json)
for entry in playlist_dict["items"]:
rom_path = entry["path"].split("#")[0]
if os.path.abspath(user_config.rom_path) in os.path.abspath(rom_path) and os.path.isfile(rom_path):
if os.path.isfile(rom_path):
provided_name = entry["label"].split(" (")[0]
game_list.append(
Game(
Expand Down Expand Up @@ -115,7 +115,7 @@ async def get_game_time(self, game_id: str, context:any):
playlist_dict = json.load(playlist_json)
for rom in playlist_dict["items"]:
if game_id == rom["label"].split(" (")[0]:
file_path = user_config.emu_path + "/playlists/logs/" + os.path.abspath(rom["path"]).split(os.path.abspath(user_config.rom_path) + "\\")[1][:-4] + ".lrtl"
file_path = user_config.emu_path + "/playlists/logs/" + rom["path"].rsplit("\\",1)[1].rsplit("#")[0].rsplit(".",1)[0] + ".lrtl"
if os.path.isfile(file_path):
with open(file_path) as json_data:
time_data = json.load(json_data)
Expand Down
1 change: 0 additions & 1 deletion n64_a3824d31-c2d3-4a1a-b321-7d0764da5513/user_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# example:
# emu_path = "C:/Users/USERNAME/AppData/Roaming/RetroArch/

rom_path = ""
emu_path = ""

# Enter your core DLL file here, be sure to include the file extension
Expand Down
2 changes: 1 addition & 1 deletion n64_a3824d31-c2d3-4a1a-b321-7d0764da5513/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.2'
__version__ = '0.3'
2 changes: 1 addition & 1 deletion ncube_602422b9-ced5-476e-911a-7fa0adf0f7f7/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "GOG Galaxy Nintendo Gamecube RetroArch plugin",
"platform": "ncube",
"guid": "602422b9-ced5-476e-911a-7fa0adf0f7f7",
"version": "0.1",
"version": "0.3",
"description": "Galaxy Plugin to add Nintendo Gamecube isos and start them with the RetroArch emulator",
"author": "jshackles",
"email": "jshackles@gmail.com",
Expand Down
4 changes: 2 additions & 2 deletions ncube_602422b9-ced5-476e-911a-7fa0adf0f7f7/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def update_game_cache(self):
playlist_dict = json.load(playlist_json)
for entry in playlist_dict["items"]:
rom_path = entry["path"].split("#")[0]
if os.path.abspath(user_config.rom_path) in os.path.abspath(rom_path) and os.path.isfile(rom_path):
if os.path.isfile(rom_path):
provided_name = entry["label"].split(" (")[0]
game_list.append(
Game(
Expand Down Expand Up @@ -114,7 +114,7 @@ async def get_game_time(self, game_id: str, context:any):
playlist_dict = json.load(playlist_json)
for rom in playlist_dict["items"]:
if game_id == rom["label"].split(" (")[0]:
file_path = user_config.emu_path + "/playlists/logs/" + os.path.abspath(rom["path"]).split(os.path.abspath(user_config.rom_path) + "\\")[1][:-4] + ".lrtl"
file_path = user_config.emu_path + "/playlists/logs/" + rom["path"].rsplit("\\",1)[1].rsplit("#")[0].rsplit(".",1)[0] + ".lrtl"
if os.path.isfile(file_path):
with open(file_path) as json_data:
time_data = json.load(json_data)
Expand Down
1 change: 0 additions & 1 deletion ncube_602422b9-ced5-476e-911a-7fa0adf0f7f7/user_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# example:
# emu_path = "C:/Users/USERNAME/AppData/Roaming/RetroArch/

rom_path = ""
emu_path = ""

# Enter your core DLL file here, be sure to include the file extension
Expand Down
2 changes: 1 addition & 1 deletion ncube_602422b9-ced5-476e-911a-7fa0adf0f7f7/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1'
__version__ = '0.3'
2 changes: 1 addition & 1 deletion nds_4704ed29-f516-4fd8-8477-ddbcdb7cedfc/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "GOG Galaxy Nintendo DS RetroArch plugin",
"platform": "nds",
"guid": "4704ed29-f516-4fd8-8477-ddbcdb7cedfc",
"version": "0.1",
"version": "0.3",
"description": "Galaxy Plugin to add Nintendo DS roms and start them with the RetroArch emulator",
"author": "jshackles",
"email": "jshackles@gmail.com",
Expand Down
Loading

0 comments on commit c69ad8c

Please sign in to comment.