internal AssetManager(Game game, IServiceProvider serviceProvider, string defaultSearchPath) { if (serviceProvider is null) { throw new ArgumentNullException(nameof(serviceProvider)); } Game = game; ServiceProvider = serviceProvider; try { using (FileStream fs = File.OpenRead(Path.Combine(GameDirectory, "DataSearchPaths.yaml"))) { searchPaths = YAML.Deserialize <AssetSearchPaths>(fs); if (searchPaths is null) { throw new Exception("XML deserialisation failed"); } } } catch (Exception ex) { FNALoggerEXT.LogWarn($"Asset Manager: failed to load DataSearchPaths.xml. Reason: {ex.Message}"); searchPaths = new AssetSearchPaths(); } }
protected internal override void SetSupportedOrientations(DisplayOrientation orientations) { /* XNA on Windows Phone had the ability to change * the list of supported device orientations at runtime. * Unfortunately, we can't support that reliably across * multiple mobile platforms. Therefore this method is * essentially a no-op. * * Instead, you should set your supported orientations * in Info.plist (iOS) or AndroidManifest.xml (Android). * * -caleb */ FNALoggerEXT.LogWarn("Setting SupportedOrientations has no effect!"); }