Skip to content

Conversation

alextiley
Copy link
Contributor

@alextiley alextiley commented Sep 5, 2024

Fixes #12

Currently when roms are imported the installation path of each game is incorrectly set to the root destination path of the emulator path mapping. A rom entry is also created with another incorrect path - this path differs from the actual path that is later assigned upon rom install. This behavior conflicts with the Installation Status Updater plugin and causes all imported roms to be marked as installed if the root destination path contains at least one file at import time.

This PR ensures that both installation and rom paths are correctly initialized on initial library import. This fixes compatibility with the Installation Status Updater plugin.

Configured mappings:
mappings

Paths on import:
import

Paths post install:
postinstall

Fixes rommapp#11

Ensures that paths are correctly initialized upon initial library imports. This makes this library plugin compatible with the Installation Status Updater plugin.
@alextiley alextiley changed the title fix: ensure rom paths are initialized correctly upon import fix: ensure rom installation paths are initialized correctly upon import Sep 5, 2024
@gantoine gantoine self-requested a review September 6, 2024 12:40
@gantoine
Copy link
Member

gantoine commented Sep 6, 2024

Destination path: c:\romm
Installation folder: C:\romm\Super Mario 64`
Path: C:\romm\Super Mario 64\Super Mario 64.z64`

This is bad practice for the romm app, the paths for n64 should look like this:

Destination path: c:\romm\n64
Installation folder: C:\romm\n64\Super Mario 64`
Path: C:\romm\n64\Super Mario 64\Super Mario 64.z64`

Can you try using these paths for n64 games and report back? The code itself looks fine but I want to make sure the behaviour works as expected with proper platform mapping.

@alextiley
Copy link
Contributor Author

Sure, I agree that the directory I'm using isn't correct; I'm potentially looking at migrating from EmuLibrary to this and just created a single folder during my exploratory testing. Will report back shortly.

@alextiley
Copy link
Contributor Author

@gantoine Here you go, on a different machine this time but here's the same sort of thing with better directory path mappings:

image
image
image

Copy link
Member

@gantoine gantoine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great! i'll pull master this weekend and test this change, if its good we'll deploy a path release.

@gantoine gantoine merged commit d5f0686 into rommapp:main Sep 6, 2024
@philipjholm
Copy link

@gantoine Hate to ask, but any idea when this fix will be released?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Installation Folder is not set correctly
3 participants