Comment out some temporarily short-circuited code to remove some warnings
This commit is contained in:
parent
b16a9b12ff
commit
a86ad73ade
|
@ -394,7 +394,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
//blnActionReplayMax means "This is an Action Replay MAX code."
|
//blnActionReplayMax means "This is an Action Replay MAX code."
|
||||||
Boolean blnActionReplayMax = false;
|
Boolean blnActionReplayMax = false;
|
||||||
//blnCodeBreaker means "This is a CodeBreaker code."
|
//blnCodeBreaker means "This is a CodeBreaker code."
|
||||||
Boolean blnCodeBreaker = false;
|
//Boolean blnCodeBreaker = false;
|
||||||
//blnUnhandled means "BizHawk can't do this one or the tool can't."
|
//blnUnhandled means "BizHawk can't do this one or the tool can't."
|
||||||
Boolean blnUnhandled = false;
|
Boolean blnUnhandled = false;
|
||||||
//blnUnneeded means "You don't need this code."
|
//blnUnneeded means "You don't need this code."
|
||||||
|
@ -402,14 +402,14 @@ namespace BizHawk.Client.EmuHawk
|
||||||
private void GBA()
|
private void GBA()
|
||||||
{
|
{
|
||||||
blnEncrypted = false;
|
blnEncrypted = false;
|
||||||
bool blnNoCode = false;
|
//bool blnNoCode = false;
|
||||||
//Super Ultra Mega HD BizHawk GameShark/Action Replay/Code Breaker Final Hyper Edition Arcade Remix EX + α GBA Code detection method.
|
//Super Ultra Mega HD BizHawk GameShark/Action Replay/Code Breaker Final Hyper Edition Arcade Remix EX + α GBA Code detection method.
|
||||||
//Seriously, it's that complex.
|
//Seriously, it's that complex.
|
||||||
|
|
||||||
//Check Game Shark/Action Replay (Not Max) Codes
|
//Check Game Shark/Action Replay (Not Max) Codes
|
||||||
if (SingleCheat.Length == 17 && SingleCheat.IndexOf(" ") == 8)
|
if (SingleCheat.Length == 17 && SingleCheat.IndexOf(" ") == 8)
|
||||||
{
|
{
|
||||||
blnNoCode = true;
|
//blnNoCode = true;
|
||||||
//Super Ultra Mega HD BizHawk GameShark/Action Replay/Code Breaker Final Hyper Edition Arcade Remix EX + α GBA Code detection method.
|
//Super Ultra Mega HD BizHawk GameShark/Action Replay/Code Breaker Final Hyper Edition Arcade Remix EX + α GBA Code detection method.
|
||||||
//Seriously, it's that complex.
|
//Seriously, it's that complex.
|
||||||
|
|
||||||
|
@ -531,57 +531,56 @@ namespace BizHawk.Client.EmuHawk
|
||||||
//Sample Code
|
//Sample Code
|
||||||
//Encyped: 6C2A1F51C2C0
|
//Encyped: 6C2A1F51C2C0
|
||||||
//Decrypted: 82028048 FFFFFFFF
|
//Decrypted: 82028048 FFFFFFFF
|
||||||
GBACodeBreaker();
|
//GBACodeBreaker();
|
||||||
|
|
||||||
if (blnCodeBreaker == false)
|
//if (blnCodeBreaker == false)
|
||||||
{
|
//{
|
||||||
parseString = SingleCheat;
|
// parseString = SingleCheat;
|
||||||
UInt32 op1 = 0;
|
// UInt32 op1 = 0;
|
||||||
UInt32 op2 = 0;
|
// UInt32 op2 = 0;
|
||||||
UInt32 sum = 0xC6EF3720;
|
// UInt32 sum = 0xC6EF3720;
|
||||||
string test1;
|
// string test1;
|
||||||
string test2;
|
// string test2;
|
||||||
test1 = parseString.Remove(5, 6);
|
// test1 = parseString.Remove(5, 6);
|
||||||
test2 = parseString.Remove(0, 6);
|
// test2 = parseString.Remove(0, 6);
|
||||||
MessageBox.Show(test1.ToString());
|
// MessageBox.Show(test1.ToString());
|
||||||
MessageBox.Show(test2.ToString());
|
// MessageBox.Show(test2.ToString());
|
||||||
op1 = UInt32.Parse(parseString.Remove(5, 6), NumberStyles.HexNumber);
|
// op1 = UInt32.Parse(parseString.Remove(5, 6), NumberStyles.HexNumber);
|
||||||
op2 = UInt32.Parse(parseString.Remove(0, 6), NumberStyles.HexNumber);
|
// op2 = UInt32.Parse(parseString.Remove(0, 6), NumberStyles.HexNumber);
|
||||||
|
|
||||||
//Tiny Encryption Algorithm
|
// //Tiny Encryption Algorithm
|
||||||
int i;
|
// int i;
|
||||||
for (i = 0; i < 32; ++i)
|
// for (i = 0; i < 32; ++i)
|
||||||
{
|
// {
|
||||||
op2 -= ((op1 << 4) + GBAGameSharkSeeds[2]) ^ (op1 + sum) ^ ((op1 >> 5) + GBAGameSharkSeeds[3]);
|
// op2 -= ((op1 << 4) + GBAGameSharkSeeds[2]) ^ (op1 + sum) ^ ((op1 >> 5) + GBAGameSharkSeeds[3]);
|
||||||
op1 -= ((op2 << 4) + GBAGameSharkSeeds[0]) ^ (op2 + sum) ^ ((op2 >> 5) + GBAGameSharkSeeds[1]);
|
// op1 -= ((op2 << 4) + GBAGameSharkSeeds[0]) ^ (op2 + sum) ^ ((op2 >> 5) + GBAGameSharkSeeds[1]);
|
||||||
sum -= 0x9E3779B9;
|
// sum -= 0x9E3779B9;
|
||||||
}
|
// }
|
||||||
//op1 has the Address
|
// //op1 has the Address
|
||||||
//op2 has the Value
|
// //op2 has the Value
|
||||||
//Sum, is pointless?
|
// //Sum, is pointless?
|
||||||
RAMAddress = string.Format("{0:X8}", op1);
|
// RAMAddress = string.Format("{0:X8}", op1);
|
||||||
//RAMAddress = RAMAddress.Remove(0, 1);
|
// //RAMAddress = RAMAddress.Remove(0, 1);
|
||||||
RAMValue = string.Format("{0:X8}", op2);
|
// RAMValue = string.Format("{0:X8}", op2);
|
||||||
// && RAMAddress[6] == '0'
|
// // && RAMAddress[6] == '0'
|
||||||
}
|
//}
|
||||||
|
|
||||||
if (blnCodeBreaker == true)
|
//if (blnCodeBreaker == true)
|
||||||
{
|
//{
|
||||||
//We got a Valid Code Breaker Code. Hopefully.
|
// //We got a Valid Code Breaker Code. Hopefully.
|
||||||
AddGBA();
|
// AddGBA();
|
||||||
return;
|
// return;
|
||||||
}
|
//}
|
||||||
|
|
||||||
if (SingleCheat.IndexOf(" ") != 8 && SingleCheat.Length != 12)
|
|
||||||
{
|
|
||||||
MessageBox.Show("ALL Codes for Action Replay, Action Replay MAX, Codebreaker, GameShark Advance, GameShark SP, Xploder have a Space after the 8th character.", "Input Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
//We have a code
|
|
||||||
if (blnNoCode == false)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
//if (SingleCheat.IndexOf(" ") != 8 && SingleCheat.Length != 12)
|
||||||
|
//{
|
||||||
|
// MessageBox.Show("ALL Codes for Action Replay, Action Replay MAX, Codebreaker, GameShark Advance, GameShark SP, Xploder have a Space after the 8th character.", "Input Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||||
|
// return;
|
||||||
|
//}
|
||||||
|
////We have a code
|
||||||
|
//if (blnNoCode == false)
|
||||||
|
//{
|
||||||
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue