This repository has been archived by the owner on Dec 15, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finally return to the Home Menu code properly, without state initiali…
…zation being skipped. This fixes issue #3. This also fixes using the THEMEDATA_PATH build option: gfx is now displayed correctly with that. Added the ROP_STR_R0TOR1 gadget and updated README.
- Loading branch information
Showing
35 changed files
with
76 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yellows8
My default theme filesize
303,127 Bytes
and I use LZ11 Decompresser to decompress it.The decompressed input theme for THEMEDATA_PATH is
604,693 Bytes
If I use the
.byte 0, 0, 0
(to align the theme data to 4 bytes, being604,696 Bytes
),the *themehax .lz file is
1,376,255 Bytes
and the *themehax .bin file is
625,072 Bytes
This doesn't work for me (maybe because the *.lz is not 4-byte aligned now
Edit: nvm the original one is
1,376,254 Bytes
which is not 5-byte aligned either.)Without using the
.byte 0, 0, 0
the *themehax .lz file is
1,376,254 Bytes
and the *themehax .bin file is
625,072 Bytes
(Same as with the byte code)288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ZodeHax Are you sure it's decompressed? You can decompress it by dragging the body_LZ.bin onto lzss3.py, which will overwrite the file. Try decompressing it again just in case.
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@FayneAldan dragging body_LZ.bin onto lzss3.py does nothing. That's why I am using LZ11 decompresser.
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ZodeHax Then run
python lzss3.py <Theme filename>
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@FayneAldan I did that afterwards. But it doesn't seem to do anything.
Filesize stays at
303,127 Bytes
and the last edited date stays the same. (The only thing that changes is "Last accessed")288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have HexEdit? What OS are you on?
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am able to hexedit. I am on Windows Server.
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Open the file in hex edit then move the cursor to the end of the file. Enter 00 until you have four 00's in the last block of text.
Still, themehax seems to be broken with the latest commit. For me, it crashes the kernel with the "An error has occurred. Hold down the POWER Button to turn off the power, then turn it on and try again." message when I try to enter HB.
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the size of your theme?
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
524,828 bytes
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that seems more likely than 303,127 Bytes for a decompressed theme.
And what's the size of your built *.lz file?
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1,376,253 bytes
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like that doesn't have to be 4byte aligned.
Now I built it with the file that wasn't changed from lzss3.py and installed it with the themehax installer v1.3.
It doesn't make me stuck in a black screen on startup anymore, but it doesn't show the theme either. I still ahve the default theme now. (HBL works though)
Edit: Rebuilt with a manually 4-byte aligned decompressed (by LZ11) theme.
Installed the theme with themehax Installer v1.3 with a bgm file.
Theme and BGM work and HBL is still runable via themehax.
Edit 2: Seems to crash a lot now. After either loading 3 different titles (having them selected once) or selecting a second title and trying to run it.
Seems to be caused by running out of RAM. This will probably run more stable on n3DS.
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Seems to crash a lot now. After either loading 3 different titles (having them selected once) or selecting a second title and trying to run it."
With the public git there's various Home Menu state that's left corrupted, so odd issues shouldn't be completely unexpected(unlike with my local changes regarding Home Menu state).
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@FayneAldan Do you see anything displayed before the fatal-error?
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yellows8 All I see if the pixel mess that normally appears when an exploit is launched, but then it goes straight to the fatal error. No debug screen, even.
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@FayneAldan What's the entire build commands you're using?(Sounds like my ROP is triggering that)
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same command used for the release archive, as shown in the README. If it helps any, I'm using FW 10.1.0-27U on a New 3DS XL.
EDIT: So, as such, I only have it compiling menuhax_USA21504_new3ds.lz
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you using the latest themehax_installer built from git too?
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah. I even tried using this commit (the one we're commenting on), but it didn't work either.
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My ROP only triggers fatal-error when loading data from SD fails(like when the file doesn't exist). So you must not have run the latest installer properly.
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yellows8 I expected it to not run perfectly stable. There may not be much reason to actually bother about this much more due to your local changes. They seem to make it better anyway.
Just thought I'd report that.
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Installer works perfectly fine with the payloads in the release archive..
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You must use git builds for both the installer and theme-payloads. They are incompatible with v1.2.
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, okay. Thanks. Also, you should make some icons for your Homebrew apps, even if it's just text on an image. I wanna be able to easily spot a certain Homebrew app, since I'm using a custom HB launcher that shows the icons in a grid.
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, just wanna point out this other problem: https://gbatemp.net/threads/release-homebrew-launcher-with-grid-layout.397527/page-57#post-5731660
I'm not sure if it's fixed, but yeah.
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If anyone makes a dedicated themehax_installer icon.png it won't be me.
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could probably make the icon. I have an idea, but I need an icon that has a "hack" kinda feel, if you know what I mean. I'll use that icon along with the theme shop icon. ;)
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Also, just wanna point out this other problem" <- #6
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's my idea for an icon, but others could definitely do better.
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That looks more like a "Home Menu {settings/config}" icon than haxx installer.
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A wrench is the best thing I could think of for "haxx"
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anyway, did you get it setup correctly with the latest git builds for the installer and themehax?(But tbh most of this would have been better in an actual github issue...)
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yeah. I was gonna do that, wasn't I? -Is watching 40 minute long YouTube video. Only 15 minutes in...-
Uuuuugh..... -pauses video-
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still get a fatal error with the new installer.
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it helps any, I can try to compile my thing for your FW version, in case it's just me or something.
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What all "/ropbinpayload_" file(s) exist on your SD card?
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ugh... 18 minutes into my video... -presses home button-
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only ropbinpayload_menuhax_USA21504_new3ds.bin
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the sha256 hash of your built themehax .lz?
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DANG IT. -presses home again-
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't seem to have sha256 on here, but...
I have just about everything else. XD
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, the .lz which the installer used for installation.
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't match, are you really on the latest git commit?
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"are you really on the latest git commit?"
"I even tried using this commit (the one we're commenting on), but it didn't work either."
Oops... GG. 😆
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still crashes, even with latest commit.
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EDIT:
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yellows8 The crashing may be associated with the "custom sound" some themes make when selecting specific things. I am not entirely certain about that yet. Need to look into that further.
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still end up with a different checksum...
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ZodeHax It crashes even when I don't compile it with a theme.
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually just noticed that I messed up changing the payload code back to latest commit. I reupdated the code, but it still doesn't work.
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@FayneAldan I mean the crashing problem I had/have.
I don't know about your problem though.
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh. I'll try redownloading the source and compiling without deleting any of the robbins or any of that.
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You know what? My ropbin has a different checksum then the one on the repo. XD
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, I somehow ended up with old code mixed with new code. I redownloaded the source and I'm about to test it.
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope. Still doesn't work... 😕
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I get these crashes sometimes I was talking about. The weird thing is, if I start YouTube and press the home button to return to my home menu I can acess select everything without getting any crashes. Can just close the YouTube app and run whatever. Does the theme load differently or something?
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about no more comments/whatever regarding this THEMEDATA_PATH option before next release.
288d30b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ZodeHax Same thing as #16 really, which is now closed.