diff --git a/Directory.build.props b/Directory.build.props new file mode 100644 index 0000000..5b20ef4 --- /dev/null +++ b/Directory.build.props @@ -0,0 +1,6 @@ + + + 0.1.0 + $(DefineConstants);FULL_RELEASE + + \ No newline at end of file diff --git a/Drizzle.Editor/Drizzle.Editor.csproj b/Drizzle.Editor/Drizzle.Editor.csproj index f345ccd..8c45998 100644 --- a/Drizzle.Editor/Drizzle.Editor.csproj +++ b/Drizzle.Editor/Drizzle.Editor.csproj @@ -13,7 +13,7 @@ - + diff --git a/Drizzle.Lingo.Runtime/LingoRuntime.FileSystem.cs b/Drizzle.Lingo.Runtime/LingoRuntime.FileSystem.cs index ca2ed41..1f6b549 100644 --- a/Drizzle.Lingo.Runtime/LingoRuntime.FileSystem.cs +++ b/Drizzle.Lingo.Runtime/LingoRuntime.FileSystem.cs @@ -10,7 +10,11 @@ public partial class LingoRuntime static LingoRuntime() { +#if FULL_RELEASE + var path = Path.Combine(Assembly.GetEntryAssembly()!.Location, "..", "Data"); +#else var path = Path.Combine(Assembly.GetEntryAssembly()!.Location, "..", "..", "..", "..", "..", "Data"); +#endif MovieBasePath = Path.GetFullPath(path) + Path.DirectorySeparatorChar; CastPath = Path.Combine(MovieBasePath, "Cast"); } @@ -36,4 +40,4 @@ public string GetFilePath(string relPath) return fullPath; } -} \ No newline at end of file +} diff --git a/DrizzleEdit.sln b/DrizzleEdit.sln index 364074b..1bc883d 100644 --- a/DrizzleEdit.sln +++ b/DrizzleEdit.sln @@ -14,6 +14,7 @@ ProjectSection(SolutionItems) = preProject .gitignore = .gitignore LICENSE.txt = LICENSE.txt README.md = README.md + Directory.build.props = Directory.build.props EndProjectSection EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Drizzle.Lingo.Tests", "Drizzle.Lingo.Tests\Drizzle.Lingo.Tests.csproj", "{3B36DF08-A34A-4BF1-9EE2-94E571FCF817}"