Replace PHP file finder #833

Merged
merged 5 commits into from Mar 20, 2016

Projects

None yet

2 participants

@Ghabry
Member
Ghabry commented Mar 19, 2016

Because everybody uses CDNs now ...

This downloads an index.json from the game directory and parses it via picojson.
Then the parsed result is used to generate requests :)

This changes the location of the cache
Because I want to share the request code the index file is now in the game directory and called "index.json"

Ghabry added some commits Mar 19, 2016
@Ghabry Ghabry Replace PHP file finder with a JSON index file fetch and requests bas…
…ed on that index file
1c9131c
@Ghabry Ghabry Web: Handle default directory. Start the index.json request... 8dfd207
@Ghabry Ghabry picojson: Disable locale and exceptions 5d4b8c3
@Ghabry Ghabry Make base class destructors virtual. Work around a strange emscripten…
… compiler bug.
7f7155c
@Ghabry Ghabry Remove filefinder.php and rename to indexgen.php which generates an i…
…ndex.json of the current directory.
2c4375b
@Ghabry
Member
Ghabry commented Mar 19, 2016

This is open for review :)

exe for windows: https://www.sendspace.com/file/7n7aol

@fdelapena
Member

Amazing, it works like a charm and the latency saving due to the php call removal is clearly perceivable. 👍.

@fdelapena fdelapena added this to the 0.5.0 milestone Mar 20, 2016
@fdelapena fdelapena merged commit 02bb845 into EasyRPG:master Mar 20, 2016

5 checks passed

Android Build finished.
Details
Linux Build finished.
Details
OSX Build finished.
Details
Windows Build finished.
Details
web Build finished.
Details
@Ghabry Ghabry modified the milestone: 0.5.0, 0.4.2 Apr 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment