KillzXGaming / Cafe-Shader-Studio

A program to preview various materials and shaders in games.
MIT License
48 stars 9 forks source link

Recent.txt saves to ../net5.0{Path.DirectorySeparatorChar}Recent.txt #18

Closed edbefee3-3888-462a-9411-741b7e9eb54e closed 1 year ago

edbefee3-3888-462a-9411-741b7e9eb54e commented 2 years ago

the issue can be resolved by changing MainWindow.cs,1206, MainWindow.cs,1219, MainWindow.cs,121 from

whatever(Runtime.ExecutableDir + "{Path.DirectorySeparatorChar}Recent.txt");

to either

whatever(Runtime.ExecutableDir + $"{Path.DirectorySeparatorChar}Recent.txt");
whatever(Runtime.ExecutableDir + Path.DirectorySeparatorChar + "Recent.txt");

or

whatever($"{Runtime.ExecutableDir}{Path.DirectorySeparatorChar}Recent.txt");

and and BfresModelAsset.cs,96 from

(System.IO.File.Exists("GFD{Path.DirectorySeparatorChar}gx2shader-decompiler.exe"))

to either

(System.IO.File.Exists($"GFD{Path.DirectorySeparatorChar}gx2shader-decompiler.exe"))

or

(System.IO.File.Exists("GFD" + Path.DirectorySeparatorChar + "gx2shader-decompiler.exe"))