diff -r e6b6846e712f8acfe32ec32557e0024048496796 -r fbbb8bf4e6ce7a89052c092485a41c75bf40ab60 axios/Axios_settings.cs --- a/axios/Axios_settings.cs Mon May 28 17:01:03 2012 -0500 +++ b/axios/Axios_settings.cs Mon May 28 22:31:46 2012 -0500 @@ -95,6 +95,7 @@ * - Fixed a bug where cleanup actions were being performed in Deactivate instead of Unload in AxiosGameScreen * - Adding IsNullOrWhiteSpace extension for support for Xbox 360 * - Upon some testing - developers will need to use #if WINDOWS/#endif tags to make sure they can't use XNACC in WP7/Xbox360 + * - Adding axioslog command to output AxiosLog * * */ diff -r e6b6846e712f8acfe32ec32557e0024048496796 -r fbbb8bf4e6ce7a89052c092485a41c75bf40ab60 axios/Engine/AxiosCommandConsole.cs --- a/axios/Engine/AxiosCommandConsole.cs Mon May 28 17:01:03 2012 -0500 +++ b/axios/Engine/AxiosCommandConsole.cs Mon May 28 22:31:46 2012 -0500 @@ -7,6 +7,7 @@ using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework; +using Axios.Engine.Log; /* * The empty AxiosCommandConsole is so that when you use the comamnd console @@ -45,17 +46,37 @@ FadeImage = tmp; } + private void ShowAxiosLog() + { + AddOutputToLog("============"); + foreach (string l in AxiosLog.Instance.GetLogList()) + AddOutputToLog(l); + AddOutputToLog("============"); + } + public override void InitializeCustomCommands() + { + AddCommand(new CmdObject("axioslog", "Displays the current Axios Log", input => { ShowAxiosLog(); })); + base.InitializeCustomCommands(); + } public override void LoadContent(ContentManager content) { base.LoadContent(content); } + protected override void LoadContent() { + if (Font == null) Font = Game.Content.Load("Console"); base.LoadContent(); } + + protected override void UnloadContent() + { + base.UnloadContent(); + ms_commands.Remove("axioslog"); + } } } #else diff -r e6b6846e712f8acfe32ec32557e0024048496796 -r fbbb8bf4e6ce7a89052c092485a41c75bf40ab60 axios/Engine/AxiosGameScreen.cs --- a/axios/Engine/AxiosGameScreen.cs Mon May 28 17:01:03 2012 -0500 +++ b/axios/Engine/AxiosGameScreen.cs Mon May 28 22:31:46 2012 -0500 @@ -431,6 +431,7 @@ { ScreenManager.Game.Components.Remove(_console); _console.Dispose(); + _console = null; } #endif }