Skip to content

Commit

Permalink
Update filepaths to work on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
evinjaff committed May 25, 2024
1 parent d7712c6 commit d15aa08
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ namespace pkhexEgglockeTests
public static class testConstants
{
// Gen 4 - Soul Silver Blank Save File
public static string BLANK_SOULSILVER_SAVE => Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), @"testSources\emptySoulSilver.sav");
public static string BLANK_SOULSILVER_SAVE => Path.Combine(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), @"testSources"), "emptySoulSilver.sav");

Check warning on line 13 in pkhex/pkhex-egglocke-tests/pkhex-egglocke-tests/testConstants.cs

View workflow job for this annotation

GitHub Actions / build

Possible null reference argument for parameter 'path1' in 'string Path.Combine(string path1, string path2)'.

Check warning on line 13 in pkhex/pkhex-egglocke-tests/pkhex-egglocke-tests/testConstants.cs

View workflow job for this annotation

GitHub Actions / build

Possible null reference argument for parameter 'path1' in 'string Path.Combine(string path1, string path2)'.
public static string BLANK_SOULSILVER_OT_STRING => "Egg";


// Gen 6 - Omega Ruby Save File
public static string BLANK_OMEGARUBY_SAVE => Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), @"testSources\emptyOmegaRuby.sav");
public static string BLANK_OMEGARUBY_SAVE => Path.Combine(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), @"testSources"), "emptyOmegaRuby.sav");

Check warning on line 18 in pkhex/pkhex-egglocke-tests/pkhex-egglocke-tests/testConstants.cs

View workflow job for this annotation

GitHub Actions / build

Possible null reference argument for parameter 'path1' in 'string Path.Combine(string path1, string path2)'.

Check warning on line 18 in pkhex/pkhex-egglocke-tests/pkhex-egglocke-tests/testConstants.cs

View workflow job for this annotation

GitHub Actions / build

Possible null reference argument for parameter 'path1' in 'string Path.Combine(string path1, string path2)'.


}
Expand Down

0 comments on commit d15aa08

Please sign in to comment.