MRI: rewrite script eval (was: Question about $0) #24

Merged
cremno merged 7 commits from mri-rewrite-script-eval into master 2014-04-12 09:54:13 +00:00
1 changed files with 4 additions and 0 deletions
Showing only changes of commit 804a697c03 - Show all commits

View File

@ -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";