protected void LoadVUFile(string path) { try { var s = File.ReadAllText(path); m_versionInfo = JsonMapper.ToObject <XGameUpdate.UpdateStruct>(s); ResetFolders(); } catch (System.Exception) { m_versionInfo = new XGameUpdate.UpdateStruct(); ResetFolders(); } }
void InitData() { m_versionInfo = new XGameUpdate.UpdateStruct(); }