改一个点:

Signed-off-by: TRADER_FOER <lhf190@outlook.com>
This commit is contained in:
2026-07-10 11:28:11 +08:00
parent d474a8929c
commit cb65318bc0

View File

@@ -37,7 +37,7 @@ namespace Ichni
public void TestLoad() public void TestLoad()
{ {
string beatMapFolderPath = "Beatmaps/" + InformationTransistor.instance.chapter.chapterIndex + string beatMapFolderPath = "Beatmaps/" + InformationTransistor.instance.chapter.chapterIndex +
"/" + InformationTransistor.instance.song.songName + "/" + InformationTransistor.instance.song.songName +
"/" + InformationTransistor.instance.difficulty.difficultyName; "/" + InformationTransistor.instance.difficulty.difficultyName;
LoadProjectInfo(beatMapFolderPath); LoadProjectInfo(beatMapFolderPath);
@@ -90,8 +90,8 @@ namespace Ichni
Observable.NextFrame().Subscribe(_ => Observable.NextFrame().Subscribe(_ =>
{ {
GameManager.Instance.timeDurations = GameManager.Instance.beatmapContainer.gameElementList GameManager.Instance.timeDurations = GameManager.Instance.beatmapContainer.gameElementList
.Select(x=> (x as IHaveTimeDurationSubmodule)?.timeDurationSubmodule) .Select(x => (x as IHaveTimeDurationSubmodule)?.timeDurationSubmodule)
.Where(x => x != null && x.startTime > 0 && x.endTime < GameManager.Instance.songInformation.songLength).ToList(); .Where(x => x != null && (x.startTime > 0 || x.endTime < GameManager.Instance.songInformation.songLength)).ToList();
GameManager.Instance.beatmapContainer.gameElementList.ForEach(element => element.WhenStart()); GameManager.Instance.beatmapContainer.gameElementList.ForEach(element => element.WhenStart());
}); });
}); });
@@ -127,7 +127,7 @@ namespace Ichni
private void LoadSongInfo(string beatMapFolderPath) private void LoadSongInfo(string beatMapFolderPath)
{ {
string songInfoPath = beatMapFolderPath + "/SongInfo.bytes"; string songInfoPath = beatMapFolderPath + "/SongInfo.bytes";
ES3.Load<SongInformation_BM>("SongInformation",songInfoPath, LoadSettings).ExecuteBM(); ES3.Load<SongInformation_BM>("SongInformation", songInfoPath, LoadSettings).ExecuteBM();
} }
private void LoadBeatMap(string beatMapFolderPath) private void LoadBeatMap(string beatMapFolderPath)