Use PanicAlert instead of PanicAlertT when appropriate

It means less work for the translators... But I'm not too sure
about this, because most of these have already been translated.
This commit is contained in:
JosJuice 2015-06-04 13:23:58 +02:00
parent 95a2abc1ce
commit 030d467d62
10 changed files with 16 additions and 16 deletions

View File

@ -78,7 +78,7 @@ StreamingVoiceContext::StreamingVoiceContext(IXAudio2 *pXAudio2, CMixer *pMixer,
HRESULT hr;
if (FAILED(hr = pXAudio2->CreateSourceVoice(&m_source_voice, &wfx.Format, XAUDIO2_VOICE_NOSRC, 1.0f, this)))
{
PanicAlertT("XAudio2 CreateSourceVoice failed: %#X", hr);
PanicAlert("XAudio2 CreateSourceVoice failed: %#X", hr);
return;
}
@ -177,7 +177,7 @@ bool XAudio2::Start()
IXAudio2* xaudptr;
if (FAILED(hr = ((XAudio2Create_t)PXAudio2Create)(&xaudptr, 0, XAUDIO2_DEFAULT_PROCESSOR)))
{
PanicAlertT("XAudio2 init failed: %#X", hr);
PanicAlert("XAudio2 init failed: %#X", hr);
Stop();
return false;
}
@ -187,7 +187,7 @@ bool XAudio2::Start()
// XAUDIO2_DEFAULT_CHANNELS instead of 2 for expansion?
if (FAILED(hr = m_xaudio2->CreateMasteringVoice(&m_mastering_voice, 2, m_mixer->GetSampleRate())))
{
PanicAlertT("XAudio2 master voice creation failed: %#X", hr);
PanicAlert("XAudio2 master voice creation failed: %#X", hr);
Stop();
return false;
}

View File

@ -78,7 +78,7 @@ StreamingVoiceContext2_7::StreamingVoiceContext2_7(IXAudio2 *pXAudio2, CMixer *p
HRESULT hr;
if (FAILED(hr = pXAudio2->CreateSourceVoice(&m_source_voice, &wfx.Format, XAUDIO2_VOICE_NOSRC, 1.0f, this)))
{
PanicAlertT("XAudio2_7 CreateSourceVoice failed: %#X", hr);
PanicAlert("XAudio2_7 CreateSourceVoice failed: %#X", hr);
return;
}
@ -165,7 +165,7 @@ bool XAudio2_7::Start()
IXAudio2* xaudptr;
if (FAILED(hr = XAudio2Create(&xaudptr, 0, XAUDIO2_DEFAULT_PROCESSOR)))
{
PanicAlertT("XAudio2_7 init failed: %#X", hr);
PanicAlert("XAudio2_7 init failed: %#X", hr);
Stop();
return false;
}
@ -175,7 +175,7 @@ bool XAudio2_7::Start()
// XAUDIO2_DEFAULT_CHANNELS instead of 2 for expansion?
if (FAILED(hr = m_xaudio2->CreateMasteringVoice(&m_mastering_voice, 2, m_mixer->GetSampleRate())))
{
PanicAlertT("XAudio2_7 master voice creation failed: %#X", hr);
PanicAlert("XAudio2_7 master voice creation failed: %#X", hr);
Stop();
return false;
}

View File

@ -614,7 +614,7 @@ void SetState(EState _State)
Wiimote::Resume();
break;
default:
PanicAlertT("Invalid state");
PanicAlert("Invalid state");
break;
}
}

View File

@ -128,7 +128,7 @@ int RegisterEvent(const std::string& name, TimedCallback callback)
void UnregisterAllEvents()
{
if (first)
PanicAlertT("Cannot unregister events with events pending");
PanicAlert("Cannot unregister events with events pending");
event_types.clear();
}

View File

@ -332,7 +332,7 @@ static void FinishExecuteReadCommand(u64 userdata, int cyclesLate)
{
if (!current_read_command.is_valid)
{
PanicAlertT("DVDInterface tried to execute non-existing command");
PanicAlert("DVDInterface: There is no command to execute!");
}
else
{

View File

@ -115,7 +115,7 @@ void CWII_IPC_HLE_Device_di::FinishIOCtl(DVDInterface::DIInterruptType interrupt
{
if (m_commands_to_execute.empty())
{
PanicAlertT("WII_IPC_HLE_Device_DI tried to reply to non-existing command");
PanicAlert("WII_IPC_HLE_Device_DI: There is no command to execute!");
return;
}

View File

@ -143,7 +143,7 @@ File::IOFile CWII_IPC_HLE_Device_FileIO::OpenFile()
break;
default:
PanicAlertT("FileIO: Unknown open mode : 0x%02x", m_Mode);
PanicAlert("FileIO: Unknown open mode : 0x%02x", m_Mode);
break;
}

View File

@ -427,7 +427,7 @@ IPCCommandResult CWII_IPC_HLE_Device_es::IOCtlV(u32 _CommandAddress)
}
rContent.m_Position += Size;
} else {
PanicAlertT("IOCTL_ES_READCONTENT - bad destination");
PanicAlert("IOCTL_ES_READCONTENT - bad destination");
}
}

View File

@ -100,7 +100,7 @@ static void CheckKR(const char* name, kern_return_t kr)
{
if (kr)
{
PanicAlertT("%s failed: kr=%x", name, kr);
PanicAlert("%s failed: kr=%x", name, kr);
}
}
@ -153,13 +153,13 @@ static void ExceptionThread(mach_port_t port)
if (msg_in.Head.msgh_id != 2406)
{
PanicAlertT("unknown message received");
PanicAlert("unknown message received");
return;
}
if (msg_in.flavor != x86_THREAD_STATE64)
{
PanicAlertT("unknown flavor %d (expected %d)", msg_in.flavor, x86_THREAD_STATE64);
PanicAlert("unknown flavor %d (expected %d)", msg_in.flavor, x86_THREAD_STATE64);
return;
}

View File

@ -888,7 +888,7 @@ static void GenerateDSIException(u32 effectiveAddress, bool write)
// DSI exceptions are only supported in MMU mode.
if (!SConfig::GetInstance().m_LocalCoreStartupParameter.bMMU)
{
PanicAlertT("Invalid %s to 0x%08x, PC = 0x%08x ", write ? "Write to" : "Read from", effectiveAddress, PC);
PanicAlert("Invalid %s to 0x%08x, PC = 0x%08x ", write ? "Write to" : "Read from", effectiveAddress, PC);
return;
}