Guard browser OPFS explicit session file group

This commit is contained in:
2026-06-14 06:12:19 +08:00
parent ee4c4e10af
commit e0f7ebec4f
2 changed files with 56 additions and 4 deletions

View File

@@ -9680,11 +9680,12 @@
);
const iniOverrideMachineId = "browser-ini-override-session";
const explicitParameterFilename = "browser-explicit.var";
const explicitToolTableFilename = "browser-explicit-tool.tbl";
const explicitSessionFiles = opfsCustomSessionFiles("browser-explicit.var", "browser-explicit-tool.tbl");
const iniOverrideIniWasmPath = opfsMachineIniWasmPath(iniOverrideMachineId);
const explicitParameterWasmPath = opfsCustomSessionWasmPath(explicitParameterFilename);
const explicitToolTableWasmPath = opfsCustomSessionWasmPath(explicitToolTableFilename);
const explicitParameterFilename = explicitSessionFiles.filenames.parameters;
const explicitToolTableFilename = explicitSessionFiles.filenames.toolTable;
const explicitParameterWasmPath = explicitSessionFiles.wasm.parameters;
const explicitToolTableWasmPath = explicitSessionFiles.wasm.toolTable;
const browserIniOverrideTextPaths = await saveMachineTextFiles(iniOverrideMachineId, {
ini: opfsCustomSessionIniText(
iniOverrideMachineId,