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:
parent
7dede77b39
commit
bce7fd23c7
@ -200,7 +200,7 @@ void FileBrowser::okActivated(bool viaButton) {
|
|||||||
if (!err && !S_ISDIR(theStat.st_mode)) {
|
if (!err && !S_ISDIR(theStat.st_mode)) {
|
||||||
m_confirmWindow.reset(
|
m_confirmWindow.reset(
|
||||||
new MessageWindow(rootView().viewRes(), *this, MessageWindow::Type::ConfirmOkCancel,
|
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) {
|
[&, path](bool ok) {
|
||||||
if (ok) {
|
if (ok) {
|
||||||
m_returnFunc(true, path);
|
m_returnFunc(true, path);
|
||||||
|
@ -637,7 +637,7 @@ FontTag FontCache::prepCustomFont(std::string_view name, FT_Face face, FCharFilt
|
|||||||
/* Nada, build and cache now */
|
/* Nada, build and cache now */
|
||||||
athena::io::FileWriter w(cachePath);
|
athena::io::FileWriter w(cachePath);
|
||||||
if (w.hasError())
|
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');
|
w.writeUint32Big('FONT');
|
||||||
m_cachedAtlases.emplace(tag, std::make_unique<FontAtlas>(face, dpi, subpixel, filter, w));
|
m_cachedAtlases.emplace(tag, std::make_unique<FontAtlas>(face, dpi, subpixel, filter, w));
|
||||||
return tag;
|
return tag;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user