mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
General: Convert PanicAlerts over to fmt equivalent
Converts lingering panic alert calls over to the fmt-capable ones.
This commit is contained in:
parent
5abae61a8c
commit
139d4fc76e
45 changed files with 206 additions and 195 deletions
|
@ -145,7 +145,7 @@ u8* MemArena::FindMemoryBase()
|
|||
u8* base = static_cast<u8*>(VirtualAlloc(nullptr, memory_size, MEM_RESERVE, PAGE_READWRITE));
|
||||
if (!base)
|
||||
{
|
||||
PanicAlert("Failed to map enough memory space: %s", GetLastErrorString().c_str());
|
||||
PanicAlertFmt("Failed to map enough memory space: {}", GetLastErrorString());
|
||||
return nullptr;
|
||||
}
|
||||
VirtualFree(base, 0, MEM_RELEASE);
|
||||
|
@ -162,7 +162,7 @@ u8* MemArena::FindMemoryBase()
|
|||
void* base = mmap(nullptr, memory_size, PROT_NONE, flags, -1, 0);
|
||||
if (base == MAP_FAILED)
|
||||
{
|
||||
PanicAlert("Failed to map enough memory space: %s", LastStrerrorString().c_str());
|
||||
PanicAlertFmt("Failed to map enough memory space: {}", LastStrerrorString());
|
||||
return nullptr;
|
||||
}
|
||||
munmap(base, memory_size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue