Skip to content

Commit

Permalink
Fix not outputting to correct directory
Browse files Browse the repository at this point in the history
  • Loading branch information
SnowyStarfall committed Dec 4, 2023
1 parent 166bd3d commit d9e4252
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions EasyXnb/GeneratorGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ private void CompileEffects()
}
else
{
using (FileStream fileStream = new FileStream(text, FileMode.Create))
using (FileStream fileStream = new FileStream(outputDirectorySetting + "\\" + text, FileMode.Create))
{
_compileMethodInfo.Invoke(_contentCompiler, new object[7]
{
Expand Down Expand Up @@ -350,7 +350,7 @@ private void CompileTextures()
TextureContent textureContent = _textureProcessor.Process(input, _dfgContext);
Console.WriteLine(".Done!");
Console.Write("Start compiling texture content file: {0}", text);
using (FileStream fileStream = new FileStream(text, FileMode.Create))
using (FileStream fileStream = new FileStream(outputDirectorySetting + "\\" + text, FileMode.Create))
{
_compileMethodInfo.Invoke(_contentCompiler, new object[7]
{
Expand Down Expand Up @@ -454,7 +454,7 @@ private void CompileModels()

Console.WriteLine(".Done!");
Console.Write("Start compiling model content file: {0}", outputFile);
using (FileStream fileStream = new FileStream(outputFile, FileMode.Create))
using (FileStream fileStream = new FileStream(outputDirectorySetting + "\\" + outputFile, FileMode.Create))
{
_compileMethodInfo.Invoke(_contentCompiler, new object[7]
{
Expand Down Expand Up @@ -496,7 +496,7 @@ private void CompileFonts()
CompiledEffectContent compiledEffectContent = _effectProcessor.Process(input, _dfgContext);
Console.WriteLine(".Done!");
Console.Write("Start compiling font content file: {0}", text);
using (FileStream fileStream = new FileStream(text, FileMode.Create))
using (FileStream fileStream = new FileStream(outputDirectorySetting + "\\" + text, FileMode.Create))
{
_compileMethodInfo.Invoke(_contentCompiler, new object[7]
{
Expand Down

0 comments on commit d9e4252

Please sign in to comment.