Use start_with? over include?

This commit is contained in:
Inori 2019-08-06 11:42:15 -04:00 committed by Inori
parent b1a58e6f60
commit 13bbe8eb44

View file

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