private void LoadLocal() { string path = SteamUtils.FindSteamInstallFolder(); if (path == null) { MessageBox.Show("Steam not found !", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error); } else { string userdataPath = Path.Combine(path, "userdata"); if (Directory.Exists(userdataPath)) { string[] foldersFound = Directory.GetDirectories(userdataPath, APP_ID, SearchOption.AllDirectories); if (foldersFound.Length == 1) { string[] files = Directory.GetFiles(foldersFound[0], CLOUD_SAVE_FILENAME, SearchOption.AllDirectories); if (files.Length == 1) { fileName = files[0]; LoadFile(fileName); } else { MessageBox.Show("Cannot find file " + CLOUD_SAVE_FILENAME + " !", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error); } } else { MessageBox.Show("Cannot find userdata folder !", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error); } } } }