Pico程序设置安全边界(不想每次手动设置)

 

/// <summary>
/// 安全设置路径
/// </summary>
private string _configSavePath = "/storage/emulated/0/Android/data/com.pvr.seethrough.setting/files/config1.txt";

  
private void SetBoundary() { if (!File.Exists(_configSavePath)) { string str = "AutoDelete 0\r\n" + "ForceTOC 0\r\n" + "ForceNOUI 1\r\n" + "ForceReset6Dof 1\r\n" + "height 1.05\r\n" + "ForceClose 0\r\n" + "ForceStart 0\r\n" + "#circle_r 6.0\r\n" + "#circle_pcount 36"; File.WriteAllText(_configSavePath, str); } }

if (Application.platform == RuntimePlatform.Android) SetBoundary();

 

 

posted @ 2024-08-19 14:50  WalkingSnail  阅读(348)  评论(0)    收藏  举报