-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to support Wii 1.0, improve accuracy of heap visualizations
- Loading branch information
Zachary Canann
committed
Nov 12, 2022
1 parent
78e3d30
commit a4dd03a
Showing
11 changed files
with
431 additions
and
226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 9 additions & 5 deletions
14
Twilight/Source/ActorReferenceCountVisualizer/ActorReferenceCountTableConstants.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using Twilight.Source.Main; | ||
|
||
namespace Twilight.Source.ActorReferenceCountVisualizer | ||
{ | ||
public class ActorReferenceCountTableConstants | ||
{ | ||
public static readonly UInt32 ActorReferenceTableBase = 0x804224B8; | ||
public static readonly UInt32 ActorReferenceTableBaseGc = 0x804224B8; | ||
public static readonly UInt32 ActorReferenceTableBaseWii_1_0 = 0x804AEC34; | ||
public static readonly UInt32 ActorReferenceTableBaseWii_1_2 = 0x8049623C; | ||
public static readonly Int32 ActorReferenceCountTableMaxEntries = 128; | ||
public static readonly Int32 ActorSlotStructSize = typeof(ActorReferenceCountTableSlot).StructLayoutAttribute.Size; | ||
|
||
public static UInt32 GetActorReferenceTableSize() | ||
{ | ||
return MainViewModel.GetInstance().IsWii ? ActorReferenceTableBaseWii_1_0 : ActorReferenceTableBaseGc; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.