-
Notifications
You must be signed in to change notification settings - Fork 522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[GameInteractor] Game Hooks #2481
Conversation
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.
one little question about why "OnSaveFile" is being called on save load, otherwise looking great!
soh/soh/SaveManager.cpp
Outdated
@@ -754,6 +756,7 @@ void SaveManager::LoadFile(int fileNum) { | |||
break; | |||
} | |||
InitMeta(fileNum); | |||
GameInteractor::Instance->ExecuteHooks<GameInteractor::OnSaveFile>(fileNum); |
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.
why call "OnSaveFile" when we're loading a file?
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.
Typo :( fixed!
Add game hooks for:
As an example migrates autosave functionality to the new hooks API
Build Artifacts