diff --git a/AM2RLauncher/AM2RLauncher/CrossPlatformOperations.cs b/AM2RLauncher/AM2RLauncher/CrossPlatformOperations.cs index 37ad89d..27ee80d 100644 --- a/AM2RLauncher/AM2RLauncher/CrossPlatformOperations.cs +++ b/AM2RLauncher/AM2RLauncher/CrossPlatformOperations.cs @@ -111,8 +111,10 @@ namespace AM2RLauncher { //we use the configuration manager in order to read from the app.config, change the value and save it Configuration appConfig = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); + if (appConfig == null) + throw new NullReferenceException("Could not find the Config file! Please make sure it exists!"); ConnectionStringsSection connectionStringsSection = (ConnectionStringsSection)appConfig.GetSection("connectionStrings"); - if(connectionStringsSection == null || connectionStringsSection.ConnectionStrings[property].ConnectionString == null) + if(connectionStringsSection == null || connectionStringsSection.ConnectionStrings[property]?.ConnectionString == null) throw new ArgumentException("The property " + property + " could not be found."); connectionStringsSection.ConnectionStrings[property].ConnectionString = value.ToString(); appConfig.Save(); diff --git a/AM2RLauncher/AM2RLauncher/MainForm/Splash.cs b/AM2RLauncher/AM2RLauncher/MainForm/Splash.cs index 8c82db3..cb032cc 100644 --- a/AM2RLauncher/AM2RLauncher/MainForm/Splash.cs +++ b/AM2RLauncher/AM2RLauncher/MainForm/Splash.cs @@ -40,7 +40,8 @@ namespace AM2RLauncher "Oh? So you're patching me?", "I, Gawron Giovana, have a dream.", "Oooh weee ooo, I look just like an Omega", - "AH THE MOLE" + "AH THE MOLE", + "S P I D E R B A L L" }; /// @@ -54,6 +55,7 @@ namespace AM2RLauncher "All your Ubuntu are belong to Arch btw.", "Help, how do I quit vim!?", "The bloat isn't our fault, YoYo Games forced 1GB dependencies!", + "On second thought, maybe the bloat is our fault...", "The quieter you are, the more Metroids you can hear.", "What you are referring to as AM2R, is in fact, GNU/AM2R.", "GNOME be gone!", @@ -61,7 +63,10 @@ namespace AM2RLauncher "Year 3115, NVIDIA still doesn't support Wayland.", "Was a mouse really that expensive, i3 users!?", "Imagine using non-free software.", - "What if... we used a non-FOSS OS? Haha just kidding... Unless?" + "What if... we used a non-FOSS OS? Haha just kidding... Unless?", + "🐧", + "You are already patched πŸΈπŸ•Ά", + "Yes, do as I say!", }; ///