mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 15:19:42 -06:00
Merge pull request #13053 from Dentomologist/texture_dumping_show_osd_on_startup_and_toggle
Texture Dumping: Show OSD message on startup and when toggled
This commit is contained in:
@ -469,7 +469,14 @@ void HotkeyScheduler::Run()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (IsHotkey(HK_TOGGLE_DUMPTEXTURES))
|
if (IsHotkey(HK_TOGGLE_DUMPTEXTURES))
|
||||||
Config::SetCurrent(Config::GFX_DUMP_TEXTURES, !Config::Get(Config::GFX_DUMP_TEXTURES));
|
{
|
||||||
|
const bool enable_dumping = !Config::Get(Config::GFX_DUMP_TEXTURES);
|
||||||
|
Config::SetCurrent(Config::GFX_DUMP_TEXTURES, enable_dumping);
|
||||||
|
OSD::AddMessage(
|
||||||
|
fmt::format("Texture Dumping {}",
|
||||||
|
enable_dumping ? "enabled. This will reduce performance." : "disabled."),
|
||||||
|
OSD::Duration::NORMAL);
|
||||||
|
}
|
||||||
|
|
||||||
if (IsHotkey(HK_TOGGLE_TEXTURES))
|
if (IsHotkey(HK_TOGGLE_TEXTURES))
|
||||||
Config::SetCurrent(Config::GFX_HIRES_TEXTURES, !Config::Get(Config::GFX_HIRES_TEXTURES));
|
Config::SetCurrent(Config::GFX_HIRES_TEXTURES, !Config::Get(Config::GFX_HIRES_TEXTURES));
|
||||||
|
@ -52,6 +52,7 @@
|
|||||||
#include "VideoCommon/GeometryShaderManager.h"
|
#include "VideoCommon/GeometryShaderManager.h"
|
||||||
#include "VideoCommon/GraphicsModSystem/Runtime/GraphicsModManager.h"
|
#include "VideoCommon/GraphicsModSystem/Runtime/GraphicsModManager.h"
|
||||||
#include "VideoCommon/IndexGenerator.h"
|
#include "VideoCommon/IndexGenerator.h"
|
||||||
|
#include "VideoCommon/OnScreenDisplay.h"
|
||||||
#include "VideoCommon/OpcodeDecoding.h"
|
#include "VideoCommon/OpcodeDecoding.h"
|
||||||
#include "VideoCommon/PixelEngine.h"
|
#include "VideoCommon/PixelEngine.h"
|
||||||
#include "VideoCommon/PixelShaderManager.h"
|
#include "VideoCommon/PixelShaderManager.h"
|
||||||
@ -392,6 +393,12 @@ bool VideoBackendBase::InitializeShared(std::unique_ptr<AbstractGfx> gfx,
|
|||||||
g_Config.VerifyValidity();
|
g_Config.VerifyValidity();
|
||||||
UpdateActiveConfig();
|
UpdateActiveConfig();
|
||||||
|
|
||||||
|
if (g_Config.bDumpTextures)
|
||||||
|
{
|
||||||
|
OSD::AddMessage(fmt::format("Texture Dumping is enabled. This will reduce performance."),
|
||||||
|
OSD::Duration::NORMAL);
|
||||||
|
}
|
||||||
|
|
||||||
g_shader_cache->InitializeShaderCache();
|
g_shader_cache->InitializeShaderCache();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user