Fix misspelling.

This commit is contained in:
2023-05-05 00:42:20 +08:00
parent 0b2ea3ddbc
commit beab3d7f8b
5 changed files with 10 additions and 10 deletions

View File

@@ -71,7 +71,7 @@ namespace Cryville.Crtr.Browsing {
Logger.Log("main", 1, "Extension", "Loaded module {0}", module.Definition.Name); Logger.Log("main", 1, "Extension", "Loaded module {0}", module.Definition.Name);
} }
catch (Exception ex) { catch (Exception ex) {
Logger.Log("main", 4, "Extension", "An error occured while trying to load module {0}: {1}", module.Definition.Name, ex); Logger.Log("main", 4, "Extension", "An error occurred while trying to load module {0}: {1}", module.Definition.Name, ex);
} }
finally { finally {
module.Definition.Dispose(); module.Definition.Dispose();

View File

@@ -86,7 +86,7 @@ namespace Cryville.Crtr {
Play(); Play();
} }
catch (Exception ex) { catch (Exception ex) {
Game.LogException("Load/WorkerThread", "An error occured while loading the data", ex); Game.LogException("Load/WorkerThread", "An error occurred while loading the data", ex);
Popup.CreateException(ex); Popup.CreateException(ex);
ReturnToMenu(); ReturnToMenu();
} }
@@ -121,7 +121,7 @@ namespace Cryville.Crtr {
} }
} }
catch (Exception ex) { catch (Exception ex) {
Game.LogException("Load/Prehandle", "An error occured while prehandling the data", ex); Game.LogException("Load/Prehandle", "An error occurred while prehandling the data", ex);
Popup.CreateException(ex); Popup.CreateException(ex);
prehandler = null; prehandler = null;
Stop(); Stop();
@@ -173,7 +173,7 @@ namespace Cryville.Crtr {
effectManager.Tick(cbus.Time); effectManager.Tick(cbus.Time);
} }
catch (Exception ex) { catch (Exception ex) {
Game.LogException("Game", "An error occured while playing", ex); Game.LogException("Game", "An error occurred while playing", ex);
Popup.CreateException(ex); Popup.CreateException(ex);
Stop(); Stop();
} }
@@ -537,7 +537,7 @@ namespace Cryville.Crtr {
} }
catch (Exception ex) { catch (Exception ex) {
if (!logEnabled) ToggleLogs(); if (!logEnabled) ToggleLogs();
Game.LogException("Game", "An error occured while stopping", ex); Game.LogException("Game", "An error occurred while stopping", ex);
Popup.CreateException(ex); Popup.CreateException(ex);
} }
finally { finally {
@@ -582,7 +582,7 @@ namespace Cryville.Crtr {
Logger.Log("main", 1, "Load/WorkerThread", "Worker thread done ({0}ms)", workerTimer.Elapsed.TotalMilliseconds); Logger.Log("main", 1, "Load/WorkerThread", "Worker thread done ({0}ms)", workerTimer.Elapsed.TotalMilliseconds);
} }
catch (Exception ex) { catch (Exception ex) {
Game.LogException("Load/WorkerThread", "An error occured while loading the data", ex); Game.LogException("Load/WorkerThread", "An error occurred while loading the data", ex);
threadException = ex; threadException = ex;
} }
} }

View File

@@ -64,7 +64,7 @@ namespace Cryville.Crtr.Config {
} }
catch (Exception ex) { catch (Exception ex) {
Popup.CreateException(ex); Popup.CreateException(ex);
Logger.Log("main", 4, "Config", "An error occured while loading the config: {0}", ex); Logger.Log("main", 4, "Config", "An error occurred while loading the config: {0}", ex);
m_menu.Back(); m_menu.Back();
} }
} }

View File

@@ -40,7 +40,7 @@ namespace Cryville.Crtr {
catch (ResultException ex) { catch (ResultException ex) {
dc.Dispose(); dc.Dispose();
dc = null; dc = null;
Logger.Log("main", 4, "Discord", "An error occured while running callbacks: {0}", ex); Logger.Log("main", 4, "Discord", "An error occurred while running callbacks: {0}", ex);
} }
} }

View File

@@ -106,7 +106,7 @@ namespace Cryville.Crtr {
break; break;
} }
catch (Exception ex) { catch (Exception ex) {
Logger.Log("main", 4, "Audio", "An error occured when initializing the audio engine: {0}", ex); Logger.Log("main", 4, "Audio", "An error occurred when initializing the audio engine: {0}", ex);
Logger.Log("main", 3, "Audio", "Trying to use fallback audio engines"); Logger.Log("main", 3, "Audio", "Trying to use fallback audio engines");
EngineBuilder.Engines.Remove(AudioManager.GetType()); EngineBuilder.Engines.Remove(AudioManager.GetType());
} }
@@ -155,7 +155,7 @@ namespace Cryville.Crtr {
AudioManager.Dispose(); AudioManager.Dispose();
} }
catch (Exception ex) { catch (Exception ex) {
LogException("Game", "An error occured while shutting down", ex); LogException("Game", "An error occurred while shutting down", ex);
} }
finally { finally {
Logger.Close(); Logger.Close();