Merge pull request #59 from Mewtality/master
Added new code types and bug fixes
This commit is contained in:
commit
14a3dcc2b7
@ -3,7 +3,7 @@
|
||||
<app>
|
||||
<name>TCP Gecko</name>
|
||||
<coder>BullyWiiPlaza, wj44, dimok, Chadderz, Marionumber1</coder>
|
||||
<version>2.52</version>
|
||||
<version>2.53</version>
|
||||
<short_description>WiiU RAM Hacking</short_description>
|
||||
<long_description>A memory editor that does magical things to your games. In order to develop and apply real-time cheats use JGecko U.
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -20,12 +20,25 @@ void persistAssembly(unsigned char buffer[], unsigned int size) {
|
||||
void executeAssembly() {
|
||||
int startAddress = getStartAddress();
|
||||
log_printf("[Execute assembly] Start address: %i\n", startAddress);
|
||||
void (*function)() = (void (*)()) startAddress;
|
||||
function();
|
||||
log_print("[Execute assembly] Executed!\n");
|
||||
int startAddressInstruction = *(int*)startAddress;
|
||||
|
||||
if (startAddressInstruction != 0) {
|
||||
void (*function)() = (void (*)()) startAddress;
|
||||
function();
|
||||
log_print("[Execute assembly] Executed!\n");
|
||||
}
|
||||
}
|
||||
|
||||
void clearAssembly() {
|
||||
log_printf("[Clear assembly] Assembly size: %i\n", assemblySize);
|
||||
unsigned char buffer[assemblySize];
|
||||
log_print("[Clear assembly] Buffer allocated\n");
|
||||
memset((void *) buffer, 0, assemblySize);
|
||||
log_print("[Clear assembly] Memory set\n");
|
||||
int startAddress = getStartAddress();
|
||||
log_printf("[Clear assembly] Start address: %i\n", startAddress);
|
||||
kernelCopyData((unsigned char *) startAddress, buffer, assemblySize);
|
||||
log_print("[Clear assembly] Kernel copy done\n");
|
||||
assemblySize = 0;
|
||||
log_print("[Clear assembly] Assembly size 0\n");
|
||||
}
|
||||
|
BIN
tcpgecko.elf
BIN
tcpgecko.elf
Binary file not shown.
Loading…
Reference in New Issue
Block a user