private static bool EmulateMobileDevice() { ConfigFile config = new ConfigFile(); if (!config.FullLoad(Vars.GetClientConfigPath())) { Blizzard.Log.Warning("Failed to read DeviceEmulation from client.config"); return(false); } DevicePreset preset = new DevicePreset(); preset.ReadFromConfig(config); if (preset.name == "No Emulation") { return(false); } if (!config.Get("Emulation.emulateOnDevice", false)) { return(false); } s_os = preset.os; s_input = preset.input; s_screen = preset.screen; s_screenDensity = preset.screenDensity; Log.DeviceEmulation.Print("Emulating an " + preset.name, new object[0]); return(true); }
private VarsInternal() { string clientConfigPath = Vars.GetClientConfigPath(); if (!this.LoadConfig(clientConfigPath)) { } }
private VarsInternal() { this.LoadConfig(Vars.GetClientConfigPath()); }