feat: add DLC page

This commit is contained in:
2026-06-18 22:42:34 -03:00
parent c2e2f4c216
commit 8066ad4434
4 changed files with 351 additions and 1 deletions
+14 -1
View File
@@ -1,3 +1,13 @@
export type DLC = {
id: string;
name: string | null;
dlcIds: {
steam: string;
epic: string;
grdk: string;
};
};
export const getFileName = (iconFilePath: string): string => {
const base = iconFilePath.split('/').pop() ?? '';
return base.split('.')[0];
@@ -6,4 +16,7 @@ export const getFileName = (iconFilePath: string): string => {
export const cleanFolderName = (name: string): string =>
name.replace(/[\\/:*?"<>|]/g, '_');
export const isKiller = (idx: number): boolean => idx >= 268435456;
export const isKiller = (idx: number): boolean => idx >= 268435456;
export const isNamedDLC = (dlc: DLC): dlc is DLC & { name: string } =>
!!dlc.name && !dlc.name.startsWith('@');