Update for latest mruby, emscripten

This commit is contained in:
Varun Patil 2019-05-07 22:35:40 +05:30
parent bd75100d24
commit 0dbe2008af
9 changed files with 2728 additions and 3153 deletions

View file

@ -265,6 +265,11 @@ void __attribute__ ((optnone)) main_update_loop() {
#ifdef __EMSCRIPTEN__
if (static_mrb->exc) {
printf("Execution Errored\n");
mrb_value s = mrb_funcall(static_mrb, mrb_obj_value(static_mrb->exc), "inspect", 0);
if (mrb_string_p(s)) {
printf("%s", mrb_str_to_cstr(static_mrb, s));
printf("\n");
}
mrb_close(static_scriptmrb);
shState->texPool().disable();
mrb_close(static_mrb);

View file

@ -23,6 +23,7 @@
#include "binding-util.h"
#include "binding-types.h"
#include "serializable-binding.h"
#include <iostream>
#define ATTR_RW(Type, Attr, arg_type, mrb_val, arg_t_s) \
MRB_METHOD(Type##Get##Attr) \

File diff suppressed because it is too large Load diff

View file

@ -38,4 +38,5 @@ bool SDL_rw_file_helper::write(char * data) {
}
SDL_RWclose(rw);
}
return false;
}

BIN
binding-mruby/rpg.mrb Normal file

Binary file not shown.