From 76c378b77a33a926c83087edebf4e406bb169283 Mon Sep 17 00:00:00 2001 From: Toki Date: Sun, 22 Dec 2024 10:43:29 +0900 Subject: [PATCH] update code --- lib/utils/system_util.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/utils/system_util.dart b/lib/utils/system_util.dart index 29ede53..120e9e1 100644 --- a/lib/utils/system_util.dart +++ b/lib/utils/system_util.dart @@ -10,16 +10,19 @@ import 'package:path/path.dart' as path; const int intMax = 0x7FFFFFFFFFFFFFFF; const int intMin = -0x8000000000000000; +bool isDebug = true; String userPath = ''; String dataPath = ''; String projectName = ''; Future initialize() async { + isDebug = path.basename(Platform.resolvedExecutable) == 'dart'; userPath = await Path.userPath; dataPath = await Path.dataPath; projectName = await getProjectName(); } + Map?> envArguments(List arguments) { var dic = ?>{}; var list = [];