Updated to .NET 9.0

This commit is contained in:
flash 2025-04-25 15:49:46 +00:00
commit 1c23ffbbe8
Signed by: flash
GPG key ID: 2C9C2C574D47FE3E
61 changed files with 344 additions and 753 deletions
SharpChat

View file

@ -45,7 +45,7 @@ namespace SharpChat {
if(!File.Exists(configFile) && configFile == CONFIG)
ConvertConfiguration();
using IConfig config = new StreamConfig(configFile);
using StreamConfig config = StreamConfig.FromPath(configFile);
if(hasCancelled) return;
@ -124,7 +124,7 @@ namespace SharpChat {
const string mdb_config = @"mariadb.txt";
string[] mdbCfg = File.Exists(mdb_config) ? File.ReadAllLines(mdb_config) : Array.Empty<string>();
string[] mdbCfg = File.Exists(mdb_config) ? File.ReadAllLines(mdb_config) : [];
sw.WriteLine();
sw.WriteLine("# MariaDB configuration");