Skip to content

Commit

Permalink
refactor: introducing hadesFirm update
Browse files Browse the repository at this point in the history
  • Loading branch information
corsicanu committed Oct 11, 2023
1 parent d168f73 commit 96f652c
Show file tree
Hide file tree
Showing 26 changed files with 882 additions and 7,075 deletions.
8 changes: 4 additions & 4 deletions AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
using System.Runtime.InteropServices;

[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("SamFirm Reborn")]
[assembly: AssemblyProduct("hadesFirm Reborn")]
[assembly: AssemblyFileVersion("0.3.6.5")]
[assembly: AssemblyDescription("BornAgain Edition")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCopyright("Copyright zxz0O0 © 2015 / Ivan Meler 2023 / KSmith 2023")]
[assembly: AssemblyTitle("SamFirm Reborn")]
[assembly: AssemblyCopyright("Copyright zxz0O0 © 2015 / Ivan Meler 2021-2023 / KSmith 2023")]
[assembly: AssemblyTitle("hadesFirm Reborn")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("f64041a3-90f5-4bee-a430-1c0f1d604eee")]
Expand Down
18 changes: 9 additions & 9 deletions CmdLine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.IO;
using System.Threading;

namespace SamFirm
namespace hadesFirm
{
internal class CmdLine
{
Expand Down Expand Up @@ -52,7 +52,7 @@ private static int ProcessAction()

private static int DoDecrypt()
{
Logger.WriteLog("========== SamFirm Firmware Decrypter ==========\n", false);
Logger.WriteLog("========== hadesFirm Firmware Decrypter ==========\n", false);
Logger.WriteLog("Decrypting file " + CmdLine.file + "...", false);
string outputFile = Path.GetFileNameWithoutExtension(CmdLine.file);
CmdLine.CreateProgressbar();
Expand Down Expand Up @@ -93,7 +93,7 @@ private static int DecryptToFileOrDirectory(Command.Firmware fw, string outputFi

private static int DoCheck()
{
Logger.WriteLog("========== SamFirm Firmware Update Check ==========\n", false);
Logger.WriteLog("========== hadesFirm Firmware Update Check ==========\n", false);
Command.Firmware firmware;
if (string.IsNullOrEmpty(CmdLine.version))
{
Expand All @@ -108,7 +108,7 @@ private static int DoCheck()

private static int DoDownload()
{
Logger.WriteLog("========== SamFirm Firmware Downloader ==========\n", false);
Logger.WriteLog("========== hadesFirm Firmware Downloader ==========\n", false);
Command.Firmware fw;
if (string.IsNullOrEmpty(CmdLine.version))
{
Expand Down Expand Up @@ -214,12 +214,12 @@ private static void DisplayUsage()
{
Logger.WriteLog("Usage:\n", false);
Logger.WriteLog("Update check:", false);
Logger.WriteLog(" SamFirm.exe -c -model [device model] -region [region code]\n [-version [pda/csc/phone/data]] [-binary]", false);
Logger.WriteLog(" hadesFirm.exe -c -model [device model] -region [region code]\n [-version [pda/csc/phone/data]] [-binary]", false);
Logger.WriteLog("\nDecrypting:", false);
Logger.WriteLog(" SamFirm.exe -file [path-to-file.zip.enc2] -version [pda/csc/phone/data] [-meta metafile]", false);
Logger.WriteLog(" SamFirm.exe -file [path-to-file.zip.enc4] -version [pda/csc/phone/data] -logicValue [logicValue] [-meta metafile]", false);
Logger.WriteLog(" hadesFirm.exe -file [path-to-file.zip.enc2] -version [pda/csc/phone/data] [-meta metafile]", false);
Logger.WriteLog(" hadesFirm.exe -file [path-to-file.zip.enc4] -version [pda/csc/phone/data] -logicValue [logicValue] [-meta metafile]", false);
Logger.WriteLog("\nDownloading:", false);
Logger.WriteLog(" SamFirm.exe -model [device model] -region [region code]\n [-version [pda/csc/phone/data]] [-folder [output folder]]\n [-binary] [-autodecrypt] [-nozip] [-meta metafile]", false);
Logger.WriteLog(" hadesFirm.exe -model [device model] -region [region code]\n [-version [pda/csc/phone/data]] [-folder [output folder]]\n [-binary] [-autodecrypt] [-nozip] [-meta metafile]", false);
}

public static void SaveMeta(Command.Firmware fw, string metafile)
Expand All @@ -230,7 +230,7 @@ public static void SaveMeta(Command.Firmware fw, string metafile)
Directory.CreateDirectory(Path.GetDirectoryName(metafile));
using (TextWriter text = (TextWriter) File.CreateText(metafile))
{
text.WriteLine("[SamFirmData]");
text.WriteLine("[hadesFirmData]");
text.WriteLine("Model=" + fw.Model);
text.WriteLine("Devicename=" + fw.DisplayName);
text.WriteLine("Region=" + fw.Region);
Expand Down
2 changes: 1 addition & 1 deletion Command.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;

namespace SamFirm
namespace hadesFirm
{
internal class Command
{
Expand Down
2 changes: 1 addition & 1 deletion Crypto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Security.Cryptography;
using System.Text;

namespace SamFirm
namespace hadesFirm
{
internal class Crypto
{
Expand Down
2 changes: 1 addition & 1 deletion Error.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace SamFirm
namespace hadesFirm
{
public enum Error
{
Expand Down
2 changes: 1 addition & 1 deletion FWFetch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Net;
using System.Text.RegularExpressions;

namespace SamFirm
namespace hadesFirm
{
internal class FWFetch
{
Expand Down
Loading

0 comments on commit 96f652c

Please sign in to comment.