rommapp/playnite-plugin

[Bug] Installing to PlayNite folder results in incorrect path

Opened this issue · 4 comments

Describe the bug
If you set the profile folder for an emulator to a subdirectory, like the PlayNight directory on Windows, It downloads the file to the following location
C:\Root\Playnite{PlayniteDir}\Roms\SNES\title\title.smc
even though the location of the ROM should is here:
C:\Root\Playnite\Roms\SNES\title\title.smc

To Reproduce
Set up an emulator with a directory under the root of PlayNite on a portable install

Expected behavior
Correct folder

Screenshots
Playnite DesktopApp_A4P6C3YxnJ

Context
When selecting a path within the root directory of PlayNite, it forces this prefix onto the destination. While this is useful for making a portable install, it's obviously not intended to create the literal itself.

People can set up a script something like this for their emulators in the meantime.

$play = "Play"
$niteDir = "niteDir"
md -Path {InstallDir} -Force 
Move-Item -Path ("{PlayniteDir}\" + "{" + $play + $niteDir + "}\Roms\SNES\{InstallDirName}\{ImageName}") -Destination "{PlayniteDir}\Roms\SNES\{InstallDirName}\{ImageName}" -Force -ErrorAction SilentlyContinue

People can set up a script something like this for their emulators in the meantime.

$play = "Play"
$niteDir = "niteDir"
md -Path {InstallDir} -Force 
Move-Item -Path ("{PlayniteDir}\" + "{" + $play + $niteDir + "}\Roms\SNES\{InstallDirName}\{ImageName}") -Destination "{PlayniteDir}\Roms\SNES\{InstallDirName}\{ImageName}" -Force -ErrorAction SilentlyContinue

how well does this work?

I’m trying to make a portable playnite where theres no editing needed.

People can set up a script something like this for their emulators in the meantime.

$play = "Play"
$niteDir = "niteDir"
md -Path {InstallDir} -Force 
Move-Item -Path ("{PlayniteDir}\" + "{" + $play + $niteDir + "}\Roms\SNES\{InstallDirName}\{ImageName}") -Destination "{PlayniteDir}\Roms\SNES\{InstallDirName}\{ImageName}" -Force -ErrorAction SilentlyContinue

how well does this work?

I’m trying to make a portable playnite where theres no editing needed.

Not super well. It would need tweaking to actually be useful. I would recommend waiting until they fix the actual plugin. Either that, or just set your ROM folder to outside the install directory.

People can set up a script something like this for their emulators in the meantime.

$play = "Play"
$niteDir = "niteDir"
md -Path {InstallDir} -Force 
Move-Item -Path ("{PlayniteDir}\" + "{" + $play + $niteDir + "}\Roms\SNES\{InstallDirName}\{ImageName}") -Destination "{PlayniteDir}\Roms\SNES\{InstallDirName}\{ImageName}" -Force -ErrorAction SilentlyContinue

how well does this work?
I’m trying to make a portable playnite where theres no editing needed.

Not super well. It would need tweaking to actually be useful. I would recommend waiting until they fix the actual plugin. Either that, or just set your ROM folder to outside the install directory.

Thank you i will for now just set it outside the install directory.