that.regenerate(callback);
};
+ console.log('fs init');
+
// Callback when the filesystem API has granted quota
var quotaCallback = function(grantedBytes) {
var persistent = LocalFileSystem.PERSISTENT;
// And then recreate it
var fs = this.fs;
+ console.log('regenerate');
+
createDir_(fs.root, ROOT_DIR.split('/'), function(res) {
// Create a directory for the root of the GAL
fs.root.getDirectory(ROOT_DIR, {create: true}, function(dirEntry) {
that.root = dirEntry;
+ console.log('root created');
callback();
}, onError);
});
}
console.log('cordova ready');
+ console.log(fsprefix);
+ console.log(manifest);
if (navigator.onLine && manifest) {
var readyToLoad = false;
var finishedLoading = false;
gal = new GameAssetLoader(JSON.parse(manifest), fsprefix);
-
+ console.log(gal);
gal.init(function() {
+ console.log('gal inited');
startAfterLoading = true;
init();
});
if (info.bundleName == 'extras') {
window.localStorage.setItem('offline.' + DATAS.id, '1');
}
- fluidbook.loader.retryErrorImages();
+ try {
+ if (fluidbook && fluidbook.loader) {
+ fluidbook.loader.retryErrorImages();
+ }
+ } catch (err) {
+
+ }
+
+
});
+ console.log('gal waiting...');
} else {
init();
}
return;
}
+ console.log('fluidbook inited');
+
INITED = true;
fluidbook = new Fluidbook(DATAS);