Skip to content

Commit e3820c7

Browse files
committed
Fix building of ragtime 2
1 parent ef8ffb9 commit e3820c7

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

additional/openrct2.music.ragtime2/object.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"id": "openrct2.music.ragtime",
2+
"id": "openrct2.music.ragtime2",
33
"sourceGame": "official",
44
"authors": ["Karst van Galen Last"],
55
"version": "1.0",
@@ -40,10 +40,10 @@
4040
"hu-HU": "Ragtime stílus 2",
4141
"it-IT": "Stile ragtime 2",
4242
"ja-JP": "ラグタイム・スタイル 2番",
43-
"ko-KR": "래그타임 스타일" 2,
43+
"ko-KR": "래그타임 스타일 2",
4444
"nl-NL": "Ragtimestijl 2",
4545
"pl-PL": "Styl ragtime 2",
46-
"pt-BR": "Estilo Ragtime" 2,
46+
"pt-BR": "Estilo Ragtime 2",
4747
"ru-RU": "Стиль Регги 2",
4848
"sv-SE": "Glade Chapplies piano 2",
4949
"tr-TR": "Ragtime tarzı 2",
-32.4 KB
Binary file not shown.
-13.3 KB
Binary file not shown.

build.mjs

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,8 @@ const verbose = process.argv.indexOf('--verbose') != -1;
88

99
async function main() {
1010
await mkdir('out');
11-
const objectDirectories = await getContents('alternative', {
12-
includeDirectories: true
13-
});
14-
for (const dir of objectDirectories) {
15-
await createMusicObject(path.join('alternative', dir));
16-
await createMusicObject(path.join('additional', dir));
17-
}
11+
await createObjects('alternative');
12+
await createObjects('additional');
1813
await createAssetPack('openrct2.music.alternative.json');
1914
await createAssetPack('openrct2.music.cover.json');
2015
await createPackage();
@@ -31,6 +26,15 @@ async function createPackage() {
3126
await zip("out", path.join('..', packageFileName), contents);
3227
}
3328

29+
async function createObjects(root) {
30+
const objectDirectories = await getContents(root, {
31+
includeDirectories: true
32+
});
33+
for (const dir of objectDirectories) {
34+
await createMusicObject(path.join(root, dir));
35+
}
36+
}
37+
3438
async function createAssetPack(filename) {
3539
await rm('temp');
3640
await mkdir('temp');

0 commit comments

Comments
 (0)