Custom configuration for each game #632

Merged
Goodfeat merged 75 commits from master into master 2025-02-26 03:11:20 +00:00
7 changed files with 192 additions and 11 deletions
Showing only changes of commit 1ca5407c22 - Show all commits

View File

@ -12472,6 +12472,31 @@
"zh_TW": "正在下載更新..."
}
},
{
"ID": "DialogRebooterMessage",
"Translations": {
"ar_SA": "من فضلك انتظر، المحاكي في طور إعادة التشغيل",
"de_DE": "Bitte warten Sie, der Emulator wird neu gestartet",
"el_GR": "Παρακαλώ περιμένετε, ο εξομοιωτής επανεκκινείται",
"en_US": "Please wait, the emulator is restarting",
"es_ES": "Por favor, espere, el emulador se está reiniciando",
"fr_FR": "Veuillez patienter, l'émulateur est en train de redémarrer",
"he_IL": "אנא המתן, המחקה מתארגן מחדש",
"it_IT": "Attendere prego, l'emulatore si sta riavviando",
"ja_JP": "お待ちください、エミュレーターが再起動しています",
"ko_KR": "잠시만 기다려 주세요, 에뮬레이터가 재시작 중입니다",
"no_NO": "Vennligst vent, emulatoren starter på nytt",
"pl_PL": "Proszę czekać, emulator jest w trakcie ponownego uruchamiania",
"pt_BR": "Por favor, aguarde, o emulador está reiniciando",
"ru_RU": "Пожалуйста, подождите, эмулятор перезапускается",
"sv_SE": "Vänligen vänta, emulatorn startar om",
"th_TH": "กรุณารอสักครู่, ตัวจำลองกำลังเริ่มใหม่",
"tr_TR": "Lütfen bekleyin, emülatör yeniden başlatılıyor",
"uk_UA": "Будь ласка, зачекайте, емулятор перезавантажується",
"zh_CN": "请稍等,模拟器正在重新启动",
"zh_TW": "請稍候,模擬器正在重新啟動"
}
},
{
"ID": "DialogUpdaterExtractionMessage",
"Translations": {
@ -19272,6 +19297,31 @@
"zh_TW": "{0} 更新程式"
}
},
{
"ID": "RyujinxRebooter",
"Translations": {
"ar_SA": "إعادة تشغيل {0}",
"de_DE": "Neustart von {0}",
"el_GR": "Επανεκκίνηση {0}",
"en_US": "{0} Reboot",
"es_ES": "Reinicio de {0}",
"fr_FR": "Redémarrage de {0}",
"he_IL": "אתחול {0}",
"it_IT": "Riavvio di {0}",
"ja_JP": "{0} 再起動",
"ko_KR": "{0} 재부팅",
"no_NO": "Omstart av {0}",
"pl_PL": "Ponowne uruchomienie {0}",
"pt_BR": "Reinício de {0}",
"ru_RU": "{0} Перезагрузка",
"sv_SE": "Ominläsning av {0}",
"th_TH": "เริ่มต้นใหม่ {0}",
"tr_TR": "{0} Yeniden Başlatma",
"uk_UA": "Перезавантаження {0}",
"zh_CN": "{0} 重启",
"zh_TW": "{0} 重新啟動"
}
},
{
"ID": "SettingsTabHotkeys",
"Translations": {

View File

@ -54,6 +54,7 @@ namespace Ryujinx.Ava.Common.Locale
SetDynamicValues(LocaleKeys.RyujinxInfo, RyujinxApp.FullAppName);
SetDynamicValues(LocaleKeys.RyujinxConfirm, RyujinxApp.FullAppName);
SetDynamicValues(LocaleKeys.RyujinxUpdater, RyujinxApp.FullAppName);
SetDynamicValues(LocaleKeys.RyujinxRebooter, RyujinxApp.FullAppName);
}
public string this[LocaleKeys key]

View File

@ -35,6 +35,7 @@ namespace Ryujinx.Ava
public static string GlobalConfigurationPath { get; private set; }
public static bool PreviewerDetached { get; private set; }
public static bool UseHardwareAcceleration { get; private set; }
public static string BackendThreadingArg { get; private set; }
[LibraryImport("user32.dll", SetLastError = true)]
public static partial int MessageBoxA(nint hWnd, [MarshalAs(UnmanagedType.LPStr)] string text, [MarshalAs(UnmanagedType.LPStr)] string caption, uint type);
@ -250,6 +251,11 @@ namespace Ryujinx.Ava
_ => ConfigurationState.Instance.Graphics.BackendThreading
};
if (CommandLineState.OverrideBackendThreadingAfterReboot is not null)
{
BackendThreadingArg = CommandLineState.OverrideBackendThreadingAfterReboot;
}
// Check if docked mode was overriden.
if (CommandLineState.OverrideDockedMode.HasValue)
ConfigurationState.Instance.System.EnableDockedMode.Value = CommandLineState.OverrideDockedMode.Value;

