Port march fixes: Vite relative-base + ResolveType internal + park AuthValuesInjector

Three carry-overs from the march branch (commits 80cc4ce, cd9d105) and
the launcher-side Vite build fix, all applicable to december without
modification:

1. Vite admin-ui + site configs switch from `base: '/'` to `base: './'`.
   Built index.html now emits `<script src="./assets/...">` instead of
   `/assets/...`, so the Easy Launcher's single-origin path-prefix mode
   (`https://<apex>/__dn/admin/`) resolves assets under the prefix
   instead of skipping it and 404'ing on the wrong server host.

2. Mod.ResolveType promoted from private to internal so PhotonPatches'
   and SavePatches' local FindGameType helpers can delegate to the
   broader assembly-scan fallback (was misssing IL2CPP-mangled type
   names like the literal "PhotonNetwork"). Both helpers collapse to
   one-line `=> Mod.ResolveType(name);`.

3. Parked AuthValuesInjector_Prefix into
   DorkNet.ClientMod/attic/AuthValuesInjector.cs.attic. In december
   this method was defined but **never wired to a harmony hook** in
   OnLateInitializeMelon, so it was effectively dead code. Removed
   the method + GetCurrentLockToken helper + Cfg.InjectAuthValues
   field + LoadConfig reader + log mention. The .cs.attic suffix
   keeps the SDK's auto-globber from compiling the parked file.
   Restore notes inside the attic file describe how to re-enable —
   for december the suggested hook is a postfix on
   PUNNetworkManager.EMGGKBALALH (mutate the AuthValues there)
   instead of march's NetworkingPeer.CallAuthenticate which never
   fires in IL2CPP.
This commit is contained in:
Alexa
2026-05-28 14:18:59 +03:00
parent cd3f8a2da3
commit c5db16eeb0
5 changed files with 158 additions and 130 deletions
+9 -1
View File
@@ -7,7 +7,15 @@ import path from 'node:path';
// up at admin.localhost without any extra publish wiring.
export default defineConfig({
plugins: [react()],
base: '/',
// Relative-base so the built index.html references its assets as
// `./assets/...` instead of `/assets/...`. Required when the SPA is
// served under a path prefix like the Easy Launcher's single-origin
// mode (`https://<apex>/__dn/admin/`) — a root-absolute asset path
// would skip the /__dn/admin/ prefix and 404 on the wrong server
// host. Still works fine for the subdomain case
// (`admin.<apex>/...`) since `./assets/...` resolves against the
// document URL in both shapes.
base: './',
resolve: {
alias: {
'@': path.resolve(__dirname, 'src'),