diff --git a/StandaloneFileBrowser/Plugins/StandaloneFileBrowser.jslib b/StandaloneFileBrowser/Plugins/StandaloneFileBrowser.jslib index 1198f38..48c8739 100644 --- a/StandaloneFileBrowser/Plugins/StandaloneFileBrowser.jslib +++ b/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); diff --git a/StandaloneFileBrowser/package.json b/StandaloneFileBrowser/package.json index 249895c..9b3c951 100644 --- a/StandaloneFileBrowser/package.json +++ b/StandaloneFileBrowser/package.json @@ -3,7 +3,7 @@ "description": "Native open and save UIs for Windows, MacOS, Linux, WebGL", "name": "com.virtualmaker.filebrowser", "unity": "2019.4", - "version": "1.0.2", + "version": "1.0.3", "category": "utilities", "dependencies": {} -} \ No newline at end of file +}