Replace hardcoded backslashes with Path.Combine for Linux compat
This commit is contained in:
@@ -628,7 +628,7 @@ namespace SlaveMatrix
|
|||||||
|
|
||||||
private static void AutoSave()
|
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)
|
foreach (string item in from e in Directory.EnumerateFiles(Sta.SavePath)
|
||||||
where e.StartsWith(s)
|
where e.StartsWith(s)
|
||||||
select e)
|
select e)
|
||||||
|
|||||||
@@ -880,7 +880,7 @@ namespace SlaveMatrix
|
|||||||
{
|
{
|
||||||
//if (!EncryptSave)
|
//if (!EncryptSave)
|
||||||
{
|
{
|
||||||
GameData.SaveExMod(SavePath + "\\" + i + ": " + GameData.GetSaveDateString().Replace("/", "_") + ".sav");
|
GameData.SaveExMod(Path.Combine(SavePath, i + ": " + GameData.GetSaveDateString().Replace("/", "_") + ".sav"));
|
||||||
}
|
}
|
||||||
/*else
|
/*else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2440,7 +2440,7 @@ namespace SlaveMatrix
|
|||||||
{
|
{
|
||||||
((IDisposable)font)?.Dispose();
|
((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フォルダに保存されます;
|
ip.SubInfoIm = GameText.撮影しました + "\r\n" + GameText.写真はPhotoフォルダに保存されます;
|
||||||
if (Sta.GameData.TrainingTarget.Trained && !調教UI2.Cha.Body.Is拘束 && 調教UI2.Cha.Body.Is腕人 && !Sta.GameData.TrainingTarget.ChaD.撮影ピース経験)
|
if (Sta.GameData.TrainingTarget.Trained && !調教UI2.Cha.Body.Is拘束 && 調教UI2.Cha.Body.Is腕人 && !Sta.GameData.TrainingTarget.ChaD.撮影ピース経験)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user