From 4c03876470400a6ea6aa14c0b5ff21f2826266d3 Mon Sep 17 00:00:00 2001 From: Mike Evans <19207822+JigSawPsycho@users.noreply.github.com> Date: Mon, 10 Mar 2025 17:52:33 +1300 Subject: [PATCH] Update StandaloneFileBrowser.jslib --- .../Plugins/StandaloneFileBrowser.jslib | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Assets/StandaloneFileBrowser/Plugins/StandaloneFileBrowser.jslib b/Assets/StandaloneFileBrowser/Plugins/StandaloneFileBrowser.jslib index 1198f38..48c8739 100644 --- a/Assets/StandaloneFileBrowser/Plugins/StandaloneFileBrowser.jslib +++ b/Assets/StandaloneFileBrowser/Plugins/StandaloneFileBrowser.jslib @@ -9,9 +9,9 @@ var StandaloneFileBrowserWebGLPlugin = { // Custom: ".plist, .xml, .yaml" // multiselect: Allows multiple file selection UploadFile: function(gameObjectNamePtr, methodNamePtr, filterPtr, multiselect) { - gameObjectName = Pointer_stringify(gameObjectNamePtr); - methodName = Pointer_stringify(methodNamePtr); - filter = Pointer_stringify(filterPtr); + gameObjectName = UTF8ToString(gameObjectNamePtr); + methodName = UTF8ToString(methodNamePtr); + filter = UTF8ToString(filterPtr); // Delete if element exist var fileInput = document.getElementById(gameObjectName) @@ -62,9 +62,9 @@ var StandaloneFileBrowserWebGLPlugin = { // byteArray: byte[] // byteArraySize: byte[].Length DownloadFile: function(gameObjectNamePtr, methodNamePtr, filenamePtr, byteArray, byteArraySize) { - gameObjectName = Pointer_stringify(gameObjectNamePtr); - methodName = Pointer_stringify(methodNamePtr); - filename = Pointer_stringify(filenamePtr); + gameObjectName = UTF8ToString(gameObjectNamePtr); + methodName = UTF8ToString(methodNamePtr); + filename = UTF8ToString(filenamePtr); var bytes = new Uint8Array(byteArraySize); for (var i = 0; i < byteArraySize; i++) { @@ -87,4 +87,4 @@ var StandaloneFileBrowserWebGLPlugin = { } }; -mergeInto(LibraryManager.library, StandaloneFileBrowserWebGLPlugin); \ No newline at end of file +mergeInto(LibraryManager.library, StandaloneFileBrowserWebGLPlugin);