mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-04 14:05:32 +02:00
Use start_with?
over include?
This commit is contained in:
parent
b1a58e6f60
commit
13bbe8eb44
1 changed files with 2 additions and 2 deletions
|
@ -178,9 +178,9 @@ RB_METHOD(kernelLoadData)
|
|||
// until this can be fixed let's just not open Graphics
|
||||
// files from archives
|
||||
VALUE isGraphicsFile = rb_funcall(filename,
|
||||
rb_intern("include?"),
|
||||
rb_intern("start_with?"),
|
||||
1,
|
||||
rb_str_new2("Graphics/"));
|
||||
rb_str_new2("Graphics"));
|
||||
|
||||
if (isGraphicsFile == Qtrue)
|
||||
return rb_file_open_str(filename, "rb");
|
||||
|
|
Loading…
Add table
Reference in a new issue