Skip to content

Commit

Permalink
Finish renaming ControllerLayout
Browse files Browse the repository at this point in the history
  • Loading branch information
ItEndsWithTens committed Mar 16, 2024
1 parent 10b3f50 commit 33656fe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/SHME.ExternalTool/UI/CustomMainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ public override void UpdateValues(ToolFormUpdateType type)
}
else if (_firstPersonEnabled)
{
long address = Rom.Addresses.MainRam.ControllerLayout;
long address = Rom.Addresses.MainRam.ControllerConfig;
string hash = Mem.HashRegion(address, SHME.ExternalTool.ControllerConfig.Size);
if (hash != _lastControllerLayoutHash)
{
Expand Down Expand Up @@ -718,7 +718,7 @@ private void CleanUpDisposables()
private SHME.ExternalTool.ControllerConfig _controllerConfig;
private void SetButtonNames()
{
long address = Rom.Addresses.MainRam.ControllerLayout;
long address = Rom.Addresses.MainRam.ControllerConfig;
IReadOnlyList<byte> bytes = Mem.ReadByteRange(address, SHME.ExternalTool.ControllerConfig.Size);
_controllerConfig = new SHME.ExternalTool.ControllerConfig(bytes);

Expand Down
2 changes: 1 addition & 1 deletion src/SHME.ExternalTool/Versions/Addresses.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public class MainRamAddresses

public long HarryState { get; set; }

public long ControllerLayout { get; set; }
public long ControllerConfig { get; set; }

public long SaveData { get; set; }
public long IndexOfLoadedStage { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion src/SHME.ExternalTool/Versions/USRetail.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public class USRetail : Rom

HarryState = 0xBA150,

ControllerLayout = 0xBC728,
ControllerConfig = 0xBC728,

// 0xBC750 // View control normal/reversed

Expand Down

0 comments on commit 33656fe

Please sign in to comment.