public static void LoadContent() { GameModeManager.LoadGameModes(); Logger.Debug("Loaded game modes."); FontManager.LoadFonts(); Screen.TextBox.TextFont = FontManager.GetFontContainer("textfont"); Logger.Debug("Loaded fonts."); TextureManager.InitializeTextures(); MusicManager.LoadMusic(); SoundEffectManager.LoadSounds(false); Logger.Debug("Loaded content."); Logger.Debug("Validated files. Result: " + Security.FileValidation.IsValid(true)); if (!Security.FileValidation.IsValid(false)) { Logger.Log(Logger.LogTypes.Warning, "Core.vb: File Validation failed! Download a fresh copy of the game to fix this issue."); } GameMessage = new GameMessage(TextureManager.DefaultTexture, new System.Drawing.Size(10, 40), new Vector2(0, 0)) { Dock = GameMessage.DockStyles.Top, BackgroundColor = Color.Black, TextPosition = new Vector2(10, 10) }; Logger.Debug("Gamemessage initialized."); GameOptions = Options.LoadOptions(); var p0 = Path.Combine(GameController.GamePath + "Temp"); if (Directory.Exists(p0)) { try { Directory.Delete(p0, true); Logger.Log(Logger.LogTypes.Message, "Core.vb: Deleted Temp directory."); } catch (Exception) { Logger.Log(Logger.LogTypes.Warning, "Core.vb: Failed to delete the Temp directory."); } } StaffProfile.SetupStaff(); //ScriptVersion2.ScriptLibrary.InitializeLibrary(); }