I’d like to register a locator for AppSettings assets (icon, splash screen). But since the application isn’t yet started, invoking registerLocator causes a NullPointerExc to be thrown.
Is there a workaround for this or am I forced to put these on the default assets folder?
Those two are the exception, I guess. Although I imagine it is possible to initialize the AssetManager
first and then use it to load those resources. The AssetManager
does not require a jME3 context to run.
Something like:
assetCfgUrl = LegacyApplication.class.getClassLoader().getResource(assetCfg);
assetManager = JmeSystem.newAssetManager(assetCfgUrl);
EDIT: Nope. Oh well… probably not worth the time of investigating.