mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-10-14 07:17:44 +00:00
fix VFS bug preventing directories from being created:
- vfs_lookup: currentPath was of wrong type; simplified and fix create logic - archive_zip: fix: correctly handle filenames with / - vfs: remove workaround for above bug - io: temporarily disable block caching (works around problem with zip file created by 7z) add and use new wdbg_heap module (WIP) remove mmgr This was SVN commit r5571.
This commit is contained in:
+6
-12
@@ -9,6 +9,10 @@
|
||||
|
||||
#include <cxxtest/GlobalFixture.h>
|
||||
|
||||
#if OS_WIN
|
||||
#include "lib/sysdep/win/wdbg_heap.h"
|
||||
#endif
|
||||
|
||||
class LeakReporter : public CxxTest::GlobalFixture
|
||||
{
|
||||
virtual bool tearDownWorld()
|
||||
@@ -16,19 +20,9 @@ class LeakReporter : public CxxTest::GlobalFixture
|
||||
// Enable leak reporting on exit.
|
||||
// (This is done in tearDownWorld so that it doesn't report 'leaks'
|
||||
// if the program is aborted before finishing cleanly.)
|
||||
|
||||
#if HAVE_VC_DEBUG_ALLOC
|
||||
int flags = _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG);
|
||||
flags |= _CRTDBG_LEAK_CHECK_DF; // check for memory leaks
|
||||
flags |= _CRTDBG_ALLOC_MEM_DF; // also check allocs using the non-debug version of new
|
||||
_CrtSetDbgFlag(flags);
|
||||
|
||||
// Send output to stdout as well as the debug window, so it works during
|
||||
// the normal build process as well as when debugging the test .exe
|
||||
_CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE | _CRTDBG_MODE_DEBUG);
|
||||
_CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDOUT);
|
||||
#if OS_WIN
|
||||
wdbg_heap_Enable(true);
|
||||
#endif
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user