public override void Activate() { // If we have a level to resume, check for the crashed cookie. If we find the cookie // delete it and activate the dialog letting the user know they can recover the level. if (InGame.UnDoStack.HaveResume()) { if (Storage4.FileExists(MainMenu.CrashCookieFilename, StorageSource.UserSpace)) { Storage4.Delete(MainMenu.CrashCookieFilename); parent.prevSessionCrashedMessage.Activate(); } } // Force feed to refresh rendering. shared.liveFeed.Dirty = true; // Start showing the current, signed-in creator. AuthUI.ShowStatusDialog(); }
public static Dictionary <string, List <string> > ReadToDictionary(string fileName, string testName) { // DebugLog.WriteLine("ReadToDictionary1"); Dictionary <string, List <string> > dict = null; dict = ReadToDictionary(fileName, 1, StorageSource.All, testName); if (dict == null) { // DebugLog.WriteLine(" failed read, trying titlespace"); // If we're here the file read failed. This seems to happen when the // version downloaded from the server is bad. So, delete the file // so it gets downloaded again on next startup and then read the file // from the TitleSpace. Storage4.Delete(fileName); dict = ReadToDictionary(fileName, 1, StorageSource.TitleSpace, testName); } return(dict); }