mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +00:00
a
This commit is contained in:
parent
9fa0dbb601
commit
53b5f90f0a
1 changed files with 2 additions and 4 deletions
|
|
@ -498,11 +498,10 @@ static void mriBindingExecute(){
|
|||
/* Normally only a ruby executable would do a sysinit,
|
||||
* but not doing it will lead to crashes due to closed
|
||||
* stdio streams on some platforms (eg. Windows) */
|
||||
//JIT for performance
|
||||
int argc = 0;
|
||||
char **argv = 0;
|
||||
char options_argv1[] = "oneshot", options_argv2[] = "-evd", options_argv3[] = "--jit";
|
||||
char* options_argv[] = {options_argv1, options_argv2, options_argv3, NULL};
|
||||
char options_argv1[] = "oneshot", options_argv2[] = "-ev";
|
||||
char* options_argv[] = {options_argv1, options_argv2, NULL};
|
||||
ruby_sysinit(&argc, &argv);
|
||||
RUBY_INIT_STACK;
|
||||
ruby_init();
|
||||
|
|
@ -514,7 +513,6 @@ static void mriBindingExecute(){
|
|||
if (!conf.rubyLoadpaths.empty()){
|
||||
/* Setup custom load paths */
|
||||
VALUE lpaths = rb_gv_get("$:");
|
||||
|
||||
for (size_t i = 0; i < conf.rubyLoadpaths.size(); ++i){
|
||||
std::string &path = conf.rubyLoadpaths[i];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue