Skip to content

Commit

Permalink
Swap backslashes for forward slashes before calling AssetDatabase fun…
Browse files Browse the repository at this point in the history
…ctions
  • Loading branch information
tomkail committed May 4, 2016
1 parent a27dde2 commit d737a9a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Assets/Plugins/Ink/Editor/Ink Library/InkFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ public class InkFileLog {
includes.Clear();
foreach(string includePath in includePaths) {
string localIncludePath = Path.Combine(Path.GetDirectoryName(filePath), includePath);
localIncludePath = localIncludePath.Replace ('\\', '/');
DefaultAsset includedInkFileJSONAsset = AssetDatabase.LoadAssetAtPath<DefaultAsset>(localIncludePath);
InkFile includedInkFile = InkLibrary.GetInkFileWithFile(includedInkFileJSONAsset);
if(includedInkFile == null)
Expand All @@ -135,7 +136,9 @@ public class InkFileLog {
}

public void FindCompiledJSONAsset () {
jsonAsset = AssetDatabase.LoadAssetAtPath<TextAsset>(Path.Combine(Path.GetDirectoryName(filePath), Path.GetFileNameWithoutExtension(filePath))+".json");
string jsonAssetPath = Path.Combine(Path.GetDirectoryName(filePath), Path.GetFileNameWithoutExtension(filePath))+".json";
jsonAssetPath = jsonAssetPath.Replace ('\\', '/');
jsonAsset = AssetDatabase.LoadAssetAtPath<TextAsset>(jsonAssetPath);
}

public class InkIncludeParser {
Expand Down

0 comments on commit d737a9a

Please sign in to comment.