mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
Create ui_companion_driver_get_application_ptr
This commit is contained in:
parent
4dded0c76b
commit
c1a321015a
2 changed files with 10 additions and 0 deletions
|
@ -177,3 +177,11 @@ const ui_window_t *ui_companion_driver_get_window_ptr(void)
|
|||
return NULL;
|
||||
return ui->window;
|
||||
}
|
||||
|
||||
const ui_application_t *ui_companion_driver_get_application_ptr(void)
|
||||
{
|
||||
const ui_companion_driver_t *ui = ui_companion_get_ptr();
|
||||
if (!ui)
|
||||
return NULL;
|
||||
return ui->application;
|
||||
}
|
||||
|
|
|
@ -122,6 +122,8 @@ void ui_companion_driver_free(void);
|
|||
|
||||
const ui_window_t *ui_companion_driver_get_window_ptr(void);
|
||||
|
||||
const ui_application_t *ui_companion_driver_get_application_ptr(void);
|
||||
|
||||
RETRO_END_DECLS
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue