MRI: add $RGSS_SCRIPTS
This commit is contained in:
parent
96d2707edb
commit
804a697c03
|
@ -210,6 +210,8 @@ static void runRMXPScripts()
|
|||
return;
|
||||
}
|
||||
|
||||
rb_gv_set("$RGSS_SCRIPTS", scriptArray);
|
||||
|
||||
long scriptCount = RARRAY_LEN(scriptArray);
|
||||
|
||||
std::string decodeBuffer;
|
||||
|
@ -259,6 +261,8 @@ static void runRMXPScripts()
|
|||
break;
|
||||
}
|
||||
|
||||
rb_ary_store(script, 3, rb_str_new_cstr(decodeBuffer.c_str()));
|
||||
|
||||
/* Store encoding header + the decoded script
|
||||
* in 'sc.decData' */
|
||||
std::string decData = "#encoding:utf-8\n";
|
||||
|
|
Loading…
Reference in New Issue