1
0
mirror of synced 2024-11-12 00:10:47 +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()
{
var ini = new IniFile();
if(!ini.KeyExists("MusicOrderSort"))
{
ini.Write(MusicOrderSortProperty, MusicOrderSortValueNone);
}
if(!ini.KeyExists("MusicOrderSort")) ini.Write(MusicOrderSortProperty, MusicOrderSortValueNone);
return ini;
}

View File

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

View File

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