mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-09-10 12:02:53 +02:00
Remove redundant error text in MiniFFI, SDL's got this
This commit is contained in:
parent
ff2adfffe7
commit
4b48aa071c
1 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ MiniFFI_initialize(VALUE self, VALUE libname, VALUE func, VALUE imports, VALUE e
|
|||
|
||||
void *hlib = SDL_LoadObject(RSTRING_PTR(libname));
|
||||
if (!hlib)
|
||||
rb_raise(rb_eRuntimeError, "Failed to load library %s: %s", RSTRING_PTR(libname), SDL_GetError());
|
||||
rb_raise(rb_eRuntimeError, SDL_GetError());
|
||||
DATA_PTR(self) = hlib;
|
||||
|
||||
void *hfunc = SDL_LoadFunction(hlib, RSTRING_PTR(func));
|
||||
|
@ -51,7 +51,7 @@ MiniFFI_initialize(VALUE self, VALUE libname, VALUE func, VALUE imports, VALUE e
|
|||
}
|
||||
#endif
|
||||
if (!hfunc)
|
||||
rb_raise(rb_eRuntimeError, "Failed to find function %s(A) within %s: %s", RSTRING_PTR(func), RSTRING_PTR(libname), SDL_GetError());
|
||||
rb_raise(rb_eRuntimeError, SDL_GetError());
|
||||
|
||||
|
||||
rb_iv_set(self, "_func", OFFT2NUM((unsigned long)hfunc));
|
||||
|
|
Loading…
Add table
Reference in a new issue