mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-25 08:22:15 +00:00
path extensions part 2
This commit is contained in:
@@ -11,7 +11,7 @@ namespace MonoGame.Extended.Content.Pipeline.Tests
|
||||
[Test]
|
||||
public void AstridAnimatorImporter_Import_Test()
|
||||
{
|
||||
var filePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"TestData\astrid-animator.aa");
|
||||
var filePath = PathExtensions.GetApplicationFullPath(@"TestData\astrid-animator.aa");
|
||||
var importer = new AstridAnimatorImporter();
|
||||
var result = importer.Import(filePath, null);
|
||||
var data = result.Data;
|
||||
|
||||
@@ -66,6 +66,7 @@
|
||||
<Compile Include="BitmapFonts\BitmapFontPage.cs" />
|
||||
<Compile Include="BitmapFonts\BitmapFontProcessorResult.cs" />
|
||||
<Compile Include="ContentWriterExtensions.cs" />
|
||||
<Compile Include="PathExtensions.cs" />
|
||||
<Compile Include="PathHelper.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="BitmapFonts\BitmapFontImporter.cs" />
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace MonoGame.Extended.Content.Pipeline
|
||||
{
|
||||
public static class PathExtensions
|
||||
{
|
||||
public static string GetApplicationPath(string path)
|
||||
public static string GetApplicationFullPath(string path)
|
||||
{
|
||||
return Path.Combine(AppDomain.CurrentDomain.BaseDirectory, path);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user