perf(gamedata): manifest ext by JSON mode, no double-probe

tryFetchManifestPair sceglie l'estensione in base a resolveJsonMode():
json5 -> .json5, legacy -> .json, auto -> entrambi. Evita le richieste
manifest.json fallite a ogni avvio in modalita json5.
This commit is contained in:
medievalshell
2026-05-30 00:14:44 +02:00
parent b127501c52
commit c3b15f02bf
2 changed files with 14 additions and 4 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ export class ConfigJsonError extends Error
export const isMissingResource = (err: unknown): boolean =>
err instanceof ConfigJsonError && err.phase === 'fetch' && err.httpStatus === 404;
const resolveJsonMode = (): 'legacy' | 'json5' | 'auto' =>
export const resolveJsonMode = (): 'legacy' | 'json5' | 'auto' =>
{
try
{