Skip to content

Commit

Permalink
Improved logging p2
Browse files Browse the repository at this point in the history
  • Loading branch information
PrashantMohta committed Mar 11, 2023
1 parent 83d9333 commit 5bd0868
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CustomKnight/Skin/Swapper/GameObjectProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public string getTexturePath(){
return Path.Combine(rootPath,name+".png");
}
public void TraverseGameObjectPath(string path,string rootPath,string name){
Modding.Logger.LogDebug($"{path}:{rootPath}:{name}");
CustomKnight.Instance.LogDebug($"{path}:{rootPath}:{name}");
var pathSplit = path.Split(new Char[] {'/'},3);
GameObjectProxy GOP = null;
hasChildren = false;
Expand Down Expand Up @@ -50,7 +50,7 @@ public void TraverseGameObjectPath(string path,string rootPath,string name){
}
}

Modding.Logger.LogDebug($"{this.hasTexture}:{this.rootPath}:{this.name}");
CustomKnight.Instance.LogDebug($"{this.hasTexture}:{this.rootPath}:{this.name}");
}
public void TraverseGameObjectDirectory(string basePath){
var path = Path.Combine(basePath,Path.Combine(rootPath,name));
Expand Down
2 changes: 1 addition & 1 deletion CustomKnight/Skin/Swapper/SwapManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ private void loadTexture(GameObjectProxy gop){
}

private void SwapSkinForGo(string objectPath,GameObject GO){
Modding.Logger.LogDebug($"op {objectPath} {GO.name}");
CustomKnight.Instance.LogDebug($"op {objectPath} {GO.name}");
Texture2D tex;// = loadedTextures[objectPath];
if(!loadedTextures.TryGetValue(objectPath,out tex)){
return;
Expand Down

0 comments on commit 5bd0868

Please sign in to comment.