Skip to content

Commit

Permalink
Fix Norfair Crash and Mii Names
Browse files Browse the repository at this point in the history
  • Loading branch information
jam1garner committed Mar 4, 2018
1 parent db15407 commit 5c3afb7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 4 additions & 3 deletions SmashDiscordRichPresence/Info.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ class Info
{ 0x08, "Pyrosphere" },
{ 0x36, "Pyrosphere Ω" },
{ 0x23, "Norfair" },
{ 0x51, "Norfair Ω" },
{ 0x09, "Wolly World" },
{ 0x37, "Wolly World Ω" },
{ 0x24, "Yoshi's Island" },
Expand Down Expand Up @@ -190,9 +191,9 @@ class Info

public static Dictionary<int, string> CHARACTER_NAMES = new Dictionary<int, string>()
{
{ 0x00, "Mii Fighter" },
{ 0x01, "Mii Swordsman" },
{ 0x02, "Mii Gunner" },
{ 0x01, "Mii Fighter" },
{ 0x02, "Mii Swordsman" },
{ 0x03, "Mii Gunner" },
{ 0x04, "Mario" },
{ 0x0C, "Luigi" },
{ 0x0F, "Peach" },
Expand Down
6 changes: 6 additions & 0 deletions SmashDiscordRichPresence/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ static void Main(string[] args)
players[7] = (int)gecko.peek(0x1098F16B) & 0xFF;
stage = (int)gecko.peek(0x1097577F) & 0xFF;
mode = (int)gecko.peek(0x1098B2AB) & 0xFF;

//Uncomment this for debug print
Console.WriteLine($"Mode = {mode}");
Console.WriteLine($"Stage = {stage}");
for (int i = 0; i < 8; i++)
Console.WriteLine($"Player {i + 1} - {players[i]}");
}
catch { } // 3DS mode crashes for some reason idk

Expand Down

0 comments on commit 5c3afb7

Please sign in to comment.