Code: Select all
#ifndef __BCPLUSPLUS__ // add by etcaptor for BCB compatibility
#define swprintf _snwprintf
#endif // BCB
Code: Select all
#ifndef __BCPLUSPLUS__ // add by etcaptor for BCB compatibility
#define swprintf _snwprintf
#endif // BCB
Edit following file:
CCSMLoader.cpp
Locate this line in the function void Surface::clear():
textureName = 0;
Change to this (make it an empty string):
textureName = "";
All in all a major improvement.#if defined(_DEBUG) && !defined(__GNUWIN32__)
_CrtSetDbgFlag(_CRTDBG_LEAK_CHECK_DF | _CRTDBG_ALLOC_MEM_DF);
#endif
Change to this:
#if defined(_DEBUG) && !defined(__GNUWIN32__) && !defined(__BORLANDC__)
_CrtSetDbgFlag(_CRTDBG_LEAK_CHECK_DF | _CRTDBG_ALLOC_MEM_DF);
#endif