瀏覽代碼

fix: undefined var

林轻语 5 月之前
父節點
當前提交
f5370a1743
共有 1 個文件被更改,包括 7 次插入 和 0 次删除
  1. 7 0
      Plain Craft Launcher 2/Application.xaml.vb

+ 7 - 0
Plain Craft Launcher 2/Application.xaml.vb

@@ -91,6 +91,13 @@ RetryCacheCheck:
             End Try
             DirectoryUtils.Create(PathTemp & "Cache\")
             DirectoryUtils.Create(PathAppdata)
+
+#If DEBUG Then
+            Dim FileLockPath = Path.Combine(PathAppdata.TrimEnd("\"), "PCL.dev.Lock")
+#Else
+            Dim FileLockPath = Path.Combine(PathAppdata.TrimEnd("\"), "PCL.Lock")
+#End If
+
             '要求单例
             If BuildType <> BuildTypes.Debug Then
                 If Not GetProgramLock(FileLockPath) Then