Typos, small corrections

This commit is contained in:
Inori 2019-08-19 13:11:19 -04:00
parent 015cdc3a97
commit a2c38ba281
3 changed files with 3 additions and 3 deletions

View file

@ -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.

View file

@ -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

View file

@ -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;
}