diff --git a/src/platform/web/index.html b/src/platform/web/index.html
index 943aca7..0c2c2fb 100644
--- a/src/platform/web/index.html
+++ b/src/platform/web/index.html
@@ -134,7 +134,7 @@
(.PHD, .PSX, .TR2)
OpenLara on github & facebook
-
last update: 9.05.2018
+
last update: 13.10.2018
diff --git a/src/platform/web/main.cpp b/src/platform/web/main.cpp
index db9347a..c4570f1 100644
--- a/src/platform/web/main.cpp
+++ b/src/platform/web/main.cpp
@@ -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) {