16 lines
548 B
TypeScript
16 lines
548 B
TypeScript
import processDirectory from "contexts/process/directory";
|
|
|
|
const { height = 0, width = 0 } = processDirectory.BoxedWine.defaultSize || {};
|
|
|
|
const configParams = {
|
|
"inline-default-ondemand-root-overlay": "/wine1.7.55-v8-min-online",
|
|
ondemand: "root",
|
|
resolution: `${width}x${height}`,
|
|
root: "/fullWine1.7.55-v8",
|
|
};
|
|
|
|
export const getConfig = (dynamicConfig: Record<string, string>): string =>
|
|
[...Object.entries(configParams), ...Object.entries(dynamicConfig)]
|
|
.map(([key, value]) => `${key}=${value}`)
|
|
.join("&");
|