-
Notifications
You must be signed in to change notification settings - Fork 33
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
Changes for better script online compatibility #369
Merged
Merged
Changes from 9 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
0c65be3
WIP rollback function hook
estebanfer 5a590a5
add local_data to StateMemory, to allow script data that gets affecte…
estebanfer 2543422
hook rollback function with patch_and_redirect and fix it
estebanfer 9a994e4
Merge branch 'main' into online-compat-stuff
estebanfer bbffae5
Merge branch 'main' into online-compat-stuff
estebanfer a91419c
Move local_state_datas to LocalStateData struct
estebanfer f2e4f8b
Merge branch 'main' into online-compat-stuff
estebanfer e70fa55
make more callbacks online compatible, fix deadlock
estebanfer 79c13f3
format
estebanfer 43386cb
docs, rename clone_heap -> copy_state, state local_data -> user_data
estebanfer 8df6529
change state location to read-only via getter
estebanfer 488d643
trigger PRE_COPY_STATE on Overlunky savestates
estebanfer c704236
move State::get_location to header file
estebanfer 3881f06
minor autodoc fix
estebanfer 7e9c411
remove PRE_COPY_STATE lua event for now
estebanfer f105e88
fix get_local_* return type in docs
estebanfer f93ee54
fix spawn_api and custom_allocator online
estebanfer 4b1a8b2
Merge branch 'main' into online-compat-stuff
estebanfer 98cb792
better deepcopy_object implementation
estebanfer 9f70235
change get_location to get_offset, remove get_state_offset
estebanfer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Isn't backend constructed ASAP in playlunky? then this will always be main state anyway
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.
not sure about when they are constructed, are they when you create a new script in OL?
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.
Was thinking more about PL
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 but this code is for both PL and OL, also handling what happens in OL makes sense to me