Skip to content

Commit

Permalink
fix json
Browse files Browse the repository at this point in the history
  • Loading branch information
mmbelkiman committed Mar 9, 2019
1 parent 58f2b3c commit f095ad3
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 8 deletions.
12 changes: 9 additions & 3 deletions Core/ParticleEffect.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using VenusParticleEngine.Core.Modifiers;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using VenusParticleEngine.Core.Modifiers;

namespace VenusParticleEngine.Core
{
Expand Down Expand Up @@ -34,7 +34,7 @@ public static ParticleEffect ReadFromJson(string jsonPath, string jsonString, Gr
}
catch (Exception e)
{
Console.WriteLine(e.Message);
Console.WriteLine("Venus Particle Engine : ParticleEffect => " + e.Message);
return null;
}
}
Expand All @@ -54,10 +54,17 @@ public static ParticleEffect ReadFromJsonFile(string filePath, GraphicsDevice gr
pf.UpdateEmmitersTexture(jsonPath, graphicsDevice, content);
return pf;
}
catch (Exception e)
{
Console.WriteLine("Venus Particle Engine : ParticleEffect => " + e.Message);
return null;
}
finally
{
if (reader != null)
{
reader.Close();
}
}
}

Expand Down Expand Up @@ -189,6 +196,5 @@ public void PlayPause()
{
active = !active;
}

}
}
4 changes: 2 additions & 2 deletions Demo/Demo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
<Reference Include="MonoGame.Framework">
<HintPath>$(MonoGameInstallDirectory)\MonoGame\v3.0\Assemblies\DesktopGL\MonoGame.Framework.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.12.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Xml" />
Expand Down
Binary file removed Demo/libs/Newtonsoft.Json.dll
Binary file not shown.
Binary file modified Demo/libs/VenusParticleEngine.dll
Binary file not shown.
Binary file modified Demo/libs/VenusParticleEngine.pdb
Binary file not shown.
2 changes: 1 addition & 1 deletion Demo/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net45" />
<package id="Newtonsoft.Json" version="12.0.1" targetFramework="net452" />
</packages>
1 change: 0 additions & 1 deletion Venus Particle Engine.sln
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ Global
{BCBB56D3-7F48-463E-8411-79A515087D3C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BCBB56D3-7F48-463E-8411-79A515087D3C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BCBB56D3-7F48-463E-8411-79A515087D3C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BCBB56D3-7F48-463E-8411-79A515087D3C}.Release|Any CPU.Build.0 = Release|Any CPU
{86648003-7D73-40FE-89F5-71E65BC7C9D0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{86648003-7D73-40FE-89F5-71E65BC7C9D0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{86648003-7D73-40FE-89F5-71E65BC7C9D0}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down
1 change: 0 additions & 1 deletion VenusParticleEngine.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@
<Compile Include="Core\RenderingOrder.cs" />
<Compile Include="Core\SpriteBatchRender.cs" />
<Compile Include="Core\SpritebatchRenderer.cs" />
<Compile Include="Core\Utils\MiniJson.cs" />
<Compile Include="Core\Vector.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
Expand Down

0 comments on commit f095ad3

Please sign in to comment.