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.
Hello I spended about a week on trying to implement everything that is needed to the wasm target. I exported a lot of function and everything that can be exported and I know how to do, I have already done it. The Changes to your CmakeLists.txt where taken almost copy and paste from your private repo that had an implementation working, you probably whould take a look at that. issue reference
It seams that at somepoint I had the liberto.c file open and my auto formatting tool took a shot at it, I didn't touch in any other way and it doen't have any real changes.
Now If you know how you could implement exporting the save state and loading it beacause I didn't understand how. I also didn't care to implement a way to load and unload cheats.
My code is very straight forware as I wanted to finishing this fast because I won't have much time to go through and fix many things. 4 files is all of the implementation, plus the CmakeLists.txt changes.
I hope this will provide you with all you need to properly implement this feature. As a matter of fact I used this branch to implement a gui on my own. It lives here and you can try it. It is written is Svelte which I know maybe not be what you want but it proves that my port works.