fix(pegasus): correct relative media paths#147
Conversation
|
Thanks for reporting. I still have some questions:
|
Answers to your questions
I had not. But I don't think I understand his argument for reasons I'll explain in the next section
I provided a
Not to my knowledge, no--it still stores everything in the game dir by default. My use caseHere's my configuration: If I run There are two things that seem wrong about this output:
I guess Lars' comment was implying he wanted to avoid precisely this situation with the media files, but, if so, it's an inconsistent standard since it wasn't applied to the This PR doesn't address all of these issues, obviously--it only addresses the inconsistent application of the |
|
Ah. Thanks a lot. Now I understand/could reproduce the issue. To formalize it a bit, thus I can shape the solution: For now let [main]
relativePaths="true"
gameListFolder="/path/to/pegasus"
mediaFolder="../media"
inputFolder="../roms"Will output the gamelist file for pegasus in collection: Super Nintendo
shortname: snes
launch: /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ snes "{file.path}"
game: Super Mario World
file: ../roms/Super Mario World.smc
assets.screenshot: ../media/snes/screenshots/Super Mario World.png
assets.boxFront: ../media/snes/covers/Super Mario World.png
assets.marquee: ../media/snes/marquees/Super Mario World.png
assets.wheel: ../media/snes/wheels/Super Mario World.pngAnd if relativePaths is off/false the asset paths should be in the canonical form of However, if relativePaths is on/true and Last case: If relativePaths is off/false and Right? |
|
That all sounds correct to me! |
|
Ok. Leave it with me. I will let you know when it is ready for testing. |
|
It is there for testing @cameronhimself . I did a comprehensive set of tests, but please do also verify if the gamelist / input / media folder settings and command line switches work as expected and discussed before and if you notice any regression. I also addressed the absolute path for The mechanics are documented in docs/PATHHANDLING.md. As nothing else has changed (no new configs/settings), you may start the development build from Skyscraper directly where you build the binary, no need to run |
|
Closing this as it is processed with #155. @cameronhimself feel free to create an issue whenever you should detect a bug (or brain puzzle) regarding this. |
It looks like there was an issue when generating relative media paths for Pegasus. It was using the
inputFolderconfig value rather thanmediaFolder. As a result, if your media dir wasn't nested in your ROM input dir you'd end up with absolute paths for media files no matterrelativePathswas set to.