Skip to content

Commit

Permalink
Fix casing.
Browse files Browse the repository at this point in the history
  • Loading branch information
yuatpocketgems committed Dec 15, 2020
1 parent 6bcd347 commit 60a2368
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions unity/Assets/Puerts/Src/Loader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public DefaultLoader(string root)
this.root = root;
}

private string pathToUse(string filepath)
private string PathToUse(string filepath)
{
return filepath.EndsWith(".cjs") ?
filepath.Substring(0, filepath.Length - 4) :
Expand All @@ -42,7 +42,7 @@ public bool FileExists(string filepath)
#if PUERTS_GENERAL
return File.Exists(Path.Combine(root, filepath));
#else
string pathToUse = this.pathToUse(filepath);
string pathToUse = this.PathToUse(filepath);
return UnityEngine.Resources.Load(pathToUse) != null;
#endif
}
Expand All @@ -53,7 +53,7 @@ public string ReadFile(string filepath, out string debugpath)
debugpath = Path.Combine(root, filepath);
return File.ReadAllText(debugpath);
#else
string pathToUse = this.pathToUse(filepath);
string pathToUse = this.PathToUse(filepath);
UnityEngine.TextAsset file = (UnityEngine.TextAsset)UnityEngine.Resources.Load(pathToUse);
debugpath = System.IO.Path.Combine(root, filepath);
#if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN
Expand Down

0 comments on commit 60a2368

Please sign in to comment.