mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-17 19:05:46 -04:00
PGXP: Add initial implementation
This commit is contained in:
@ -8,11 +8,13 @@
|
||||
#include "controller_interface.h"
|
||||
#include "core/cdrom.h"
|
||||
#include "core/controller.h"
|
||||
#include "core/cpu_code_cache.h"
|
||||
#include "core/dma.h"
|
||||
#include "core/game_list.h"
|
||||
#include "core/gpu.h"
|
||||
#include "core/host_display.h"
|
||||
#include "core/mdec.h"
|
||||
#include "core/pgxp.h"
|
||||
#include "core/save_state_version.h"
|
||||
#include "core/spu.h"
|
||||
#include "core/system.h"
|
||||
@ -1295,6 +1297,22 @@ void CommonHostInterface::RegisterGraphicsHotkeys()
|
||||
ToggleSoftwareRendering();
|
||||
});
|
||||
|
||||
RegisterHotkey(StaticString("Graphics"), StaticString("TogglePGXP"), StaticString("Toggle PGXP"),
|
||||
[this](bool pressed) {
|
||||
if (!pressed)
|
||||
{
|
||||
g_settings.gpu_pgxp_enable = !g_settings.gpu_pgxp_enable;
|
||||
ReportFormattedMessage("PGXP is now %s.", g_settings.gpu_pgxp_enable ? "enabled" : "disabled");
|
||||
|
||||
if (g_settings.gpu_pgxp_enable)
|
||||
PGXP::Initialize();
|
||||
|
||||
// we need to recompile all blocks if pgxp is toggled on/off
|
||||
if (g_settings.IsUsingCodeCache())
|
||||
CPU::CodeCache::Flush();
|
||||
}
|
||||
});
|
||||
|
||||
RegisterHotkey(StaticString("Graphics"), StaticString("IncreaseResolutionScale"),
|
||||
StaticString("Increase Resolution Scale"), [this](bool pressed) {
|
||||
if (!pressed)
|
||||
|
Reference in New Issue
Block a user