@@ -9,9 +9,9 @@ var StandaloneFileBrowserWebGLPlugin = {
9
9
// Custom: ".plist, .xml, .yaml"
10
10
// multiselect: Allows multiple file selection
11
11
UploadFile : function ( gameObjectNamePtr , methodNamePtr , filterPtr , multiselect ) {
12
- gameObjectName = Pointer_stringify ( gameObjectNamePtr ) ;
13
- methodName = Pointer_stringify ( methodNamePtr ) ;
14
- filter = Pointer_stringify ( filterPtr ) ;
12
+ gameObjectName = UTF8ToString ( gameObjectNamePtr ) ;
13
+ methodName = UTF8ToString ( methodNamePtr ) ;
14
+ filter = UTF8ToString ( filterPtr ) ;
15
15
16
16
// Delete if element exist
17
17
var fileInput = document . getElementById ( gameObjectName )
@@ -62,9 +62,9 @@ var StandaloneFileBrowserWebGLPlugin = {
62
62
// byteArray: byte[]
63
63
// byteArraySize: byte[].Length
64
64
DownloadFile : function ( gameObjectNamePtr , methodNamePtr , filenamePtr , byteArray , byteArraySize ) {
65
- gameObjectName = Pointer_stringify ( gameObjectNamePtr ) ;
66
- methodName = Pointer_stringify ( methodNamePtr ) ;
67
- filename = Pointer_stringify ( filenamePtr ) ;
65
+ gameObjectName = UTF8ToString ( gameObjectNamePtr ) ;
66
+ methodName = UTF8ToString ( methodNamePtr ) ;
67
+ filename = UTF8ToString ( filenamePtr ) ;
68
68
69
69
var bytes = new Uint8Array ( byteArraySize ) ;
70
70
for ( var i = 0 ; i < byteArraySize ; i ++ ) {
@@ -87,4 +87,4 @@ var StandaloneFileBrowserWebGLPlugin = {
87
87
}
88
88
} ;
89
89
90
- mergeInto ( LibraryManager . library , StandaloneFileBrowserWebGLPlugin ) ;
90
+ mergeInto ( LibraryManager . library , StandaloneFileBrowserWebGLPlugin ) ;
0 commit comments