mangoapp: notifier

This commit is contained in:
FlightlessMango 2022-01-05 06:12:41 +01:00
parent 4cd2ba539f
commit b0fc3d348a

View File

@ -28,6 +28,7 @@ overlay_params params {};
static ImVec2 window_size; static ImVec2 window_size;
static uint32_t vendorID; static uint32_t vendorID;
static std::string deviceName; static std::string deviceName;
static notify_thread notifier;
struct mangoapp_msg_header { struct mangoapp_msg_header {
long msg_type; // Message queue ID, never change long msg_type; // Message queue ID, never change
@ -121,6 +122,8 @@ int main(int, char**)
create_fonts(params, sw_stats.font1, sw_stats.font_text); create_fonts(params, sw_stats.font1, sw_stats.font_text);
HUDElements.convert_colors(params); HUDElements.convert_colors(params);
init_cpu_stats(params); init_cpu_stats(params);
notifier.params = &params;
start_notifier(notifier);
deviceName = (char*)glGetString(GL_RENDERER); deviceName = (char*)glGetString(GL_RENDERER);
sw_stats.deviceName = deviceName; sw_stats.deviceName = deviceName;
if (deviceName.find("Radeon") != std::string::npos if (deviceName.find("Radeon") != std::string::npos