95
src/Ryujinx/Rebooter.cs Normal file
View File

@ -0,0 +1,95 @@
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
using FluentAvalonia.UI.Controls;
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
using Ryujinx.Ava.Common.Locale;
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
using Ryujinx.Ava.UI.ViewModels;
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
using Ryujinx.Ava.Utilities;
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
using SkiaSharp;
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
using System;
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
using System.Collections.Generic;
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
using System.Diagnostics;
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
using System.IO;
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
using System.Linq;
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
using System.Threading.Tasks;
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
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(?)
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
internal static class Rebooter
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
private static readonly string _updateDir = Path.Combine(Path.GetTempPath(), "Ryujinx", "update");
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
public static void RebootAppWithGame(string gamePath, List<string> 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
_ = Reboot(gamePath, 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
}
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
private static async Task Reboot(string gamePath, List<string> 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
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
bool shouldRestart = 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
TaskDialog taskDialog = new()
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
Header = LocaleManager.Instance[LocaleKeys.RyujinxRebooter],
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
SubHeader = LocaleManager.Instance[LocaleKeys.DialogRebooterMessage],
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
IconSource = new SymbolIconSource { Symbol = Symbol.Games },
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
XamlRoot = RyujinxApp.MainWindow,
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
if (shouldRestart)
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
List<string> arguments = CommandLineState.Arguments.ToList();
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 executableDirectory = AppDomain.CurrentDomain.BaseDirectory;
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
// On macOS we perform the update at relaunch.
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())
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 baseBundlePath = Path.GetFullPath(Path.Combine(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
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
}
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
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
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
// 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
// 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
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(?)
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
}
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

View File

@ -1523,10 +1523,16 @@ namespace Ryujinx.Ava.UI.ViewModels
}
}
public void InitializeUserConfig(ApplicationData application)
public bool InitializeUserConfig(ApplicationData application)
{
// Code where conditions will be met before loading the user configuration
// Code where conditions will be met before loading the user configuration (Global Config)
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;
@ -1537,19 +1543,29 @@ namespace Ryujinx.Ava.UI.ViewModels
}
// Code where conditions will be executed after loading user configuration
if (ConfigurationState.Instance.Graphics.BackendThreading != backendThreadingValue)
if (ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() != BackendThreadingInit)
{
/*
* The function to restart the emulator together with the selected game
Task.Run(async () => await Rebooter.RebootAppWithGame(application.Path));
*/
List<string> Arguments = new List<string>
{
"--bt", ConfigurationState.Instance.Graphics.BackendThreading.Value.ToString() // BackendThreading
};
Rebooter.RebootAppWithGame(application.Path, Arguments);
return true;
}
return false;
}
public async Task LoadApplication(ApplicationData application, bool startFullscreen = false, BlitStruct<ApplicationControlProperty>? customNacpData = null)
{
InitializeUserConfig(application);
if (InitializeUserConfig(application))
{
return;
}
if (AppHost != null)
{

View File

@ -71,13 +71,14 @@ namespace Ryujinx.Ava.UI.ViewModels
public SettingsHacksViewModel DirtyHacks { get; }
private readonly bool _isGameRunning;
private Bitmap _gameIcon;
private string _gameTitle;
private string _gamePath;
private string _gameId;
private readonly bool _isGameRunning;
public bool IsGameRunning => _isGameRunning;
public Bitmap GameIcon => _gameIcon;
public string GamePath => _gamePath;
public string GameTitle => _gameTitle;
public string GameId => _gameId;
@ -377,7 +378,8 @@ namespace Ryujinx.Ava.UI.ViewModels
}
_isGameRunning = gameRunning;
_gameTitle = gameName;
_gamePath = gamePath;
_gameTitle = gameName;
_gameId = gameId;
if (enableToLoadCustomConfig) // During the game. If there is no user config, then load the global config window

View File

@ -11,6 +11,7 @@ namespace Ryujinx.Ava.Utilities
public static bool? OverrideHardwareAcceleration { get; private set; }
public static string OverrideGraphicsBackend { get; private set; }
public static string OverrideBackendThreading { get; private set; }
public static string OverrideBackendThreadingAfterReboot { get; private set; }
public static string OverridePPTC { get; private set; }
public static string OverrideMemoryManagerMode { get; private set; }
public static string OverrideSystemRegion { get; private set; }
@ -99,6 +100,16 @@ namespace Ryujinx.Ava.Utilities
OverrideBackendThreading = args[++i];
break;
case "--bt":
if (i + 1 >= args.Length)
{
Logger.Error?.Print(LogClass.Application, $"Invalid option '{arg}'");
continue;
}
OverrideBackendThreadingCustom = args[++i];
break;
case "--pptc":
if (i + 1 >= args.Length)
{