public void SetUnicodeChars(string chars) { if (chars == null || chars.Length < 1) { chars = m_unicodeChars; } m_unicodeChars = chars; UnityDirectoryStorage.SaveFile("JavaOMI", "UnicodePrefList.txt", m_unicodeChars, m_saveOnHarddrive); Refresh(); }
private void SavePrefData(bool saveOnharddrive = true) { PreferenceSave toSave = new PreferenceSave(); toSave.m_autoStart = m_autoStart.isOn; toSave.m_threadName = GetServerName(); toSave.m_port = GetServerPort(); toSave.m_ip[0] = m_ip[0].GetIndex(); toSave.m_ip[1] = m_ip[1].GetIndex(); toSave.m_ip[2] = m_ip[2].GetIndex(); toSave.m_ip[3] = m_ip[3].GetIndex(); UnityDirectoryStorage.SaveFile("JavaOMI", m_prefId + ".txt", JsonUtility.ToJson(toSave), saveOnharddrive); }
private void OnApplicationQuit() { UnityDirectoryStorage.SaveFile("JavaOMI", "UnicodePrefList.txt", m_unicodeChars, m_saveOnHarddrive); }