Skip to content

Commit

Permalink
YAYA Tc569-13のREADFMOの第2引数追加に対応
Browse files Browse the repository at this point in the history
そもそもREADFMOがまともに動いていなかったので複数戻り値とした
  • Loading branch information
nikolat committed May 22, 2022
1 parent 74892e1 commit 24c9c02
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions yaya_saori/builtins.aym
Original file line number Diff line number Diff line change
Expand Up @@ -1377,11 +1377,20 @@ processglobaldefine

readfmo
{
if REQ.ARGS[0]=="" {
RES.RESULT = READFMO
_r = ''
if REQ.ARGS[0] == '' {
_r = READFMO()
}
elseif REQ.ARGS[1] == '' {
_r = READFMO(REQ.ARGS[0])
}
else {
RES.RESULT = READFMO(REQ.ARGS[0])
_r = READFMO(REQ.ARGS[0], REQ.ARGS[1])
}
_a = SPLIT(_r, CHR(0xd)+CHR(0xa))
RES.RESULT = ARRAYSIZE(_a)
for _i = 0; _i < ARRAYSIZE(_a); _i++ {
LETTONAME("RES.VALUE%(_i)", _a[_i])
}
}

Expand Down
Binary file modified yaya_saori/yaya.dll
Binary file not shown.

0 comments on commit 24c9c02

Please sign in to comment.