From: chaoskagami Date: Tue, 5 Jul 2016 17:19:48 +0000 (-0400) Subject: Add prebuilts and fix warnings (fix and win32 courtesy @Wolfvak) X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=98bc5f2904988fd47d9c385f9ff11880fd04937f;p=console%2Fmisc_3ds.git Add prebuilts and fix warnings (fix and win32 courtesy @Wolfvak) --- diff --git a/ntr_pathhack/bin/ntr_path_patcher-linux32 b/ntr_pathhack/bin/ntr_path_patcher-linux32 new file mode 100755 index 0000000..9b50a00 Binary files /dev/null and b/ntr_pathhack/bin/ntr_path_patcher-linux32 differ diff --git a/ntr_pathhack/bin/ntr_path_patcher-linux64 b/ntr_pathhack/bin/ntr_path_patcher-linux64 new file mode 100755 index 0000000..91eedc3 Binary files /dev/null and b/ntr_pathhack/bin/ntr_path_patcher-linux64 differ diff --git a/ntr_pathhack/bin/ntr_path_patcher-win32.exe b/ntr_pathhack/bin/ntr_path_patcher-win32.exe new file mode 100644 index 0000000..afabb61 Binary files /dev/null and b/ntr_pathhack/bin/ntr_path_patcher-win32.exe differ diff --git a/ntr_pathhack/bin/ntr_path_patcher-win64.exe b/ntr_pathhack/bin/ntr_path_patcher-win64.exe new file mode 100755 index 0000000..6f9a492 Binary files /dev/null and b/ntr_pathhack/bin/ntr_path_patcher-win64.exe differ diff --git a/ntr_pathhack/ntr_path_patcher.c b/ntr_pathhack/ntr_path_patcher.c index c48bbad..248e862 100644 --- a/ntr_pathhack/ntr_path_patcher.c +++ b/ntr_pathhack/ntr_path_patcher.c @@ -117,7 +117,7 @@ int main(int argc, char** argv) { off += base; // Rebase pointer relative to NTRs base. - uint32_t patchme = (uint32_t*)memfind(mem, size, (uint8_t*)&off, 4); // Find xref + uint32_t *patchme = (uint32_t*)memfind(mem, size, (uint8_t*)&off, 4); // Find xref if (patchme == 0) { fprintf(stderr, "Pointer for string \"%s\" is missing! Aborting.\n", str); exit(1); @@ -134,7 +134,7 @@ int main(int argc, char** argv) { expand += 1; - uint32_t* patch_rel = (uint32_t*)(&mem[patchme]); + uint32_t* patch_rel = (uint32_t*)(&mem[(uint32_t)patchme]); // Rebase new pointer *patch_rel = patch_off + base;