mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 23:07:42 +00:00
Massive fmtlib refactor
This commit is contained in:
@@ -5,7 +5,7 @@ static logvisor::Module Log("urde::CPakFile");
|
||||
|
||||
CPakFile::CPakFile(std::string_view filename, bool buildDepList, bool worldPak) : CDvdFile(filename) {
|
||||
if (!CDvdFile::operator bool())
|
||||
Log.report(logvisor::Fatal, "%s: Unable to open", GetPath().data());
|
||||
Log.report(logvisor::Fatal, fmt("{}: Unable to open"), GetPath());
|
||||
x28_24_buildDepList = buildDepList;
|
||||
x28_24_buildDepList = true; // Always do this so URDE can rapidly pre-warm shaders
|
||||
x28_26_worldPak = worldPak;
|
||||
@@ -62,8 +62,9 @@ void CPakFile::InitialHeaderLoad() {
|
||||
x30_dvdReq.reset();
|
||||
u32 version = r.readUint32Big();
|
||||
if (version != 0x80030005) {
|
||||
Log.report(logvisor::Fatal, "%s: Incompatible pak file version -- Current version is %x, you're using %x",
|
||||
GetPath().data(), 0x80030005, version);
|
||||
Log.report(logvisor::Fatal,
|
||||
fmt("{}: Incompatible pak file version -- Current version is {:08X}, you're using {:08X}"),
|
||||
GetPath(), 0x80030005, version);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user