mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-15 11:18:36 +12:00
39 lines
748 B
C++
39 lines
748 B
C++
#include "stdafx.h"
|
|
#include "overlays.h"
|
|
#include "../GSRender.h"
|
|
|
|
namespace rsx
|
|
{
|
|
namespace overlays
|
|
{
|
|
//Singleton instance declaration
|
|
fontmgr* fontmgr::m_instance = nullptr;
|
|
|
|
void user_interface::close()
|
|
{
|
|
//Force unload
|
|
exit = true;
|
|
if (auto manager = fxm::get<display_manager>())
|
|
{
|
|
if (auto dlg = manager->get<rsx::overlays::message_dialog>())
|
|
{
|
|
if (dlg->progress_bar_count())
|
|
Emu.GetCallbacks().handle_taskbar_progress(0, 0);
|
|
}
|
|
|
|
manager->remove(uid);
|
|
}
|
|
|
|
if (on_close)
|
|
on_close(return_code);
|
|
}
|
|
|
|
void overlay::refresh()
|
|
{
|
|
if (auto rsxthr = rsx::get_current_renderer())
|
|
{
|
|
rsxthr->native_ui_flip_request.store(true);
|
|
}
|
|
}
|
|
} // namespace overlays
|
|
} // namespace rsx
|