public DesktopAssetManager(boolean usePlatformConfig){ this(usePlatformConfig ? JmeSystem.getPlatformAssetConfigURL() : null); }
private void initAssetManager(){ URL assetCfgUrl = null; if (settings != null){ String assetCfg = settings.getString("AssetConfigURL"); if (assetCfg != null){ try { assetCfgUrl = new URL(assetCfg); } catch (MalformedURLException ex) { } if (assetCfgUrl == null) { assetCfgUrl = LegacyApplication.class.getClassLoader().getResource(assetCfg); if (assetCfgUrl == null) { logger.log(Level.SEVERE, "Unable to access AssetConfigURL in asset config:{0}", assetCfg); return; } } } } if (assetCfgUrl == null) { assetCfgUrl = JmeSystem.getPlatformAssetConfigURL(); } if (assetManager == null){ assetManager = JmeSystem.newAssetManager(assetCfgUrl); logger.config("Created asset manager from "+assetCfgUrl); } }
private void initAssetManager(){ URL assetCfgUrl = null; if (settings != null){ String assetCfg = settings.getString("AssetConfigURL"); if (assetCfg != null){ try { assetCfgUrl = new URL(assetCfg); } catch (MalformedURLException ex) { } if (assetCfgUrl == null) { assetCfgUrl = LegacyApplication.class.getClassLoader().getResource(assetCfg); if (assetCfgUrl == null) { logger.log(Level.SEVERE, "Unable to access AssetConfigURL in asset config:{0}", assetCfg); return; } } } } if (assetCfgUrl == null) { assetCfgUrl = JmeSystem.getPlatformAssetConfigURL(); } if (assetManager == null){ assetManager = JmeSystem.newAssetManager(assetCfgUrl); } }
public DesktopAssetManager(boolean usePlatformConfig){ this(usePlatformConfig ? JmeSystem.getPlatformAssetConfigURL() : null); }
private void initAssetManager(){ URL assetCfgUrl = null; if (settings != null){ String assetCfg = settings.getString("AssetConfigURL"); if (assetCfg != null){ try { assetCfgUrl = new URL(assetCfg); } catch (MalformedURLException ex) { } if (assetCfgUrl == null) { assetCfgUrl = LegacyApplication.class.getClassLoader().getResource(assetCfg); if (assetCfgUrl == null) { logger.log(Level.SEVERE, "Unable to access AssetConfigURL in asset config:{0}", assetCfg); return; } } } } if (assetCfgUrl == null) { assetCfgUrl = JmeSystem.getPlatformAssetConfigURL(); } if (assetManager == null){ assetManager = JmeSystem.newAssetManager(assetCfgUrl); } }