MCPcopy Create free account
hub / github.com/Card-Forge/forge / loadAdventureResources

Method loadAdventureResources

forge-gui-mobile/src/forge/Forge.java:380–393  ·  view source on GitHub ↗
(boolean startScene)

Source from the content-addressed store, hash-verified

378 loadAdventureResources(true);
379 }
380 private static void loadAdventureResources(boolean startScene) {
381 try {
382 Config.instance().loadResources();
383 SpellSmithScene.instance().loadEditions();
384 SoundSystem.instance.stopBackgroundMusic();
385 MusicPlaylist.invalidateMusicPlaylist();
386 if (startScene) {
387 SoundSystem.instance.setBackgroundMusic(MusicPlaylist.MENUS);
388 switchScene(StartScene.instance());
389 }
390 } catch (Exception e) {
391 e.printStackTrace();
392 }
393 }
394 protected void afterDbLoaded() {
395 if (GuiBase.isAndroid() && autoCache)
396 getSplashScreen().getProgressBar().setDescription(getLocalizer().getMessage("lblFinishingStartup") + "\nDetected RAM: " + totalDeviceRAM + "MB. Cache size: " + cacheSize);

Callers 2

openAdventureMethod · 0.95
afterDbLoadedMethod · 0.95

Calls 9

instanceMethod · 0.95
instanceMethod · 0.95
switchSceneMethod · 0.95
instanceMethod · 0.95
loadResourcesMethod · 0.80
loadEditionsMethod · 0.80
stopBackgroundMusicMethod · 0.80
setBackgroundMusicMethod · 0.80

Tested by

no test coverage detected