From 62595f612e010861c9fd08776c20713800d1df70 Mon Sep 17 00:00:00 2001 From: WeeXnes Date: Tue, 22 Apr 2025 01:09:48 +0200 Subject: [PATCH] working prototype --- PS2_Manager/Core/Game.cs | 25 +---------------- PS2_Manager/EditGame.axaml | 25 +++++++++++++---- PS2_Manager/EditGame.axaml.cs | 52 +++++++++++++++++++++++++++++++++-- PS2_Manager/MainWindow.axaml | 2 +- 4 files changed, 72 insertions(+), 32 deletions(-) diff --git a/PS2_Manager/Core/Game.cs b/PS2_Manager/Core/Game.cs index 69994c9..a7fdefe 100644 --- a/PS2_Manager/Core/Game.cs +++ b/PS2_Manager/Core/Game.cs @@ -71,30 +71,7 @@ public class Game } } - public void GetChecksum() - { - string filePath = this.GamePath; - - BackgroundWorker md5Worker = new BackgroundWorker(); - BackgroundWorker sha1Worker = new BackgroundWorker(); - - md5Worker.DoWork += (s, e) => - { - string md5 = Checksum.GetMD5Hash(filePath); - Console.WriteLine("MD5: " + md5); - }; - - sha1Worker.DoWork += (s, e) => - { - string sha1 = Checksum.GetSHA1Hash(filePath); - Console.WriteLine("SHA1: " + sha1); - }; - - md5Worker.RunWorkerAsync(); - sha1Worker.RunWorkerAsync(); - - Console.WriteLine("Hashing started..."); - } + private string ParseFormattedFilename(string filename) { diff --git a/PS2_Manager/EditGame.axaml b/PS2_Manager/EditGame.axaml index 5b79035..0337cb3 100644 --- a/PS2_Manager/EditGame.axaml +++ b/PS2_Manager/EditGame.axaml @@ -5,9 +5,24 @@ mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" x:Class="PS2_Manager.EditGame"> - - - - - + + + + + + + + + + + + + + + + +