private void ShowLoadingProgressDebugString()
{
//
// Obtain the current debug string if present (and reset it to the
// empty string if it was set). If a debug string snippet was
// obtained, display it to the debug console.
//
#pragma warning disable 420
string DebugString = Interlocked.Exchange(ref Archivist.debug, "");
#pragma warning restore 420
if (!String.IsNullOrEmpty(DebugString))
WriteTimestampedLogEntry("ACR_Candlekeep: " + DebugString);
if (ArchivesInstance.WaitForResourcesLoaded(false) == false)
DelayCommand(1.0f, delegate() { ShowLoadingProgressDebugString(); });
else
WriteTimestampedLogEntry("ACR_Candlekeep: Resource loading complete.");
}