mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-18 20:05:23 +00:00
Update fmtlib
This commit is contained in:
@@ -16,7 +16,7 @@ void InitializeBadging(specter::ViewResources& viewRes) {
|
||||
|
||||
size_t fmt = r.readUint32Big();
|
||||
if (fmt != 16)
|
||||
Log.report(logvisor::Fatal, fmt("incorrect icon texture format"));
|
||||
Log.report(logvisor::Fatal, FMT_STRING("incorrect icon texture format"));
|
||||
size_t width = r.readUint16Big();
|
||||
size_t height = r.readUint16Big();
|
||||
size_t mips = r.readUint32Big();
|
||||
@@ -26,7 +26,7 @@ void InitializeBadging(specter::ViewResources& viewRes) {
|
||||
uLongf destSz = decompSz;
|
||||
size_t pos = r.position();
|
||||
if (uncompress(texels.get(), &destSz, URDE_BADGE + pos, URDE_BADGE_SZ - pos) != Z_OK)
|
||||
Log.report(logvisor::Fatal, fmt("unable to decompress badge"));
|
||||
Log.report(logvisor::Fatal, FMT_STRING("unable to decompress badge"));
|
||||
|
||||
viewRes.m_factory->commitTransaction([&](boo::IGraphicsDataFactory::Context& ctx) {
|
||||
specter::IconAtlas<1, 1> atlas;
|
||||
|
||||
Reference in New Issue
Block a user