RetroBat-Official / emulatorlauncher

Emulators and application launcher used with RetroBat/EmulationStation to provide integrated features
37 stars 14 forks source link

vita3k.Generator.cs not using pref-path #402

Closed jsesp82 closed 5 months ago

jsesp82 commented 5 months ago

Hi,

I have set up a drive for my installed games using pref-path that is not the same as the vita3k emulator. I believe vita3k.Generator.cs is assuming that games are in the same path as the emulator and does not take pref-path into account, so it does not work for me.

        string path = AppConfig.GetFullPath("vita3k");
        ...
       //check if game is already installed or not (if installed game folder with gameID name exists in ux0\app\<gameID> folder)
        //if game is not yet installed ==> install it
        //if game is installed ==> run it
        string gamepath = Path.Combine(path, "ux0", "app", gameID);

In addition, when disableautoconfig is false, it always overwrites pref-path with the path of the emulator.

       //write pref-path with emulator path
        string vita_emulator_path = AppConfig.GetFullPath("vita3k");
        yml["pref-path"] = vita_emulator_path;

It would be great if pref-path can be included in the logic to allow this configuration to work.

Thank you very much.

Tartifless commented 5 months ago

Hello,

405

RetroBat will use existing pref-path from config.yml if set, else will default to emulator folder.