MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / getExecutable

Function getExecutable

project/emscripten/boxedwine-shell.js:261–275  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

259 }
260
261 function getExecutable() {
262 var prog = getParameter("p");
263 if(!allowParameterOverride() || prog===""){
264 console.log("not setting program to execute");
265 }else{
266 if(prog.startsWith("%22") && prog.endsWith("%22")){
267 prog = prog.substring(3, prog.length - 3);
268 }else if(prog.startsWith('%27') && prog.endsWith('%27')){
269 prog = prog.substring(3, prog.length - 3);
270 }
271 prog = prog.split('%20').join(' ');
272 console.log("setting program to execute to: "+prog);
273 }
274 return prog;
275 }
276 function getAppZipFile(param) {
277
278 var filename = getParameter(param);

Callers 1

setConfigurationFunction · 0.85

Calls 7

getParameterFunction · 0.85
allowParameterOverrideFunction · 0.85
logMethod · 0.80
startsWithMethod · 0.80
endsWithMethod · 0.80
joinMethod · 0.80
splitMethod · 0.45

Tested by

no test coverage detected