aboutsummaryrefslogtreecommitdiffstats
path: root/site/src/utils.ts
blob: c6f4ba617fe18ee6fad0ae16866f9f467c024e4e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
export const getGameTitle = (gameId: string) => {
    if (!gameId) return null;

    const lowerCaseGameId = gameId.toLowerCase();

    if (lowerCaseGameId.startsWith("sdvx") || lowerCaseGameId.startsWith("sound_voltex")) return "SOUND VOLTEX";
    if (lowerCaseGameId.startsWith("iidx")) return "beatmania IIDX";
    if (lowerCaseGameId.startsWith("chunithm_jp")) return "CHUNITHM (JAPAN)";
    if (lowerCaseGameId.startsWith("maimaidx_jp")) return "maimai DX (JAPAN)";
    if (lowerCaseGameId.startsWith("maimaidx_intl")) return "maimai DX (INTERNATIONAL)";
    if (lowerCaseGameId.startsWith("ongeki_jp")) return "O.N.G.E.K.I"
    if (lowerCaseGameId.startsWith("chunithm_intl")) return "CHUNITHM (INTERNATIONAL)"
    if (lowerCaseGameId.startsWith("ddr")) return "DanceDanceRevolution";
    if (lowerCaseGameId.startsWith("jubeat")) return "jubeat";
    if (lowerCaseGameId.startsWith("gitadora")) return "GITADORA";
    if (lowerCaseGameId.startsWith("nostalgia")) return "NOSTALGIA";
    if (lowerCaseGameId.startsWith("popn_music")) return "pop'n music";
    if (lowerCaseGameId.startsWith("music_diver")) return "MUSIC DIVER";
    if (lowerCaseGameId.startsWith("taiko")) return "Taiko no Tatsujin";
    if (lowerCaseGameId.startsWith("wacca")) return "WACCA PLUS";
    if (lowerCaseGameId.startsWith("museca")) return "MÚSECA PLUS";
    if (lowerCaseGameId.startsWith("reflec_beat") || lowerCaseGameId.startsWith("rb_deluxe")) return "REFLEC BEAT DELUXE PLUS";
    if (lowerCaseGameId.startsWith("dance_rush")) return "DANCERUSH";
    if(lowerCaseGameId.startsWith("dance_around")) return "DANCE aROUND";
    if(lowerCaseGameId.startsWith("polaris_chord")) return "POLARIS CHORD/ポラリスコード"


    return gameId.toUpperCase();
};
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage