Skip to content

Conversation

@Malkierian
Copy link
Contributor

@Malkierian Malkierian commented Oct 27, 2025

This sets up the initialization process to allow for producing an ImGui window before ROM archives are made, so that ImGui can be used to prompt users along the O2R creation process instead of using the OS prompts, which aren't always usable even on some Linux devices, let alone other 2nd-party port platforms, as well as graphically report extraction progress.

devenv_M8mo7jT32R.mp4

Requires HarbourMasters/ZAPDTR#33 and Kenix3/libultraship#949

TODO:

  • Convert the O2R update process to this new flow.
  • Figure out why the titlebar close button isn't closing SoH while in this flow.

Build Artifacts

@Malkierian Malkierian marked this pull request as ready for review December 3, 2025 19:36
@Malkierian
Copy link
Contributor Author

This is now undrafted, but I'm adding do not merge tag because there's one thing that still needs to be resolved with the port archive detection in ResourceManager initialization before it can be merged. Otherwise, this is fully functional.

@Malkierian Malkierian added the do not merge Not ready or not valid changes label Dec 3, 2025
…n and just revert back to PS_FIRST popup.

Re-add ROM search in new flow.
Move port archive checking to ImGui with default fonts.
Malkierian and others added 2 commits December 4, 2025 20:57
Add extra information to extraction modal.
Add PS_FILE_CHECK step.
@Malkierian Malkierian removed the do not merge Not ready or not valid changes label Dec 7, 2025
@Malkierian Malkierian added the do not merge Not ready or not valid changes label Jan 10, 2026
Further tweak initialization order, and prevent menu from drawing if menu elements aren't initialized.
@Malkierian Malkierian removed the do not merge Not ready or not valid changes label Jan 11, 2026
@serprex serprex self-requested a review January 11, 2026 23:37
@serprex serprex requested a review from garrettjoecox January 11, 2026 23:46
@serprex
Copy link
Contributor

serprex commented Jan 11, 2026

On Linux it's hanging on extract of soh.o2r, gdb tends to stop in SohModalWindow::PopupsQueued

@Malkierian
Copy link
Contributor Author

There is no extraction of soh.o2r. It's supposed to exit.

@serprex
Copy link
Contributor

serprex commented Jan 12, 2026

Reading archive: .../soh.o2r
Adding Archive .../soh.o2r to Archive Manager

& then it sits. No window appears

@Malkierian
Copy link
Contributor Author

I may need you to debug this on Linux. It's virtually impossible to tell where exactly it's hanging just with that log.

@serprex
Copy link
Contributor

serprex commented Jan 12, 2026

After fixing extractStep, when I click Yes on No O2R Files prompt nothing happens (No closes window tho). Looking into..

@Malkierian
Copy link
Contributor Author

After fixing extractStep, when I click Yes on No O2R Files prompt nothing happens (No closes window tho). Looking into..

Does this occur with ROMs in the folder, without them there, or both?

@Malkierian
Copy link
Contributor Author

Nevermind, I think I found it.

@Malkierian
Copy link
Contributor Author

Oh, right, since this also holds a LUS bump, I think #6121 is unnecessary (since that's only a LUS bump).

@serprex
Copy link
Contributor

serprex commented Jan 12, 2026

Nevermind, I think I found it.

confirmed file dialog opens, stuck in Starting Up after

@Malkierian
Copy link
Contributor Author

Nevermind, I think I found it.

confirmed file dialog opens, stuck in Starting Up after

Are you sure? It takes like 15 seconds to start the progress bar even on release. Probably takes longer in debug.

@serprex
Copy link
Contributor

serprex commented Jan 12, 2026

had left it for about half an hour, & I'm on a pretty beefy machine

@Malkierian
Copy link
Contributor Author

Malkierian commented Jan 12, 2026

Well, I don't know what's going on with that, then, as I just tested it locally and it was fine. Probably something in the thread dispatching or the setup for ZAPD.

@serprex
Copy link
Contributor

serprex commented Jan 12, 2026

ZAPD is throwing Error: Unable to read config file. & code doesn't pick up on task failing atm

caused because assets directory in my build dir exists but is empty (I created it earlier)

@Malkierian
Copy link
Contributor Author

Well then fill it, lol. That's supposed to be setup with the setup command, isn't it?

@serprex
Copy link
Contributor

serprex commented Jan 12, 2026

I created it when I got error message Missing 'assets/' folder needed to generate OTR file

@Malkierian
Copy link
Contributor Author

My point is that the assets folder is supposed to be created and filled in setup or build or something. That has nothing to do with the functionality of the code at this point.

@serprex
Copy link
Contributor

serprex commented Jan 12, 2026

extraction working now, needed to run soh.elf from build/soh instead of running soh/soh.elf from build directory

@serprex
Copy link
Contributor

serprex commented Jan 12, 2026

My point is that the assets folder is supposed to be created and filled in setup or build or something. That has nothing to do with the functionality of the code at this point.

Sure, but better error messages or having error handling show error messages when human involved is being stupid would be good

Copy link
Contributor

@serprex serprex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works for me, could use exception handling

Extract filename from file path for display in extraction progress.
Fix searchPath not being set in PS_LOCAL.
Improve newlining for text to better fit default window.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants