Custom configuration for each game #632

Merged
Goodfeat merged 75 commits from master into master 2025-02-26 03:11:20 +00:00
Showing only changes of commit 422c2279be - Show all commits

View File

@ -42,52 +42,33 @@ namespace Ryujinx.Ava
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
List<string> arguments = CommandLineState.Arguments.ToList(); List<string> arguments = CommandLineState.Arguments.ToList();
string executableDirectory = AppDomain.CurrentDomain.BaseDirectory; string executableDirectory = AppDomain.CurrentDomain.BaseDirectory;
// On macOS we perform the update at relaunch. var dialogTask = taskDialog.ShowAsync(true);
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
if (OperatingSystem.IsMacOS()) await Task.Delay(500);
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
// Find the process name.
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
string ryuName = Path.GetFileName(Environment.ProcessPath) ?? string.Empty;
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
// Fallback if the executable could not be found.
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
if (ryuName.Length == 0 || !Path.Exists(Path.Combine(executableDirectory, ryuName)))
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
{ {
string baseBundlePath = Path.GetFullPath(Path.Combine(executableDirectory, "..", "..")); ryuName = OperatingSystem.IsWindows() ? "Ryujinx.exe" : "Ryujinx";
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
string newBundlePath = Path.Combine(_updateDir, "Ryujinx.app");
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
string updaterScriptPath = Path.Combine(newBundlePath, "Contents", "Resources", "updater.sh");
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
string currentPid = Environment.ProcessId.ToString();
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
arguments.InsertRange(0, new List<string> { updaterScriptPath, baseBundlePath, newBundlePath, currentPid });
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
Process.Start("/bin/bash", arguments);
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
} }
else
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
ProcessStartInfo processStart = new(ryuName)
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
{ {
var dialogTask = taskDialog.ShowAsync(true); UseShellExecute = true,
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
await Task.Delay(500); WorkingDirectory = executableDirectory,
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
};
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
// Find the process name. foreach (var arg in args)
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
string ryuName = Path.GetFileName(Environment.ProcessPath) ?? string.Empty; {
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
processStart.ArgumentList.Add(arg);
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
// Some operating systems can see the renamed executable, so strip off the .ryuold if found.
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
if (ryuName.EndsWith(".ryuold"))
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
{
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
ryuName = ryuName[..^7];
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
}
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
// Fallback if the executable could not be found.
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
if (ryuName.Length == 0 || !Path.Exists(Path.Combine(executableDirectory, ryuName)))
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
{
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
ryuName = OperatingSystem.IsWindows() ? "Ryujinx.exe" : "Ryujinx";
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
}
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
ProcessStartInfo processStart = new(ryuName)
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
{
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
UseShellExecute = true,
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
WorkingDirectory = executableDirectory,
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
};
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
foreach (var arg in args)
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
{
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
processStart.ArgumentList.Add(arg);
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
}
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
processStart.ArgumentList.Add(gamePath);
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
Process.Start(processStart);
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
} }
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
processStart.ArgumentList.Add(gamePath);
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
Process.Start(processStart);
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
Environment.Exit(0); Environment.Exit(0);
} }
} }

GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
GreemDev commented 2025-02-24 00:06:08 +00:00 (Migrated from github.com)
Review

This is a rebooter, not an updater; the update stuff should probably get removed(?)

This is a rebooter, not an updater; the update stuff should probably get removed(?)
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting
Goodfeat commented 2025-02-24 08:07:52 +00:00 (Migrated from github.com)
Review

There is no need to delete it. At least I made it so that it works in this code

  public bool InitializeUserConfig(ApplicationData application)
        {
   
            BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value;
            string BackendThreadingInit = Program.BackendThreadingArg;

            if (BackendThreadingInit is null)
            {
                BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString();
            }

            // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. 
            string idGame = application.IdBaseString;
            if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat))
            {
                // Loads the user configuration, having previously changed the global configuration to the user configuration
                ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame);
            }

            // Code where conditions will be executed after loading user configuration
            if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
            {

                List<string> Arguments = new List<string>
                {
                    "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading
                    //"-i", application.IdBaseString
                };

                Rebooter.RebootAppWithGame(application.Path, Arguments);
 
                return true;
            }

            return false;
        }

It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts.

I just decided not to rework the updater class, but to make a new class for rebooting

There is no need to delete it. At least I made it so that it works in this code ``` public bool InitializeUserConfig(ApplicationData application) { BackendThreading backendThreadingValue = ConfigurationState.Instance.Graphics.BackendThreading.Value; string BackendThreadingInit = Program.BackendThreadingArg; if (BackendThreadingInit is null) { BackendThreadingInit = ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(); } // If a configuration is found in the "/games/xxxxxxxxxxxxxx" folder, the program will load the user setting. string idGame = application.IdBaseString; if (ConfigurationFileFormat.TryLoad(Program.GetDirGameUserConfig(idGame), out ConfigurationFileFormat configurationFileFormat)) { // Loads the user configuration, having previously changed the global configuration to the user configuration ConfigurationState.Instance.Load(configurationFileFormat, Program.GetDirGameUserConfig(idGame, true, true), idGame); } // Code where conditions will be executed after loading user configuration if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit) { List<string> Arguments = new List<string> { "--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString(), // BackendThreading //"-i", application.IdBaseString }; Rebooter.RebootAppWithGame(application.Path, Arguments); return true; } return false; } ``` It reboots the emulator if the graphics stream for running the game in the user configuration differs from the one loaded when the emulator starts. I just decided not to rework the updater class, but to make a new class for rebooting