summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/Debugger.cpp
diff options
context:
space:
mode:
authorGlenn Rice <glennricster@gmail.com>2010-12-14 23:19:34 +0000
committerGlenn Rice <glennricster@gmail.com>2010-12-14 23:19:34 +0000
commit76d9209ad4cbcccd076646c33be414abe07e01a7 (patch)
treea787b16c62a96fef1fd1e4bb9627b486ac9cb66a /Source/Core/VideoCommon/Src/Debugger.cpp
parent35fef1f17300a26778eaa5588816239189ec453c (diff)
When the gfx debugger is saving shaders make sure the directory exists.
Make sure the gfx debugger unpauses when the emulator is stopped. When a wad is installed make sure directories exist. For the cmake build if a header is not provided in the check_lib macro don't check for it, and assume pkg-config was supposed to work. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6581 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/Debugger.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/Debugger.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/Src/Debugger.cpp b/Source/Core/VideoCommon/Src/Debugger.cpp
index 6ed390c84f..0b8e487307 100644
--- a/Source/Core/VideoCommon/Src/Debugger.cpp
+++ b/Source/Core/VideoCommon/Src/Debugger.cpp
@@ -94,7 +94,7 @@ void ContinueGFXDebugger()
void GFXDebuggerBase::DumpPixelShader(const char* path)
{
char filename[MAX_PATH];
- sprintf(filename, "%s/dump_ps.txt", path);
+ sprintf(filename, "%sdump_ps.txt", path);
std::string output;
bool useDstAlpha = bpmem.dstalpha.enable && bpmem.blendmode.alphaupdate && bpmem.zcontrol.pixel_format == PIXELFMT_RGBA6_Z24;
@@ -126,7 +126,7 @@ void GFXDebuggerBase::DumpPixelShader(const char* path)
void GFXDebuggerBase::DumpVertexShader(const char* path)
{
char filename[MAX_PATH];
- sprintf(filename, "%s/dump_vs_consts.txt", path);
+ sprintf(filename, "%sdump_vs_consts.txt", path);
File::CreateEmptyFile(filename);
File::WriteStringToFile(true, GenerateVertexShaderCode(g_nativeVertexFmt->m_components, g_ActiveConfig.backend_info.APIType), filename);