mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-31 23:34:36 +00:00
(RMenu XUI) Start using some non-OOP functions
This commit is contained in:
parent
0127f5eadd
commit
b746d56e5c
@ -1316,14 +1316,19 @@ rgui_handle_t *rgui_init (void)
|
||||
}
|
||||
|
||||
/* Register font */
|
||||
hr = app.RegisterDefaultTypeface(L"Arial Unicode MS", L"file://game:/media/rarch.ttf" );
|
||||
TypefaceDescriptor typeface = {0};
|
||||
typeface.szTypeface = L"Arial Unicode MS";
|
||||
typeface.szLocator = L"file://game:/media/rarch.ttf";
|
||||
typeface.szReserved1 = NULL;
|
||||
|
||||
hr = XuiRegisterTypeface( &typeface, TRUE );
|
||||
if (hr != S_OK)
|
||||
{
|
||||
RARCH_ERR("Failed to register default typeface.\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
hr = app.LoadSkin( L"file://game:/media/rarch_scene_skin.xur");
|
||||
hr = XuiLoadVisualFromBinary( L"file://game:/media/rarch_scene_skin.xur", NULL);
|
||||
if (hr != S_OK)
|
||||
{
|
||||
RARCH_ERR("Failed to load skin.\n");
|
||||
|
Loading…
Reference in New Issue
Block a user