Skip to content

Commit

Permalink
remove jt stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpannella committed Sep 14, 2024
1 parent 6eddfd4 commit 5df8778
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
10 changes: 5 additions & 5 deletions src/services/CoreUpdaterService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -274,13 +274,13 @@ public void RunUpdates(string[] ids = null, bool clean = false)

JotegoRename(core);

var isJtBetaCore = this.coresService.IsBetaCore(core.identifier);
var isBetaCore = this.coresService.IsBetaCore(core.identifier);

if (isJtBetaCore.Item1)
if (isBetaCore.Item1)
{
core.beta_slot_id = isJtBetaCore.Item2;
core.beta_slot_platform_id_index = isJtBetaCore.Item3;
core.beta_slot_filename = isJtBetaCore.Item4;
core.beta_slot_id = isBetaCore.Item2;
core.beta_slot_platform_id_index = isBetaCore.Item3;
core.beta_slot_filename = isBetaCore.Item4;
this.coresService.CopyBetaKey(core);
}

Expand Down
14 changes: 0 additions & 14 deletions src/services/CoresService.Jotego.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,6 @@ private Dictionary<string, string> LoadRenamedPlatformFiles()
return platformFiles;
}

public (bool, string, int) IsJTBetaCore(string identifier)
{
var data = this.ReadDataJson(identifier);
var slot = data.data.data_slots.FirstOrDefault(x => x.name == "JTBETA");

return slot != null
? (true, slot.id, slot.GetPlatformIdIndex())
: (false, null, 0);
}

public bool ExtractJTBetaKey()
{
string keyPath = Path.Combine(this.installPath, LICENSE_EXTRACT_LOCATION);
Expand Down Expand Up @@ -95,10 +85,6 @@ public bool ExtractJTBetaKey()
return true;
}

// WriteMessage("JT beta key not found at either location:");
// WriteMessage($" {zipFile}");
// WriteMessage($" {binFile}");

return false;
}
}

0 comments on commit 5df8778

Please sign in to comment.