Skip to content

Commit

Permalink
[KKS, HS2] Fix OnCoordinateBeingSaved/Loaded events not being logged
Browse files Browse the repository at this point in the history
  • Loading branch information
ManlyMarco committed Nov 10, 2022
1 parent e2df846 commit c80c112
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Shared.Core/Chara/CharacterApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -350,10 +350,10 @@ private static IEnumerator DelayedReloadChara(ChaControl chaControl)

private static void OnCoordinateBeingSaved(ChaControl character, ChaFileCoordinate coordinateFile)
{
#if EC || AI
KoikatuAPI.Logger.LogDebug($"Saving coord \"{coordinateFile.coordinateName}\" to chara \"{GetLogName(character)}\"");
#elif KK
KoikatuAPI.Logger.LogDebug($"Saving coord \"{coordinateFile.coordinateName}\" to chara \"{GetLogName(character)}\" / {(ChaFileDefine.CoordinateType)character.fileStatus.coordinateType}");
#if KK || KKS
KoikatuAPI.Logger.LogDebug($"Saving coord \"{coordinateFile.coordinateName}\" to chara \"{GetLogName(character?.chaFile)}\" / {(ChaFileDefine.CoordinateType)character.fileStatus.coordinateType}");
#else
KoikatuAPI.Logger.LogDebug($"Saving coord \"{coordinateFile.coordinateName}\" to chara \"{GetLogName(character?.chaFile)}\"");
#endif

foreach (var controller in GetBehaviours(character))
Expand All @@ -371,10 +371,10 @@ private static void OnCoordinateBeingSaved(ChaControl character, ChaFileCoordina

private static void OnCoordinateBeingLoaded(ChaControl character, ChaFileCoordinate coordinateFile)
{
#if EC || AI
KoikatuAPI.Logger.LogDebug($"Loading coord \"{coordinateFile.coordinateName}\" to chara \"{GetLogName(character)}\"");
#elif KK
KoikatuAPI.Logger.LogDebug($"Loading coord \"{coordinateFile.coordinateName}\" to chara \"{GetLogName(character)}\" / {(ChaFileDefine.CoordinateType)character.fileStatus.coordinateType}");
#if KK || KKS
KoikatuAPI.Logger.LogDebug($"Loading coord \"{coordinateFile.coordinateName}\" to chara \"{GetLogName(character?.chaFile)}\" / {(ChaFileDefine.CoordinateType)character.fileStatus.coordinateType}");
#else
KoikatuAPI.Logger.LogDebug($"Loading coord \"{coordinateFile.coordinateName}\" to chara \"{GetLogName(character?.chaFile)}\"");
#endif

foreach (var controller in GetBehaviours(character))
Expand Down

0 comments on commit c80c112

Please sign in to comment.