Skip to content

all: Fix most mismatches#275

Open
GRAnimated wants to merge 4 commits into
open-ead:masterfrom
GRAnimated:sol-mismatches
Open

all: Fix most mismatches#275
GRAnimated wants to merge 4 commits into
open-ead:masterfrom
GRAnimated:sol-mismatches

Conversation

@GRAnimated

@GRAnimated GRAnimated commented Jul 15, 2026

Copy link
Copy Markdown

Fixes 15 mismatches in BOTW, 80 mismatches in SMO, and improves the score on the rest of the mismatches.

All found by GPT 5.6 Sol in about 12 hours


This change is Reviewable

@MonsterDruide1 MonsterDruide1 marked this pull request as draft July 15, 2026 22:43
@MonsterDruide1

Copy link
Copy Markdown
Contributor

Am I understanding correctly, that I should not review things here yet, but wait for you to perform a few more checks with it?

@GRAnimated

Copy link
Copy Markdown
Author

I was hoping that BOTW would get further than a compilation error, so that files without a BOTW regression could be reviewed. I'll setup botw and work on it locally. (also I forgot to set it as a draft, thanks)

@GRAnimated GRAnimated marked this pull request as ready for review July 16, 2026 03:46
@GRAnimated

Copy link
Copy Markdown
Author

Now ready for review

@Pistonight

Copy link
Copy Markdown
Contributor

I wonder how much did it cost to run the model for 12 hours for this?

@GRAnimated

Copy link
Copy Markdown
Author

Just a $20/month Codex subscription. I'd loosely estimate usage to be around ~25 million input and maybe 5 million output tokens. If I were going through Codex pricing and I had 90% cache hits, that would be ~$175 in API costs. I was using a small workaround, but if you were using the plan as intended then you'd be able to do this all within the weekly limit.

@MonsterDruide1 MonsterDruide1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@MonsterDruide1 reviewed 14 files and all commit messages, and made 6 comments.
Reviewable status: 14 of 32 files reviewed, 6 unresolved discussions (waiting on GRAnimated).


include/framework/seadMethodTree.h line 34 at r4 (raw file):

    using PauseEventDelegate = IDelegate2<MethodTreeNode*, PauseFlag>;

    explicit MethodTreeNode(CriticalSection* cs) : TTreeNode(this), INamable("")

Suggestion:

explicit MethodTreeNode(CriticalSection* cs) : TTreeNode(this)

include/framework/seadMethodTree.h line 81 at r4 (raw file):

    mutable CriticalSection* mCriticalSection;
    [[maybe_unused]] u32 mPriority;
    u32 mPauseFlag;

Suggestion:

BitFlag32 mPauseFlag;

modules/src/filedevice/seadFileDeviceMgr.cpp line 361 at r4 (raw file):

void FileDeviceMgr::unmountSaveDataForDebug() {}
#endif
#endif

Suggestion:

#ifdef NNSDK
void FileDeviceMgr::mountSaveDataForDebug(Heap*)
{
#ifdef SEAD_DEBUG
    const auto result = nn::fs::MountSaveDataForDebug("save");
    SEAD_ASSERT_MSG(
        result.IsSuccess(),
        "nn::fs::MountSaveDataForDebug() failed. module = %d desc = %d innervalue = 0x%08x",
        result.GetModule(), result.GetDescription(), result.GetInnerValueForDebug());
#endif
}

void FileDeviceMgr::unmountSaveDataForDebug()
{
#ifdef SEAD_DEBUG
    nn::fs::Unmount("save");
#endif
}
#endif

modules/src/filedevice/seadPath.cpp line 60 at r4 (raw file):

    u32 dot_index = rfindCharIndex(path, '.');
    if (dot_index == 0xFFFFFFFF)

Suggestion:

    u32 dot_index = rfindCharIndex(path, '.');
    if (dot_index == -1)

modules/src/filedevice/nin/seadNinFileDeviceBaseNin.cpp at r4 (raw file):
Deleting these warnings seems wrong, are you sure they aren't gated by #ifdef SEAD_DEBUG?


modules/src/framework/seadMethodTree.cpp line 91 at r4 (raw file):

    auto* node = child();
    if (node && !(mPauseFlag & cPause_Child))

Suggestion:

    if (mPauseFlag.isOff(cPause_Self))
        (*mDelegateHolder.data())();

    auto* node = child();
    if (node && mPauseFlag.isOff(cPause_Child))

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.

3 participants