1
0
mirror of synced 2024-11-24 04:20:10 +01:00

Fixed encryption keys not being loaded properly.

This commit is contained in:
Farewell_ 2024-03-19 12:31:36 +01:00
parent dbd426dcf1
commit f3926d3f13
3 changed files with 5 additions and 12 deletions

View File

@ -5,10 +5,7 @@
private static IniFile CreateIniFile() private static IniFile CreateIniFile()
{ {
var ini = new IniFile(); var ini = new IniFile();
if(!ini.KeyExists("MusicOrderSort")) if(!ini.KeyExists("MusicOrderSort")) ini.Write(MusicOrderSortProperty, MusicOrderSortValueNone);
{
ini.Write(MusicOrderSortProperty, MusicOrderSortValueNone);
}
return ini; return ini;
} }

View File

@ -5,6 +5,7 @@ using System.Linq;
using System.Windows.Forms; using System.Windows.Forms;
using TaikoSoundEditor.Collections; using TaikoSoundEditor.Collections;
using TaikoSoundEditor.Commons.Controls; using TaikoSoundEditor.Commons.Controls;
using TaikoSoundEditor.Commons.IO;
using TaikoSoundEditor.Commons.Utils; using TaikoSoundEditor.Commons.Utils;
using TaikoSoundEditor.Data; using TaikoSoundEditor.Data;
@ -71,6 +72,8 @@ namespace TaikoSoundEditor
Config.DatatableIO.IsEncrypted = UseEncryptionBox.Checked; Config.DatatableIO.IsEncrypted = UseEncryptionBox.Checked;
SSL.LoadKeys();
try try
{ {
MusicAttributes = Config.DatatableIO.DeserializeCollection<MusicAttributes, IMusicAttribute>(MusicAttributePath, DatatableTypes.MusicAttribute); MusicAttributes = Config.DatatableIO.DeserializeCollection<MusicAttributes, IMusicAttribute>(MusicAttributePath, DatatableTypes.MusicAttribute);

View File

@ -1,17 +1,12 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization; using System.Globalization;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Reflection;
using System.Text; using System.Text;
using System.Text.Json; using System.Text.Json;
using System.Text.Json.Serialization;
using System.Windows.Forms; using System.Windows.Forms;
using TaikoSoundEditor.Commons.Emit; using TaikoSoundEditor.Commons.Emit;
using TaikoSoundEditor.Commons.Extensions;
using TaikoSoundEditor.Commons.IO;
using TaikoSoundEditor.Commons.Utils; using TaikoSoundEditor.Commons.Utils;
using TaikoSoundEditor.Data; using TaikoSoundEditor.Data;
using TaikoSoundEditor.Properties; using TaikoSoundEditor.Properties;
@ -43,8 +38,6 @@ namespace TaikoSoundEditor
{ {
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
CultureInfo.CurrentCulture = CultureInfo.InvariantCulture; CultureInfo.CurrentCulture = CultureInfo.InvariantCulture;
SSL.LoadKeys();
string json = Resources.datatable_def_08_18; string json = Resources.datatable_def_08_18;
try try