mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-15 09:34:18 +02:00
fix web platform
This commit is contained in:
@@ -134,7 +134,7 @@
|
|||||||
<input type="button" value="Browse Level" onclick="document.getElementById('browseFile').click();" /> (.PHD, .PSX, .TR2)
|
<input type="button" value="Browse Level" onclick="document.getElementById('browseFile').click();" /> (.PHD, .PSX, .TR2)
|
||||||
<p style="margin:8px">
|
<p style="margin:8px">
|
||||||
OpenLara on <a target="_blank" href="https://github.com/XProger/OpenLara">github</a> & <a target="_blank" href="https://www.facebook.com/OpenLaraTR">facebook</a><br>
|
OpenLara on <a target="_blank" href="https://github.com/XProger/OpenLara">github</a> & <a target="_blank" href="https://www.facebook.com/OpenLaraTR">facebook</a><br>
|
||||||
<br><i>last update: 9.05.2018</i><br>
|
<br><i>last update: 13.10.2018</i><br>
|
||||||
</p>
|
</p>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
@@ -57,7 +57,7 @@ void onCacheStore(void *arg) {
|
|||||||
Stream *stream = (Stream*)arg;
|
Stream *stream = (Stream*)arg;
|
||||||
LOG("cache stored: %s\n", stream->name);
|
LOG("cache stored: %s\n", stream->name);
|
||||||
if (stream->callback)
|
if (stream->callback)
|
||||||
stream->callback(new Stream(stream->name, NULL, 0), stream->userData);
|
stream->callback(new Stream(stream->name, stream->data, stream->size), stream->userData);
|
||||||
delete stream;
|
delete stream;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -86,12 +86,12 @@ void osCacheRead(Stream *stream) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// memory card
|
// memory card
|
||||||
void osSaveGame(Stream *stream) {
|
void osReadSlot(Stream *stream) {
|
||||||
return osCacheWrite(stream);
|
return osCacheRead(stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
void osLoadGame(Stream *stream) {
|
void osWriteSlot(Stream *stream) {
|
||||||
return osCacheRead(stream);
|
return osCacheWrite(stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
JoyKey joyToInputKey(int code) {
|
JoyKey joyToInputKey(int code) {
|
||||||
|
Reference in New Issue
Block a user