mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-05-07 04:34:48 +12:00
Add renderdoc API support (#585)
* Add renderdoc API support * FIx renderdoc include directory * Fix RenderDoc linking * Fix Renderdoc linking (again) * Maybe fix renderdoc
This commit is contained in:
parent
471bdd6ab9
commit
2754df9b94
10 changed files with 942 additions and 4 deletions
|
@ -6,6 +6,8 @@
|
|||
|
||||
#include <fstream>
|
||||
|
||||
#include "renderdoc.hpp"
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
|
||||
|
@ -32,6 +34,10 @@ Emulator::Emulator()
|
|||
audioDevice.init(dsp->getSamples());
|
||||
setAudioEnabled(config.audioEnabled);
|
||||
|
||||
if (Renderdoc::isSupported() && config.enableRenderdoc) {
|
||||
loadRenderdoc();
|
||||
}
|
||||
|
||||
#ifdef PANDA3DS_ENABLE_DISCORD_RPC
|
||||
if (config.discordRpcEnabled) {
|
||||
discordRpc.init();
|
||||
|
@ -431,3 +437,9 @@ void Emulator::setAudioEnabled(bool enable) {
|
|||
|
||||
dsp->setAudioEnabled(enable);
|
||||
}
|
||||
|
||||
void Emulator::loadRenderdoc() {
|
||||
std::string capturePath = (std::filesystem::current_path() / "RenderdocCaptures").generic_string();
|
||||
Renderdoc::loadRenderdoc();
|
||||
Renderdoc::setOutputDir(capturePath, "");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue