Skip to content

Commit 7dddb29

Browse files
authored
Merge pull request #170 from easycoder/dev
Fix path problem
2 parents b401e88 + 1671f88 commit 7dddb29

File tree

3 files changed

+33
-34
lines changed

3 files changed

+33
-34
lines changed

dist/plugins/iwsy.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const EasyCoder_IWSY = {
3030
}
3131
break;
3232
case `init`:
33-
const cdn = compiler.nextValue();
33+
const cdn = compiler.getNextValue();
3434
compiler.addCommand({
3535
domain: `iwsy`,
3636
keyword: `iwsy`,
@@ -60,16 +60,16 @@ const EasyCoder_IWSY = {
6060
return true;
6161
}
6262
return false;
63-
case `path`:
64-
const path = compiler.getNextValue();
65-
compiler.addCommand({
66-
domain: `iwsy`,
67-
keyword: `iwsy`,
68-
lino,
69-
action,
70-
path
71-
});
72-
return true;
63+
// case `path`:
64+
// const path = compiler.getNextValue();
65+
// compiler.addCommand({
66+
// domain: `iwsy`,
67+
// keyword: `iwsy`,
68+
// lino,
69+
// action,
70+
// path
71+
// });
72+
// return true;
7373
case `script`:
7474
const script = compiler.getNextValue();
7575
compiler.addCommand({
@@ -193,11 +193,11 @@ const EasyCoder_IWSY = {
193193
}
194194
program.iwsyFunctions = IWSY(player, script);
195195
break;
196-
case `path`:
197-
if (program.iwsyFunctions) {
198-
program.iwsyFunctions.setPath(program.getValue(command.path));
199-
}
200-
break;
196+
// case `path`:
197+
// if (program.iwsyFunctions) {
198+
// program.iwsyFunctions.setPath(program.getValue(command.path));
199+
// }
200+
// break;
201201
case `script`:
202202
script = program.getValue(command.script);
203203
try {

iwsy/iwsy.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,7 @@ const IWSY = (playerElement, scriptObject) => {
988988
script.runMode = runMode;
989989
doStep(script.steps[1]);
990990
} else {
991-
fetch(`${script.path}${step.script}?v=${Date.now()}`)
991+
fetch(`${step.path}${step.script}?v=${Date.now()}`)
992992
.then(response => {
993993
if (response.status >= 400) {
994994
throw Error(`Unable to load ${step.script}: ${response.status}`);
@@ -1267,7 +1267,6 @@ const IWSY = (playerElement, scriptObject) => {
12671267
return {
12681268
getScript,
12691269
setScript,
1270-
setPath,
12711270
gotoStep,
12721271
block,
12731272
run,

js/plugins/iwsy.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const EasyCoder_IWSY = {
3030
}
3131
break;
3232
case `init`:
33-
const cdn = compiler.nextValue();
33+
const cdn = compiler.getNextValue();
3434
compiler.addCommand({
3535
domain: `iwsy`,
3636
keyword: `iwsy`,
@@ -60,16 +60,16 @@ const EasyCoder_IWSY = {
6060
return true;
6161
}
6262
return false;
63-
case `path`:
64-
const path = compiler.getNextValue();
65-
compiler.addCommand({
66-
domain: `iwsy`,
67-
keyword: `iwsy`,
68-
lino,
69-
action,
70-
path
71-
});
72-
return true;
63+
// case `path`:
64+
// const path = compiler.getNextValue();
65+
// compiler.addCommand({
66+
// domain: `iwsy`,
67+
// keyword: `iwsy`,
68+
// lino,
69+
// action,
70+
// path
71+
// });
72+
// return true;
7373
case `script`:
7474
const script = compiler.getNextValue();
7575
compiler.addCommand({
@@ -193,11 +193,11 @@ const EasyCoder_IWSY = {
193193
}
194194
program.iwsyFunctions = IWSY(player, script);
195195
break;
196-
case `path`:
197-
if (program.iwsyFunctions) {
198-
program.iwsyFunctions.setPath(program.getValue(command.path));
199-
}
200-
break;
196+
// case `path`:
197+
// if (program.iwsyFunctions) {
198+
// program.iwsyFunctions.setPath(program.getValue(command.path));
199+
// }
200+
// break;
201201
case `script`:
202202
script = program.getValue(command.script);
203203
try {

0 commit comments

Comments
 (0)