Example #1
0
        public static void Main()
        {
            // Uncomment to clear settings if testing or something has broken things.

            //UserDataManager.DeleteSaveSummaryFile();
            //UserData.ApplicationSettings.ClearAllParameters();

            StaticDatabase.StaticDatabaseConnection.OpenDBConnection();
            UserDataManager.SetupDirectoriesAndFiles();

            UserInputHandler.ExtraKeys = UserData.ApplicationSettings.ExtraKeys;
            // TODO: Set the gm option here too.

            rootConsole = new RLRootConsole(_fontName, _consoleWidth, _consoleHeight, _fontSize, _fontSize, _scale,
                                            _windowTitle);

            rootConsole.Update += RootConsoleUpdate;
            rootConsole.Render += RootConsoleRender;

            var mainLoopThread = new Thread(RunStartMenu);

            mainLoopThread.Start();
            rootConsole.Run();
            StaticDatabase.StaticDatabaseConnection.CloseDBConnection();
        }
Example #2
0
 public void ClearSettings()
 {
     UserDataManager.SetTestHomeDirectory(_testFilePath);
     ApplicationSettings.ClearAllParameters();
     UserDataManager.DeleteSaveSummaryFile();
     UserDataManager.SetupDirectoriesAndFiles();
 }