Browse files

Fix bad paths in sound bank JSON when the source sound files were out…

…side the project directory.
  • Loading branch information...
1 parent 77b7cf7 commit ee33a84a36da923be738725b075505fa47069d90 @kg kg committed Jun 15, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 Compiler/Profiles/XNACommon.cs
View
7 Compiler/Profiles/XNACommon.cs
@@ -1051,7 +1051,7 @@ public class SoundEntry {
goto retry;
}
- return Path.GetFullPath(outputDirectory);
+ return outputDirectory;
}
private static void ConvertXactProject (
@@ -1081,9 +1081,10 @@ public class SoundEntry {
var waveOutputFolder = FixupOutputDirectory(outputFolder, waveFolder);
- waveManifest[wave.m_name] = Path.Combine(
+ waveManifest[wave.m_name] = FixupOutputDirectory(
projectSubdir,
- wave.m_fileName.Replace(Path.GetExtension(wave.m_fileName), "")
+ wave.m_fileName
+ .Replace(Path.GetExtension(wave.m_fileName), "")
);
journal.AddRange(CompressAudioGroup(

0 comments on commit ee33a84

Please sign in to comment.