| | |
| | | }; |
| | | } |
| | | }, |
| | | humble_init__deps: ['$CLOUDFS'], |
| | | humble_init__deps: ['$CLOUDFS','$HUMBLE_API'], |
| | | humble_init: function() { |
| | | // Dummy function to pull in the rest of the functions |
| | | }, |
| | | humble_sync__deps: ['$FS', '$CLOUDFS'], |
| | | humble_sync__deps: ['$FS', '$CLOUDFS','$HUMBLE_API'], |
| | | humble_sync: function() { |
| | | FS.syncfs(function (err) { |
| | | console.log('File Sync'); |
| | | }); |
| | | }, |
| | | humble_fetch_asset_data__deps: ['$BROWSER', '$HUMBLE_API'], |
| | | humble_fetch_asset_data__deps: ['$BROWSER','$HUMBLE_API'], |
| | | humble_fetch_asset_data: function(assetPath, arg, onload, onerror) { |
| | | var path = Pointer_stringify(assetPath); |
| | | var cacheKey = HUMBLE_API.buildCacheKey(path); |
| | |
| | | }, true /* NO run dependency */); |
| | | }); |
| | | }, |
| | | humble_get_player_size__deps: ['$HUMBLE_API'], |
| | | humble_get_player_size: function(w, h) { |
| | | var ret = {width: 0, height: 0, locked: false}; |
| | | if (HUMBLE_API.options.playerSize) { |
| | |
| | | if (h) {{{ makeSetValue('h', '0', 'ret.height', 'i32') }}}; |
| | | return ret.locked ? 1 : 0; |
| | | }, |
| | | humble_demo_ended: ['$HUMBLE_API'], |
| | | humble_demo_ended: function() { |
| | | if (HUMBLE_API.options.demoEndedCallback) { |
| | | return HUMBLE_API.options.demoEndedCallback.call(HUMBLE_API); |
| | |
| | | } |
| | | }; |
| | | |
| | | autoAddDeps(LibraryHUMBLE, '$HUMBLE_API'); |
| | | mergeInto(LibraryManager.library, LibraryHUMBLE); |