2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-07-07 20:45:51 +00:00

Windows build fixes

This commit is contained in:
Jack Andersen 2019-07-27 15:21:11 -10:00
parent 7dede77b39
commit bce7fd23c7
2 changed files with 2 additions and 2 deletions

View File

@ -200,7 +200,7 @@ void FileBrowser::okActivated(bool viaButton) {
if (!err && !S_ISDIR(theStat.st_mode)) {
m_confirmWindow.reset(
new MessageWindow(rootView().viewRes(), *this, MessageWindow::Type::ConfirmOkCancel,
vm.translate<locale::overwrite_confirm>(path),
vm.translate<locale::overwrite_confirm>(hecl::SystemUTF8Conv(path)),
[&, path](bool ok) {
if (ok) {
m_returnFunc(true, path);

View File

@ -637,7 +637,7 @@ FontTag FontCache::prepCustomFont(std::string_view name, FT_Face face, FCharFilt
/* Nada, build and cache now */
athena::io::FileWriter w(cachePath);
if (w.hasError())
Log.report(logvisor::Fatal, fmt("unable to open '{}' for writing"), cachePath);
Log.report(logvisor::Fatal, fmt(_SYS_STR("unable to open '{}' for writing")), cachePath);
w.writeUint32Big('FONT');
m_cachedAtlases.emplace(tag, std::make_unique<FontAtlas>(face, dpi, subpixel, filter, w));
return tag;