From e4558c9dfbcf342b2d5591753fc7e1bedff41349 Mon Sep 17 00:00:00 2001 From: Jonas Kulla Date: Thu, 9 Jul 2015 12:58:01 +0200 Subject: [PATCH] Use FS::openReadRaw() where ext supplementing makes no sense Specifically, in places where the full filename is always supplied, eg. when reading .rxdata type files. --- binding-mri/filesystem-binding.cpp | 2 +- binding-mruby/binding-mruby.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/binding-mri/filesystem-binding.cpp b/binding-mri/filesystem-binding.cpp index 17cf50de3..4bc5e03e5 100644 --- a/binding-mri/filesystem-binding.cpp +++ b/binding-mri/filesystem-binding.cpp @@ -46,7 +46,7 @@ fileIntForPath(const char *path, bool rubyExc) try { - shState->fileSystem().openRead(*ops, path); + shState->fileSystem().openReadRaw(*ops, path); } catch (const Exception &e) { diff --git a/binding-mruby/binding-mruby.cpp b/binding-mruby/binding-mruby.cpp index f895de367..867d2d677 100644 --- a/binding-mruby/binding-mruby.cpp +++ b/binding-mruby/binding-mruby.cpp @@ -266,7 +266,7 @@ runRMXPScripts(mrb_state *mrb, mrbc_context *ctx) mrb_state *scriptMrb = mrb_open(); SDL_RWops ops; - shState->fileSystem().openRead(ops, scriptPack.c_str()); + shState->fileSystem().openReadRaw(ops, scriptPack.c_str()); mrb_value scriptArray = mrb_nil_value(); std::string readError;