aboutsummaryrefslogtreecommitdiffstats
path: root/site/src/utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'site/src/utils.ts')
-rw-r--r--site/src/utils.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/site/src/utils.ts b/site/src/utils.ts
new file mode 100644
index 0000000..e523f5c
--- /dev/null
+++ b/site/src/utils.ts
@@ -0,0 +1,10 @@
+export const getGameTitle = (gameId: string) => {
+ if (!gameId) return null;
+
+ if (gameId.startsWith("sdvx")) return "SOUND VOLTEX";
+ if (gameId.startsWith("iidx")) return "beatmania IIDX";
+ if (gameId.startsWith("chunithm_jp")) return "CHUNITHM (JAPAN)";
+ if (gameId.startsWith("maimaidx_jp")) return "maimai DX (JAPAN)";
+
+ return gameId.toUpperCase();
+};
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage