Пример #1
0
        public void unloadGameContent()
        {
            //Clear the path saved in the registry
            RegistryTools.DeleteSetting(Constants.APPLICATION_NAME, Constants.PAK_FILE_LOCATION_REGISTRY_KEY);

            if (gameContentLoaded)
            {
                gameContentLoaded = false;
                instance          = new LocalImageResolver();
            }
        }
Пример #2
0
        private void saveRecentFilesList()
        {
            // Delete the saved entries.
            for (int i = 0; i < Constants.MAX_RECENT_FILES; i++)
            {
                RegistryTools.DeleteSetting(Constants.APPLICATION_NAME, "FilePath" + i.ToString());
            }

            // Save the current entries.
            int index = 0;

            foreach (FileInfo file_info in _recentFilesInfos)
            {
                RegistryTools.SaveSetting(Constants.APPLICATION_NAME,
                                          "FilePath" + index.ToString(), file_info.FullName);
                index++;
            }
        }