mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-14 14:29:24 +00:00
(360) Use SSNES_ERR instead of OutputDebugString
This commit is contained in:
parent
a9ffab7854
commit
5181463606
13
360/menu.cpp
13
360/menu.cpp
@ -17,11 +17,15 @@
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <crtdefs.h>
|
||||
#include <tchar.h>
|
||||
#include <xtl.h>
|
||||
#include "xdk360_video.h"
|
||||
#include "menu.h"
|
||||
#include "shared.h"
|
||||
|
||||
#include "../general.h"
|
||||
|
||||
CSSNES app;
|
||||
HXUIOBJ hMainScene;
|
||||
uint32_t menu_is_running;
|
||||
@ -46,6 +50,7 @@ HRESULT CMyMainScene::OnInit(XUIMessageInit * pInitData, BOOL& bHandled)
|
||||
GetChildById(L"XuiBtnSettings", &m_settings);
|
||||
GetChildById(L"XuiBtnQuit", &m_quit);
|
||||
GetChildById(L"XuiTxtTitle", &m_title);
|
||||
m_title.SetText(L"SSNES 0.9.4.1");
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@ -79,7 +84,7 @@ int menu_init (void)
|
||||
|
||||
if (FAILED(hr))
|
||||
{
|
||||
OutputDebugString("Failed initializing XUI application.\n");
|
||||
SSNES_ERR("Failed initializing XUI application.\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
@ -87,20 +92,20 @@ int menu_init (void)
|
||||
hr = app.RegisterDefaultTypeface(L"Arial Unicode MS", L"file://game:/media/ssnes.ttf" );
|
||||
if (FAILED(hr))
|
||||
{
|
||||
OutputDebugString("Failed to register default typeface.\n");
|
||||
SSNES_ERR("Failed to register default typeface.\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
hr = app.LoadSkin( L"file://game:/media/ssnes_scene_skin.xur");
|
||||
if (FAILED(hr))
|
||||
{
|
||||
OutputDebugString("Failed to load skin.\n");
|
||||
SSNES_ERR("Failed to load skin.\n");
|
||||
}
|
||||
|
||||
hr = app.LoadFirstScene( L"file://game:/media/", L"ssnes_main.xur", NULL);
|
||||
if (FAILED(hr))
|
||||
{
|
||||
OutputDebugString("Failed to load first scene.\n");
|
||||
SSNES_ERR("Failed to load first scene.\n");
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user