Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PoroCYon
Pokéwalker ROM dumper
Commits
77d769cf
Commit
77d769cf
authored
Apr 03, 2021
by
PoroCYon
Browse files
... fix pw code upload for real this time
parent
d8d0e68b
Changes
1
Hide whitespace changes
Inline
Side-by-side
arm9/source/main.c
View file @
77d769cf
...
...
@@ -289,16 +289,17 @@ END:;
uint16_t
org
=
0xf8f0
+
0x180
;
uint16_t
orgBE
=
((
org
&
0xff
)
<<
8
)
|
((
org
>>
8
)
&
0xff
);
size_t
bloboff
=
0
;
while
(
blobsize
!=
0
)
{
size_t
chunk
=
((
blobsize
>
0x7e
)
?
0x7e
:
blobsize
);
if
(
!
pw_write_mem
(
sessid
,
org
,
chunk
,
stuff
))
{
if
(
!
pw_write_mem
(
sessid
,
org
+
bloboff
,
chunk
,
stuff
+
bloboff
))
{
iprintf
(
"can't install code 0x%x
\n
"
,
org
);
goto
LnopL
;
}
blobsize
-=
chunk
;
org
+=
chunk
;
bloboff
+=
chunk
;
}
if
(
!
pw_write_mem
(
sessid
,
0xf7e0
,
sizeof
sploit_trigger
,
&
orgBE
))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment