Skip to content

nn: replace main(int, char**) with nnMain() - #72

Merged
Pistonight merged 1 commit into
open-ead:masterfrom
MonsterDruide1:nnmain
Sep 9, 2026
Merged

nn: replace main(int, char**) with nnMain()#72
Pistonight merged 1 commit into
open-ead:masterfrom
MonsterDruide1:nnmain

Conversation

@MonsterDruide1

@MonsterDruide1 MonsterDruide1 commented Jul 20, 2026

Copy link
Copy Markdown

main(int, char**) never existed in the SDK, according to my research and knowledge.

nninitStartup() and nnMain() are provided by the main game binary and called by RTLD to prepare and launch the game. The newer variant is a single function called nn::init::Start(), but I have yet to work on a game that uses this. Anyways, main(...) seems wrong and should be removed.

EDIT: Odyssey does use nn::init::Start(), so it seems like the special branch for manually calling nninitStartup() and nnMain() from RTLD is even older than this game. Anyways, doesn't change anything about the intention of this PR.

https://github.com/shadowninja108/oss-rtld/blob/7d18fe6bbf0f3612aafefd71be2e9397d0a93549/source/main.cpp


This change is Reviewable

@MonsterDruide1 MonsterDruide1 self-assigned this Jul 20, 2026
@Pistonight
Pistonight merged commit 98d9cd7 into open-ead:master Sep 9, 2026
1 check passed
@MonsterDruide1
MonsterDruide1 deleted the nnmain branch September 9, 2026 09:21
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