스크린샷 폴더 지정 위치 버그 수정
This commit is contained in:
2023-02-08 21:49:25 +09:00
parent 6fa68e5306
commit 7a442ffe1a
2 changed files with 1 additions and 2 deletions

View File

@@ -147,7 +147,7 @@ namespace Mitria_Minecraft_Launcher.Updater
{ {
// 비우기 전에 스크린샷폴더 보존 /screenshots // 비우기 전에 스크린샷폴더 보존 /screenshots
string oldScreenshotsDirectory = CommonLibrary.Extensions.PathCombineW(Settings.UserLauncherConfig.GameDirectory, Settings.NowProfile.ServerName, "screenshots"); string oldScreenshotsDirectory = CommonLibrary.Extensions.PathCombineW(Settings.UserLauncherConfig.GameDirectory, Settings.NowProfile.ServerName, "screenshots");
string newScreenshotsDirectory = "screenshots "+ DateTime.Now.ToString("yyyyMMddHHmmss"); string newScreenshotsDirectory = System.IO.Path.GetFullPath("screenshots_" + DateTime.Now.ToString("yyyyMMddHHmmss"));
if (System.IO.Directory.Exists(oldScreenshotsDirectory) && System.IO.Directory.GetFiles(oldScreenshotsDirectory, "*", System.IO.SearchOption.AllDirectories).Length > 0) if (System.IO.Directory.Exists(oldScreenshotsDirectory) && System.IO.Directory.GetFiles(oldScreenshotsDirectory, "*", System.IO.SearchOption.AllDirectories).Length > 0)
{ {
Log.INFO("[Package] Screenshots Directory Backup : " + newScreenshotsDirectory); Log.INFO("[Package] Screenshots Directory Backup : " + newScreenshotsDirectory);

View File

@@ -22,7 +22,6 @@ namespace Mitria_Minecraft_Launcher.Updater
CommonLibrary.Log.INFO("Launcher Version : " + thisVersion); CommonLibrary.Log.INFO("Launcher Version : " + thisVersion);
CommonLibrary.Log.INFO("Remote Launcher Version : " + remoteVersion); CommonLibrary.Log.INFO("Remote Launcher Version : " + remoteVersion);
int result = remoteVersion.CompareTo(thisVersion); int result = remoteVersion.CompareTo(thisVersion);
if (result <= 0) if (result <= 0)
{ {
CommonLibrary.Log.INFO("Version Same"); CommonLibrary.Log.INFO("Version Same");