diff --git a/plugins/GSdx/stdafx.cpp b/plugins/GSdx/stdafx.cpp index 6126d73435..af135133db 100644 --- a/plugins/GSdx/stdafx.cpp +++ b/plugins/GSdx/stdafx.cpp @@ -46,6 +46,20 @@ std::string format(const char* fmt, ...) return {buffer.data()}; } +// Helper path to dump texture +#ifdef _WIN32 +const std::string root_sw("c:\\temp1\\_"); +const std::string root_hw("c:\\temp2\\_"); +#else +#ifdef _M_AMD64 +const std::string root_sw("/tmp/GS_SW_dump64/"); +const std::string root_hw("/tmp/GS_HW_dump64/"); +#else +const std::string root_sw("/tmp/GS_SW_dump32/"); +const std::string root_hw("/tmp/GS_HW_dump32/"); +#endif +#endif + #ifdef _WIN32 void* vmalloc(size_t size, bool code) diff --git a/plugins/GSdx/stdafx.h b/plugins/GSdx/stdafx.h index f4c42debb0..4a30e1f052 100644 --- a/plugins/GSdx/stdafx.h +++ b/plugins/GSdx/stdafx.h @@ -430,15 +430,5 @@ struct GLAutoPop { #endif // Helper path to dump texture -#ifdef _WIN32 -const std::string root_sw("c:\\temp1\\_"); -const std::string root_hw("c:\\temp2\\_"); -#else -#ifdef _M_AMD64 -const std::string root_sw("/tmp/GS_SW_dump64/"); -const std::string root_hw("/tmp/GS_HW_dump64/"); -#else -const std::string root_sw("/tmp/GS_SW_dump32/"); -const std::string root_hw("/tmp/GS_HW_dump32/"); -#endif -#endif +extern const std::string root_sw; +extern const std::string root_hw;