Ver Fonte

fix: undefined var

林轻语 há 5 meses atrás
pai
commit
f5370a1743
1 ficheiros alterados com 7 adições e 0 exclusões
  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
             End Try
             DirectoryUtils.Create(PathTemp & "Cache\")
             DirectoryUtils.Create(PathTemp & "Cache\")
             DirectoryUtils.Create(PathAppdata)
             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 BuildType <> BuildTypes.Debug Then
                 If Not GetProgramLock(FileLockPath) Then
                 If Not GetProgramLock(FileLockPath) Then