Skip to content

Commit

Permalink
Merge pull request #2 from SnowyStarfall/main
Browse files Browse the repository at this point in the history
Fix not outputting to correct directory
  • Loading branch information
SuperAndyHero authored Feb 6, 2024
2 parents 166bd3d + d9e4252 commit 9d3c880
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 9d3c880

Please sign in to comment.