summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2019-05-22 16:12:47 +0200
committerRay <[email protected]>2019-05-22 16:12:47 +0200
commitf45691ca8ddf165b4527097762b38e038c350509 (patch)
treeddba44e97306e4eddc1c1bd5c35d9e1b1578754e /src
parent7421ac9e24095a4104285691a7b4fa620629277d (diff)
downloadraylib-f45691ca8ddf165b4527097762b38e038c350509.tar.gz
raylib-f45691ca8ddf165b4527097762b38e038c350509.zip
Rename function to follow javascript notation
Diffstat (limited to 'src')
-rw-r--r--src/core.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core.c b/src/core.c
index 8dd1090b..26a8b2a4 100644
--- a/src/core.c
+++ b/src/core.c
@@ -1640,8 +1640,8 @@ void TakeScreenshot(const char *fileName)
#if defined(PLATFORM_WEB)
// Download file from MEMFS (emscripten memory filesystem)
- // SaveFileFromMEMFSToDisk() function is defined in raylib/src/shell.html
- emscripten_run_script(TextFormat("SaveFileFromMEMFSToDisk('%s','%s')", GetFileName(path), GetFileName(path)));
+ // saveFileFromMEMFSToDisk() function is defined in raylib/src/shell.html
+ emscripten_run_script(TextFormat("saveFileFromMEMFSToDisk('%s','%s')", GetFileName(path), GetFileName(path)));
#endif
TraceLog(LOG_INFO, "Screenshot taken: %s", path);
@@ -3610,8 +3610,8 @@ static void KeyCallback(GLFWwindow *window, int key, int scancode, int action, i
#if defined(PLATFORM_WEB)
// Download file from MEMFS (emscripten memory filesystem)
- // SaveFileFromMEMFSToDisk() function is defined in raylib/templates/web_shel/shell.html
- emscripten_run_script(TextFormat("SaveFileFromMEMFSToDisk('%s','%s')", TextFormat("screenrec%03i.gif", screenshotCounter - 1), TextFormat("screenrec%03i.gif", screenshotCounter - 1)));
+ // saveFileFromMEMFSToDisk() function is defined in raylib/templates/web_shel/shell.html
+ emscripten_run_script(TextFormat("saveFileFromMEMFSToDisk('%s','%s')", TextFormat("screenrec%03i.gif", screenshotCounter - 1), TextFormat("screenrec%03i.gif", screenshotCounter - 1)));
#endif
TraceLog(LOG_INFO, "End animated GIF recording");