|
5 | 5 | */
|
6 | 6 |
|
7 | 7 | mergeInto(LibraryManager.library, {
|
8 |
| - $wasmFS$preloadedFiles: [], |
9 |
| - $wasmFS$preloadedDirs: [], |
| 8 | + $wasmFSPreloadedFiles: [], |
| 9 | + $wasmFSPreloadedDirs: [], |
10 | 10 | #if USE_CLOSURE_COMPILER
|
11 | 11 | // Declare variable for Closure, FS.createPreloadedFile() below calls Browser.handledByPreloadPlugin()
|
12 | 12 | $FS__postset: '/**@suppress {duplicate, undefinedVars}*/var Browser;',
|
13 | 13 | #endif
|
14 | 14 | $FS__deps: [
|
15 |
| - '$wasmFS$preloadedFiles', |
16 |
| - '$wasmFS$preloadedDirs', |
| 15 | + '$wasmFSPreloadedFiles', |
| 16 | + '$wasmFSPreloadedDirs', |
17 | 17 | '$asyncLoad',
|
18 | 18 | ],
|
19 | 19 | $FS : {
|
@@ -60,11 +60,11 @@ mergeInto(LibraryManager.library, {
|
60 | 60 | // Data files must be cached until the file system itself has been initialized.
|
61 | 61 | var mode = FS.getMode(canRead, canWrite);
|
62 | 62 | var pathName = name ? parent + '/' + name : parent;
|
63 |
| - wasmFS$preloadedFiles.push({pathName: pathName, fileData: data, mode: mode}); |
| 63 | + wasmFSPreloadedFiles.push({pathName: pathName, fileData: data, mode: mode}); |
64 | 64 | },
|
65 | 65 | createPath: (parent, path, canRead, canWrite) => {
|
66 | 66 | // Cache file path directory names.
|
67 |
| - wasmFS$preloadedDirs.push({parentPath: parent, childName: path}); |
| 67 | + wasmFSPreloadedDirs.push({parentPath: parent, childName: path}); |
68 | 68 | },
|
69 | 69 | readFile: (path, opts) => {
|
70 | 70 | opts = opts || {};
|
@@ -136,37 +136,37 @@ mergeInto(LibraryManager.library, {
|
136 | 136 | },
|
137 | 137 | #endif
|
138 | 138 | },
|
139 |
| - _wasmfs_get_num_preloaded_files__deps: ['$wasmFS$preloadedFiles'], |
| 139 | + _wasmfs_get_num_preloaded_files__deps: ['$wasmFSPreloadedFiles'], |
140 | 140 | _wasmfs_get_num_preloaded_files: function() {
|
141 |
| - return wasmFS$preloadedFiles.length; |
| 141 | + return wasmFSPreloadedFiles.length; |
142 | 142 | },
|
143 |
| - _wasmfs_get_num_preloaded_dirs__deps: ['$wasmFS$preloadedDirs'], |
| 143 | + _wasmfs_get_num_preloaded_dirs__deps: ['$wasmFSPreloadedDirs'], |
144 | 144 | _wasmfs_get_num_preloaded_dirs: function() {
|
145 |
| - return wasmFS$preloadedDirs.length; |
| 145 | + return wasmFSPreloadedDirs.length; |
146 | 146 | },
|
147 | 147 | _wasmfs_get_preloaded_file_mode: function(index) {
|
148 |
| - return wasmFS$preloadedFiles[index].mode; |
| 148 | + return wasmFSPreloadedFiles[index].mode; |
149 | 149 | },
|
150 | 150 | _wasmfs_get_preloaded_parent_path: function(index, parentPathBuffer) {
|
151 |
| - var s = wasmFS$preloadedDirs[index].parentPath; |
| 151 | + var s = wasmFSPreloadedDirs[index].parentPath; |
152 | 152 | var len = lengthBytesUTF8(s) + 1;
|
153 | 153 | stringToUTF8(s, parentPathBuffer, len);
|
154 | 154 | },
|
155 | 155 | _wasmfs_get_preloaded_child_path: function(index, childNameBuffer) {
|
156 |
| - var s = wasmFS$preloadedDirs[index].childName; |
| 156 | + var s = wasmFSPreloadedDirs[index].childName; |
157 | 157 | var len = lengthBytesUTF8(s) + 1;
|
158 | 158 | stringToUTF8(s, childNameBuffer, len);
|
159 | 159 | },
|
160 | 160 | _wasmfs_get_preloaded_path_name: function(index, fileNameBuffer) {
|
161 |
| - var s = wasmFS$preloadedFiles[index].pathName; |
| 161 | + var s = wasmFSPreloadedFiles[index].pathName; |
162 | 162 | var len = lengthBytesUTF8(s) + 1;
|
163 | 163 | stringToUTF8(s, fileNameBuffer, len);
|
164 | 164 | },
|
165 | 165 | _wasmfs_get_preloaded_file_size: function(index) {
|
166 |
| - return wasmFS$preloadedFiles[index].fileData.length; |
| 166 | + return wasmFSPreloadedFiles[index].fileData.length; |
167 | 167 | },
|
168 | 168 | _wasmfs_copy_preloaded_file_data: function(index, buffer) {
|
169 |
| - HEAPU8.set(wasmFS$preloadedFiles[index].fileData, buffer); |
| 169 | + HEAPU8.set(wasmFSPreloadedFiles[index].fileData, buffer); |
170 | 170 | }
|
171 | 171 | });
|
172 | 172 |
|
|
0 commit comments