mirror of
https://github.com/XProger/OpenLara.git
synced 2025-02-21 14:02:49 +01:00
fix web platform
This commit is contained in:
parent
b25b5f1295
commit
7330b63c3e
@ -134,7 +134,7 @@
|
||||
<input type="button" value="Browse Level" onclick="document.getElementById('browseFile').click();" /> (.PHD, .PSX, .TR2)
|
||||
<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>
|
||||
<br><i>last update: 9.05.2018</i><br>
|
||||
<br><i>last update: 13.10.2018</i><br>
|
||||
</p>
|
||||
</span>
|
||||
|
||||
|
@ -57,7 +57,7 @@ void onCacheStore(void *arg) {
|
||||
Stream *stream = (Stream*)arg;
|
||||
LOG("cache stored: %s\n", stream->name);
|
||||
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;
|
||||
}
|
||||
|
||||
@ -86,12 +86,12 @@ void osCacheRead(Stream *stream) {
|
||||
}
|
||||
|
||||
// memory card
|
||||
void osSaveGame(Stream *stream) {
|
||||
return osCacheWrite(stream);
|
||||
void osReadSlot(Stream *stream) {
|
||||
return osCacheRead(stream);
|
||||
}
|
||||
|
||||
void osLoadGame(Stream *stream) {
|
||||
return osCacheRead(stream);
|
||||
void osWriteSlot(Stream *stream) {
|
||||
return osCacheWrite(stream);
|
||||
}
|
||||
|
||||
JoyKey joyToInputKey(int code) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user