mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-09-10 03:52:55 +02:00
Normalize paths returned from MKXP.data_directory
This commit is contained in:
parent
a5d48e16f2
commit
ae405c26fb
1 changed files with 5 additions and 1 deletions
|
@ -226,8 +226,12 @@ RB_METHOD(mkxpDataDirectory)
|
|||
|
||||
const std::string &path = shState->config().customDataPath;
|
||||
const char *s = path.empty() ? "." : path.c_str();
|
||||
|
||||
char *s_nml = shState->fileSystem().normalize(s, 1, 1);
|
||||
VALUE ret = rb_str_new_cstr(s_nml);
|
||||
delete s_nml;
|
||||
|
||||
return rb_str_new_cstr(s);
|
||||
return ret;
|
||||
}
|
||||
|
||||
RB_METHOD(mkxpPuts)
|
||||
|
|
Loading…
Add table
Reference in a new issue