From f5370a17438bbbe3aea7777fc69de78d0d3d93e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E8=BD=BB=E8=AF=AD?= Date: Sun, 17 May 2026 04:25:36 +0800 Subject: [PATCH] fix: undefined var --- Plain Craft Launcher 2/Application.xaml.vb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Plain Craft Launcher 2/Application.xaml.vb b/Plain Craft Launcher 2/Application.xaml.vb index f994444..fff4c5f 100644 --- a/Plain Craft Launcher 2/Application.xaml.vb +++ b/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