Guard browser OPFS custom session path locals

This commit is contained in:
2026-06-14 01:44:29 +08:00
parent ef4d1c7829
commit 25d8672f57
2 changed files with 66 additions and 3 deletions

View File

@@ -4588,7 +4588,14 @@
);
}
function opfsCustomSessionPaths(machineId, parameterFilename, toolTableFilename, iniWasmPath) {
function opfsCustomSessionPaths(
machineId,
parameterFilename,
toolTableFilename,
iniWasmPath,
parameterWasmPath,
toolTableWasmPath,
) {
return {
opfs: {
parameters: opfsMachineFilePath(machineId, parameterFilename),
@@ -4596,8 +4603,8 @@
},
wasm: {
ini: iniWasmPath,
parameters: opfsCustomSessionWasmPath(parameterFilename),
toolTable: opfsCustomSessionWasmPath(toolTableFilename),
parameters: parameterWasmPath,
toolTable: toolTableWasmPath,
},
};
}
@@ -9495,6 +9502,8 @@
iniFileParameterFilename,
iniFileToolTableFilename,
iniFileIniWasmPath,
iniFileParameterWasmPath,
iniFileToolTableWasmPath,
),
);
verifyOpfsLoadResult(
@@ -9671,6 +9680,8 @@
explicitParameterFilename,
explicitToolTableFilename,
iniOverrideIniWasmPath,
explicitParameterWasmPath,
explicitToolTableWasmPath,
),
);
verifyOpfsLoadResult(