正在为RScript更新内容(已通过编译)

This commit is contained in:
2025-10-27 20:24:15 +08:00
parent b85f6699a0
commit 6dcf842e25
35 changed files with 598 additions and 1019 deletions

View File

@@ -37,7 +37,6 @@ namespace Demo.Game
/// 值为null时不会在启动时打开
/// </summary>
public string WhichOpenProject { get; private set; } = null;
public ProjectDefaultFileStyle CurrentProjectDefaultFileStyle = default;
public float SongOffset = 0;
public float CurrentTime = 0;
@@ -174,7 +173,6 @@ namespace Demo.Game
Debug.LogException(ex, this);
}
}
CurrentProjectDefaultFileStyle = content.CurrentProjectDefaultFileStyle;
}
@@ -186,11 +184,7 @@ namespace Demo.Game
{
while (MainConfig.Contains("root") == false)
{
string defaultRootPath = "root" + CurrentProjectDefaultFileStyle switch
{
ProjectDefaultFileStyle.PY => ".py",
_ => ".cpp"
};
string defaultRootPath = "root.cpp";
if (content.IsCreateNewProject)
{
MainConfig["root"] = defaultRootPath;