Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/simulation2/components/tests/test_Pathfinder.h
Show All 28 Lines | |||||
#include "ps/Pyrogenesis.h" | #include "ps/Pyrogenesis.h" | ||||
#include "simulation2/Simulation2.h" | #include "simulation2/Simulation2.h" | ||||
class TestCmpPathfinder : public CxxTest::TestSuite | class TestCmpPathfinder : public CxxTest::TestSuite | ||||
{ | { | ||||
public: | public: | ||||
void setUp() | void setUp() | ||||
{ | { | ||||
g_VFS = CreateVfs(20 * MiB); | g_VFS = CreateVfs(); | ||||
g_VFS->Mount(L"", DataDir()/"mods"/"mod", VFS_MOUNT_MUST_EXIST); | g_VFS->Mount(L"", DataDir()/"mods"/"mod", VFS_MOUNT_MUST_EXIST); | ||||
g_VFS->Mount(L"", DataDir()/"mods"/"public", VFS_MOUNT_MUST_EXIST, 1); // ignore directory-not-found errors | g_VFS->Mount(L"", DataDir()/"mods"/"public", VFS_MOUNT_MUST_EXIST, 1); // ignore directory-not-found errors | ||||
TS_ASSERT_OK(g_VFS->Mount(L"cache", DataDir()/"_testcache")); | TS_ASSERT_OK(g_VFS->Mount(L"cache", DataDir()/"_testcache")); | ||||
CXeromyces::Startup(); | CXeromyces::Startup(); | ||||
// Need some stuff for terrain movement costs: | // Need some stuff for terrain movement costs: | ||||
// (TODO: this ought to be independent of any graphics code) | // (TODO: this ought to be independent of any graphics code) | ||||
▲ Show 20 Lines • Show All 308 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator