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 static bool EmulateMobileDevice()
 {
     ConfigFile config = new ConfigFile();
     if (!config.FullLoad(Vars.GetClientConfigPath()))
     {
     Debug.LogWarning("Failed to read DeviceEmulation from client.config");
     return false;
     }
     DevicePreset devicePreset = new DevicePreset();
     devicePreset.ReadFromConfig(config);
     if (devicePreset.name == "No Emulation" || !config.Get("Emulation.emulateOnDevice", false))
       return false;
     PlatformSettings.s_os = devicePreset.os;
     PlatformSettings.s_input = devicePreset.input;
     PlatformSettings.s_screen = devicePreset.screen;
     PlatformSettings.s_screenDensity = devicePreset.screenDensity;
     Log.DeviceEmulation.Print("Emulating an " + devicePreset.name);
     return true;
 }