smealum / ninjhax2.x

source code for 3DS hax 2.x payloads
http://smealum.github.io/3ds/
75 stars 24 forks source link

Fix argv[0] path handling in app_code #5

Closed fincs closed 8 years ago

fincs commented 8 years ago

The current path handling code for opening the file handle to the 3dsx sucks because of these reasons:

This pull request solves both issues, and as a side effect I had to introduce some dead code elimination optimizations in order to fit the ropbin in 32KB.

smealum commented 8 years ago

this better work