mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
Merge pull request #1497 from lioncash/host
Host: Kill off Host_SysMessage
This commit is contained in:
commit
f6b4b4dbba
@ -10,7 +10,7 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#ifdef ANDROID
|
#ifdef ANDROID
|
||||||
#include "Core/Host.h"
|
#include <android/log.h>
|
||||||
#endif
|
#endif
|
||||||
#include "Common/FileUtil.h"
|
#include "Common/FileUtil.h"
|
||||||
#include "Common/IniFile.h"
|
#include "Common/IniFile.h"
|
||||||
@ -141,7 +141,7 @@ void LogManager::Log(LogTypes::LOG_LEVELS level, LogTypes::LOG_TYPE type,
|
|||||||
LogTypes::LOG_LEVEL_TO_CHAR[(int)level],
|
LogTypes::LOG_LEVEL_TO_CHAR[(int)level],
|
||||||
log->GetShortName().c_str(), temp);
|
log->GetShortName().c_str(), temp);
|
||||||
#ifdef ANDROID
|
#ifdef ANDROID
|
||||||
Host_SysMessage(msg.c_str());
|
__android_log_write(ANDROID_LOG_INFO, "Dolphinemu", msg.c_str());
|
||||||
#endif
|
#endif
|
||||||
log->Trigger(level, msg.c_str());
|
log->Trigger(level, msg.c_str());
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,6 @@ void Host_RequestRenderWindowSize(int width, int height);
|
|||||||
void Host_RequestFullscreen(bool enable_fullscreen);
|
void Host_RequestFullscreen(bool enable_fullscreen);
|
||||||
void Host_SetStartupDebuggingParameters();
|
void Host_SetStartupDebuggingParameters();
|
||||||
void Host_SetWiiMoteConnectionState(int _State);
|
void Host_SetWiiMoteConnectionState(int _State);
|
||||||
void Host_SysMessage(const char *fmt, ...);
|
|
||||||
void Host_UpdateDisasmDialog();
|
void Host_UpdateDisasmDialog();
|
||||||
void Host_UpdateMainFrame();
|
void Host_UpdateMainFrame();
|
||||||
void Host_UpdateTitle(const std::string& title);
|
void Host_UpdateTitle(const std::string& title);
|
||||||
|
@ -13,20 +13,6 @@
|
|||||||
|
|
||||||
#include "DolphinQt/MainWindow.h"
|
#include "DolphinQt/MainWindow.h"
|
||||||
|
|
||||||
void Host_SysMessage(const char *fmt, ...)
|
|
||||||
{
|
|
||||||
va_list list;
|
|
||||||
char msg[512];
|
|
||||||
|
|
||||||
va_start(list, fmt);
|
|
||||||
vsprintf(msg, fmt, list);
|
|
||||||
va_end(list);
|
|
||||||
|
|
||||||
if (msg[strlen(msg)-1] == '\n')
|
|
||||||
msg[strlen(msg)-1] = '\0';
|
|
||||||
PanicAlert("%s", msg);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Host_Message(int id)
|
void Host_Message(int id)
|
||||||
{
|
{
|
||||||
// TODO
|
// TODO
|
||||||
|
@ -435,20 +435,6 @@ void DolphinApp::OnFatalException()
|
|||||||
// ------------
|
// ------------
|
||||||
// Talk to GUI
|
// Talk to GUI
|
||||||
|
|
||||||
void Host_SysMessage(const char *fmt, ...)
|
|
||||||
{
|
|
||||||
va_list list;
|
|
||||||
char msg[512];
|
|
||||||
|
|
||||||
va_start(list, fmt);
|
|
||||||
vsprintf(msg, fmt, list);
|
|
||||||
va_end(list);
|
|
||||||
|
|
||||||
if (msg[strlen(msg)-1] == '\n') msg[strlen(msg)-1] = 0;
|
|
||||||
//wxMessageBox(StrToWxStr(msg));
|
|
||||||
PanicAlert("%s", msg);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool wxMsgAlert(const char* caption, const char* text, bool yes_no, int /*Style*/)
|
bool wxMsgAlert(const char* caption, const char* text, bool yes_no, int /*Style*/)
|
||||||
{
|
{
|
||||||
#ifdef __WXGTK__
|
#ifdef __WXGTK__
|
||||||
|
@ -106,15 +106,6 @@ bool Host_RendererHasFocus()
|
|||||||
|
|
||||||
void Host_ConnectWiimote(int wm_idx, bool connect) {}
|
void Host_ConnectWiimote(int wm_idx, bool connect) {}
|
||||||
|
|
||||||
void Host_SysMessage(const char *fmt, ...)
|
|
||||||
{
|
|
||||||
va_list args;
|
|
||||||
|
|
||||||
va_start(args, fmt);
|
|
||||||
__android_log_vprint(ANDROID_LOG_INFO, DOLPHIN_TAG, fmt, args);
|
|
||||||
va_end(args);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Host_SetWiiMoteConnectionState(int _State) {}
|
void Host_SetWiiMoteConnectionState(int _State) {}
|
||||||
|
|
||||||
void Host_ShowVideoConfig(void*, const std::string&, const std::string&) {}
|
void Host_ShowVideoConfig(void*, const std::string&, const std::string&) {}
|
||||||
|
@ -104,25 +104,6 @@ bool Host_RendererHasFocus()
|
|||||||
|
|
||||||
void Host_ConnectWiimote(int wm_idx, bool connect) {}
|
void Host_ConnectWiimote(int wm_idx, bool connect) {}
|
||||||
|
|
||||||
void Host_SysMessage(const char *fmt, ...)
|
|
||||||
{
|
|
||||||
va_list list;
|
|
||||||
char msg[512];
|
|
||||||
|
|
||||||
va_start(list, fmt);
|
|
||||||
vsprintf(msg, fmt, list);
|
|
||||||
va_end(list);
|
|
||||||
|
|
||||||
size_t len = strlen(msg);
|
|
||||||
if (msg[len - 1] != '\n')
|
|
||||||
{
|
|
||||||
msg[len - 1] = '\n';
|
|
||||||
msg[len] = '\0';
|
|
||||||
}
|
|
||||||
|
|
||||||
fprintf(stderr, "%s", msg);
|
|
||||||
}
|
|
||||||
|
|
||||||
void Host_SetWiiMoteConnectionState(int _State) {}
|
void Host_SetWiiMoteConnectionState(int _State) {}
|
||||||
|
|
||||||
void Host_ShowVideoConfig(void*, const std::string&, const std::string&) {}
|
void Host_ShowVideoConfig(void*, const std::string&, const std::string&) {}
|
||||||
|
@ -89,7 +89,7 @@ static void InterpretDisplayListPreprocess(u32 address, u32 size)
|
|||||||
static void UnknownOpcode(u8 cmd_byte, void *buffer, bool preprocess)
|
static void UnknownOpcode(u8 cmd_byte, void *buffer, bool preprocess)
|
||||||
{
|
{
|
||||||
// TODO(Omega): Maybe dump FIFO to file on this error
|
// TODO(Omega): Maybe dump FIFO to file on this error
|
||||||
std::string temp = StringFromFormat(
|
PanicAlert(
|
||||||
"GFX FIFO: Unknown Opcode (0x%x @ %p, preprocessing=%s).\n"
|
"GFX FIFO: Unknown Opcode (0x%x @ %p, preprocessing=%s).\n"
|
||||||
"This means one of the following:\n"
|
"This means one of the following:\n"
|
||||||
"* The emulated GPU got desynced, disabling dual core can help\n"
|
"* The emulated GPU got desynced, disabling dual core can help\n"
|
||||||
@ -100,12 +100,11 @@ static void UnknownOpcode(u8 cmd_byte, void *buffer, bool preprocess)
|
|||||||
cmd_byte,
|
cmd_byte,
|
||||||
buffer,
|
buffer,
|
||||||
preprocess ? "yes" : "no");
|
preprocess ? "yes" : "no");
|
||||||
Host_SysMessage(temp.c_str());
|
|
||||||
INFO_LOG(VIDEO, "%s", temp.c_str());
|
|
||||||
{
|
{
|
||||||
SCPFifoStruct &fifo = CommandProcessor::fifo;
|
SCPFifoStruct &fifo = CommandProcessor::fifo;
|
||||||
|
|
||||||
std::string tmp = StringFromFormat(
|
PanicAlert(
|
||||||
"Illegal command %02x\n"
|
"Illegal command %02x\n"
|
||||||
"CPBase: 0x%08x\n"
|
"CPBase: 0x%08x\n"
|
||||||
"CPEnd: 0x%08x\n"
|
"CPEnd: 0x%08x\n"
|
||||||
@ -123,9 +122,6 @@ static void UnknownOpcode(u8 cmd_byte, void *buffer, bool preprocess)
|
|||||||
,fifo.CPWritePointer, fifo.CPReadPointer, fifo.CPBreakpoint, fifo.bFF_GPReadEnable ? "true" : "false"
|
,fifo.CPWritePointer, fifo.CPReadPointer, fifo.CPBreakpoint, fifo.bFF_GPReadEnable ? "true" : "false"
|
||||||
,fifo.bFF_BPEnable ? "true" : "false" ,fifo.bFF_BPInt ? "true" : "false"
|
,fifo.bFF_BPEnable ? "true" : "false" ,fifo.bFF_BPInt ? "true" : "false"
|
||||||
,fifo.bFF_Breakpoint ? "true" : "false");
|
,fifo.bFF_Breakpoint ? "true" : "false");
|
||||||
|
|
||||||
Host_SysMessage(tmp.c_str());
|
|
||||||
INFO_LOG(VIDEO, "%s", tmp.c_str());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -226,10 +226,9 @@ void VertexLoader::CompileVertexTranslator()
|
|||||||
|
|
||||||
if (pFunc == nullptr)
|
if (pFunc == nullptr)
|
||||||
{
|
{
|
||||||
Host_SysMessage(
|
PanicAlert("VertexLoader_Normal::GetFunction(%i %i %i %i) returned zero!",
|
||||||
StringFromFormat("VertexLoader_Normal::GetFunction(%i %i %i %i) returned zero!",
|
|
||||||
(u32)m_VtxDesc.Normal, m_VtxAttr.NormalFormat,
|
(u32)m_VtxDesc.Normal, m_VtxAttr.NormalFormat,
|
||||||
m_VtxAttr.NormalElements, m_VtxAttr.NormalIndex3).c_str());
|
m_VtxAttr.NormalElements, m_VtxAttr.NormalIndex3);
|
||||||
}
|
}
|
||||||
WriteCall(pFunc);
|
WriteCall(pFunc);
|
||||||
|
|
||||||
|
@ -24,7 +24,6 @@ void Host_SetStartupDebuggingParameters() {}
|
|||||||
bool Host_UIHasFocus() { return false; }
|
bool Host_UIHasFocus() { return false; }
|
||||||
bool Host_RendererHasFocus() { return false; }
|
bool Host_RendererHasFocus() { return false; }
|
||||||
void Host_ConnectWiimote(int, bool) {}
|
void Host_ConnectWiimote(int, bool) {}
|
||||||
void Host_SysMessage(const char*, ...) {}
|
|
||||||
void Host_SetWiiMoteConnectionState(int) {}
|
void Host_SetWiiMoteConnectionState(int) {}
|
||||||
void Host_ShowVideoConfig(void*, const std::string&, const std::string&) {}
|
void Host_ShowVideoConfig(void*, const std::string&, const std::string&) {}
|
||||||
cInterfaceBase* HostGL_CreateGLInterface() { return nullptr; }
|
cInterfaceBase* HostGL_CreateGLInterface() { return nullptr; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user