Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitaadb552

Browse files
authored
Fix an oversight
If you swap a mii that you don't own with your personal mii, stuff goes awry so now it takes ownership when swapping
1 parent0cf63cd commitaadb552

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

‎Sources/cheats.cpp‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
namespaceCTRPluginFramework
77
{
8+
Keyboard *kb =new Keyboard("Enter ID:");
89
Keyboard *optKb =new Keyboard("Choose option:");
910
Keyboard *deloptKb =new Keyboard("Are you sure you want to delete this Mii?");
1011

@@ -92,7 +93,7 @@ bool ConvertString(u32 address, const char* input, size_t size, StringFormat for
9293
settings.MainTextColor = Color::Black;
9394
settings.WindowTitleColor = Color::Black;
9495
settings.MenuSelectedItemColor = Color::Black;
95-
settings.MenuUnselectedItemColor = Color::Black;
96+
settings.MenuUnselectedItemColor = Color::Black;
9697
settings.Keyboard.Background = Color::White;
9798
settings.Keyboard.KeyBackground = Color::DarkGrey;
9899
settings.Keyboard.KeyBackgroundPressed = Color::DimGrey;
@@ -858,6 +859,13 @@ bool ConvertString(u32 address, const char* input, size_t size, StringFormat for
858859
MessageBox(Miiname <<" is now one of your own Miis!\n(Reload and save to make changes)")();
859860
}
860861
if (Choiche ==10) {//swap
862+
for (int i =0; i <8; i+=4)//take ownership of mii to swap to
863+
{
864+
if (Process::Read32(DATA_ADDR +4 + i, val32))
865+
{
866+
Process::Write32((0x5C * val) + (DATA_ADDR +4 + i), val32);
867+
}
868+
}
861869
for (int i =0; i <92; i+=4)
862870
{
863871
if(Process::Read32((0x5C * val) + (DATA_ADDR + i), val32))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp