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);
}
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 {
module.Definition.Dispose();

View File

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

View File

@@ -64,7 +64,7 @@ namespace Cryville.Crtr.Config {
}
catch (Exception 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();
}
}

View File

@@ -40,7 +40,7 @@ namespace Cryville.Crtr {
catch (ResultException ex) {
dc.Dispose();
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;
}
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");
EngineBuilder.Engines.Remove(AudioManager.GetType());
}
@@ -155,7 +155,7 @@ namespace Cryville.Crtr {
AudioManager.Dispose();
}
catch (Exception ex) {
LogException("Game", "An error occured while shutting down", ex);
LogException("Game", "An error occurred while shutting down", ex);
}
finally {
Logger.Close();