mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-04 05:55:31 +02:00
Typos, small corrections
This commit is contained in:
parent
015cdc3a97
commit
a2c38ba281
3 changed files with 3 additions and 3 deletions
|
@ -102,7 +102,7 @@ If a requested font is not found, no error is generated. Instead, a built-in fon
|
|||
|
||||
Win32API exists in mkxp-z, objectively functioning nearly the same as before for better or worse. The third and fourth arguments are now optional (if you just want a function that takes no arguments and returns nothing, for instance), and Win32API objects will yield themselves to any blocks given to `initialize`.
|
||||
|
||||
However, the Win32API class is also avaiable when built for Linux and macOS, under the name `MiniFFI` instead (Win32API is just an extra name for it in Windows). It will only load shared libraries built for your platform.
|
||||
However, the Win32API class is also available when built for Linux and macOS, under the name `MiniFFI` instead (Win32API is just an extra name for it in Windows). It will only load shared libraries built for your platform.
|
||||
|
||||
Being simple as it is, it remains mostly as the lazy option/last resort if you can't/don't want to build MKXP yourself.
|
||||
|
||||
|
|
|
@ -393,8 +393,7 @@ rb_str_catf(VALUE obj, const char *fmt, ...)
|
|||
static inline VALUE
|
||||
rb_file_open_str(VALUE filename, const char *mode)
|
||||
{
|
||||
VALUE fileobj = rb_const_get(rb_cObject, rb_intern("File"));
|
||||
return rb_funcall(fileobj, rb_intern("open"), 2, filename, rb_str_new2(mode));
|
||||
return rb_funcall(rb_cFile, rb_intern("open"), 2, filename, rb_str_new2(mode));
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
@ -732,6 +732,7 @@ char* FileSystem::normalize(const char *pathname, bool preferred, bool absolute)
|
|||
}
|
||||
|
||||
cwk_path_normalize((path_abs) ? path_abs : (char*)pathname, path_nml, 512);
|
||||
if (path_abs) delete path_abs;
|
||||
Debug() << pathname << ":" << path_nml;
|
||||
return path_nml;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue