mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-31 22:00:10 +01:00
48 lines
1.1 KiB
C++
48 lines
1.1 KiB
C++
#include "stdafx.h"
|
|
#include "overlays.h"
|
|
#include "overlay_message.h"
|
|
#include "overlay_loading_icon.hpp"
|
|
|
|
namespace rsx
|
|
{
|
|
namespace overlays
|
|
{
|
|
static std::shared_ptr<loading_icon24> s_shader_loading_icon24;
|
|
static std::shared_ptr<loading_icon24> s_ppu_loading_icon24;
|
|
|
|
void show_shader_compile_notification()
|
|
{
|
|
if (!s_shader_loading_icon24)
|
|
{
|
|
// Creating the icon requires FS read, so it is important to cache it
|
|
s_shader_loading_icon24 = std::make_shared<loading_icon24>();
|
|
}
|
|
|
|
queue_message(
|
|
localized_string_id::RSX_OVERLAYS_COMPILING_SHADERS,
|
|
5'000'000,
|
|
{},
|
|
message_pin_location::bottom,
|
|
s_shader_loading_icon24,
|
|
true);
|
|
}
|
|
|
|
void show_ppu_compile_notification()
|
|
{
|
|
if (!s_ppu_loading_icon24)
|
|
{
|
|
// Creating the icon requires FS read, so it is important to cache it
|
|
s_ppu_loading_icon24 = std::make_shared<loading_icon24>();
|
|
}
|
|
|
|
queue_message(
|
|
localized_string_id::RSX_OVERLAYS_COMPILING_PPU_MODULES,
|
|
5'000'000,
|
|
{},
|
|
message_pin_location::bottom,
|
|
s_ppu_loading_icon24,
|
|
true);
|
|
}
|
|
}
|
|
}
|