Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make a choice of different versions of the emulator?! #669

Open
Goodfeat opened this issue Oct 6, 2024 · 0 comments
Open

How to make a choice of different versions of the emulator?! #669

Goodfeat opened this issue Oct 6, 2024 · 0 comments

Comments

@Goodfeat
Copy link

Goodfeat commented Oct 6, 2024

This small fix allows you to add multiple versions of the same emulator (this was tested by ryujinx)

you need to create a folder with the same name as the original emulator (for example, for ryujinx you need to create a folder, for example ryujinx_latest)
add es_systems.cfg a new emulator with the same name and make a new config for the new emulator in es_features.cfg

Program.cs

            string emulatorName = SystemConfig["emulator"].Split('_')[0]; // <--- fix
            Generator generator = generators.Where(g => g.Key == emulatorName).Select(g => g.Value()).FirstOrDefault(); 

I just made a small check to filter up to the "_" symbol, thereby simply ignoring the remaining symbols

I also corrected the code in the Ryujinx.Generator.cs so that it generates a new path (similar to Yuzu)
Ryujinx.Generator.cs

 string path = AppConfig.GetFullPath(emulator.Replace("_", " "));
            if (string.IsNullOrEmpty(path) && emulator.Contains("_"))
                path = AppConfig.GetFullPath(emulator);

            // string path = AppConfig.GetFullPath("ryujinx");
            // if (!Directory.Exists(path))
            //    return null;

emulatorLauncher.zip

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

No branches or pull requests

1 participant