mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
38c2de3ae3
commit
ae73356ecf
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue