Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
変更内容
externalDosDivide
を定義することで分割可能です。分割した場合、下記の例であれば1譜面目は「musicscore.txt」、2譜面目は「musicscore2.txt」、3譜面目は「musicscore3.txt」、・・・となります。
ファイル分割しても譜面番号を変えたくないケースもあると思います。
その場合は下記の設定を追加すれば可能です。
(常に
left_data
,down_data
のように数字無しの譜面データが読み込まれる)読込毎にすでに読込済みの譜面(_data, _changeがついているもので、g_rootObjに入る分)をクリアするように変更しました。
なお、いわゆる譜面ヘッダーはクリアしません。
変更理由
その他コメント
g_externalDos
を空にしていると譜面が消えますので、使用しない場合はhtml側の以下をコメントアウトするか、
g_externalDos
を定義しないようにしてください。externalDosLock
はexternalDosDivide
とセットで使われる想定です。externalDosLock
のみ定義すると、複数譜面が定義できなくなりますので、ご注意ください。