Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
Minor things left out
Browse files Browse the repository at this point in the history
  • Loading branch information
misandrie committed May 14, 2024
1 parent 1190561 commit b1555ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 3 additions & 4 deletions Marsey/Game/Patches/Marseyports/MarseyPortMan.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,18 @@ namespace Marsey.Game.Patches.Marseyports;
/// </summary>
public static class MarseyPortMan
{
private static readonly string _forkenvvar = "MARSEY_FORKID";
private static readonly string _engineenvvar = "MARSEY_ENGINE";
public static string fork = "";
public static Version engine = new Version();
private static IEnumerable<Type>? _backports;

public static void SetEngineVer(string eng) => engine = new Version(eng);
public static void SetForkID(string forkid) => fork = forkid;

public static void Initialize()
{
// https://www.youtube.com/watch?v=vmUGxXrlRmE
if (!MarseyConf.Backports) return;

fork = Envsey.CleanFlag(_forkenvvar)!;
engine = new Version(Envsey.CleanFlag(_engineenvvar)!);
MarseyLogger.Log(MarseyLogger.LogType.DEBG, "Backporter", $"Starting backporter against fork \"{fork}\", engine {engine}.");

IEnumerable<Type> backports = GetBackports();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ private void OnSetHWIdClick()
Cfg.CommitConfig();
}

OnPropertyChanged(nameof(HWIdString));
return;
}

Expand All @@ -411,7 +412,7 @@ private void OnSetHWIdClick()

private void OnGenHWIdClick()
{
string hwid = HWID.GenerateRandom(32);
string hwid = HWID.GenerateRandom();
_HWIdString = hwid;
HWIdString = hwid;

Expand Down

0 comments on commit b1555ec

Please sign in to comment.