gsdx: Avoid const strings in header file

This prevents each .cpp file that included stdafx.h (IOW everything)
from having its own copy of the strings.
This commit is contained in:
Jonathan Li 2017-03-30 01:10:48 +01:00
parent 38c2de3ae3
commit ae73356ecf
2 changed files with 16 additions and 12 deletions

View File

@ -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)

View File

@ -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;