]> Chaos Git - console/misc_3ds.git/commitdiff
Add prebuilts and fix warnings (fix and win32 courtesy @Wolfvak)
authorchaoskagami <chaos.kagami@gmail.com>
Tue, 5 Jul 2016 17:19:48 +0000 (13:19 -0400)
committerchaoskagami <chaos.kagami@gmail.com>
Tue, 5 Jul 2016 17:19:48 +0000 (13:19 -0400)
ntr_pathhack/bin/ntr_path_patcher-linux32 [new file with mode: 0755]
ntr_pathhack/bin/ntr_path_patcher-linux64 [new file with mode: 0755]
ntr_pathhack/bin/ntr_path_patcher-win32.exe [new file with mode: 0644]
ntr_pathhack/bin/ntr_path_patcher-win64.exe [new file with mode: 0755]
ntr_pathhack/ntr_path_patcher.c

diff --git a/ntr_pathhack/bin/ntr_path_patcher-linux32 b/ntr_pathhack/bin/ntr_path_patcher-linux32
new file mode 100755 (executable)
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 (executable)
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 (file)
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 (executable)
index 0000000..6f9a492
Binary files /dev/null and b/ntr_pathhack/bin/ntr_path_patcher-win64.exe differ
index c48bbadcb36ad012aeb84df5f62dda4c79e26926..248e862f79909fcd6bc5c6eef1624984b4f48ff7 100644 (file)
@@ -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;