Replace hardcoded backslashes with Path.Combine for Linux compat

This commit is contained in:
2026-06-13 14:42:51 +02:00
parent 636a078c3b
commit 5df119897a
3 changed files with 3 additions and 3 deletions

View File

@@ -628,7 +628,7 @@ namespace SlaveMatrix
private static void AutoSave()
{
string s = Sta.SavePath + "\\0 ";
string s = Path.Combine(Sta.SavePath, "0 ");
foreach (string item in from e in Directory.EnumerateFiles(Sta.SavePath)
where e.StartsWith(s)
select e)

View File

@@ -880,7 +880,7 @@ namespace SlaveMatrix
{
//if (!EncryptSave)
{
GameData.SaveExMod(SavePath + "\\" + i + " " + GameData.GetSaveDateString().Replace("/", "_") + ".sav");
GameData.SaveExMod(Path.Combine(SavePath, i + " " + GameData.GetSaveDateString().Replace("/", "_") + ".sav"));
}
/*else
{

View File

@@ -2440,7 +2440,7 @@ namespace SlaveMatrix
{
((IDisposable)font)?.Dispose();
}
調UI2.Film.DisplayLayer.Save(Path + "\\" + now.ToString("yyyy_MM_dd_HH_mm_ss") + ".png", ImageFormat.Png);
調UI2.Film.DisplayLayer.Save(System.IO.Path.Combine(Path, now.ToString("yyyy_MM_dd_HH_mm_ss") + ".png"), ImageFormat.Png);
ip.SubInfoIm = GameText. + "\r\n" + GameText.Photoフォルダに保存されます;
if (Sta.GameData.TrainingTarget.Trained && !調UI2.Cha.Body.Is拘束 && 調UI2.Cha.Body.Is腕人 && !Sta.GameData.TrainingTarget.ChaD.)
{