Branswe更新&环境变量

This commit is contained in:
2026-02-01 18:05:54 +08:00
parent 3fb0697045
commit 17aac021e3
5 changed files with 625 additions and 404 deletions

View File

@@ -56,6 +56,14 @@ namespace CMLeonOS
// 初始化用户系统
userSystem = new UserSystem();
// 检查env.dat文件是否存在如果不存在则创建并设置Test环境变量
string envFilePath = @"0:\system\env.dat";
if (!System.IO.File.Exists(envFilePath))
{
System.IO.File.WriteAllText(envFilePath, "Test=123");
Console.WriteLine("Created env.dat with Test=123");
}
// 循环直到登录成功或退出
while (true)
{