Emscripten Async #462
Merged
Emscripten Async #462
Conversation
…remaining calls except ShopParty and Music/Sound
…error handling. Add license.
b998841
to
8a7e8bd
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This asynchifies the whole file loading code.
Start via
https://easy-rpg.org/play/index-pr.html?game=testgame-2000
In short this introduces a new class AsyncManager where file requests can be registred to. And when a file finishes downloading an EventHandler invokes that does the file access (e.g. assigning Bitmap or playing music).
On Desktop the event fires immediately so there is no change in code path compared to the old code.
At the moment I have debug code enabled that fakes async loading on Desktop, must be removed before merging.
This also adds a php script easyrpg-filefinder.php that handles the case insensitive file finding on server side.
Based on position of player.html place the games in "games/[gamename]", filefinder in "games". Needs a writable cache-dir at "games/cache" (For filelist)
TODO: