Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/network/tests/test_Net.h
Show All 34 Lines | |||||
#include "simulation2/system/TurnManager.h" | #include "simulation2/system/TurnManager.h" | ||||
class TestNetComms : public CxxTest::TestSuite | class TestNetComms : public CxxTest::TestSuite | ||||
{ | { | ||||
public: | public: | ||||
void setUp() | void setUp() | ||||
{ | { | ||||
g_VFS = CreateVfs(); | g_VFS = CreateVfs(); | ||||
TS_ASSERT_OK(g_VFS->Mount(L"", DataDir()/"mods"/"public", VFS_MOUNT_MUST_EXIST)); | TS_ASSERT_OK(g_VFS->Mount(L"", DataDir() / "mods" / "public" / "", VFS_MOUNT_MUST_EXIST)); | ||||
TS_ASSERT_OK(g_VFS->Mount(L"cache", DataDir()/"_testcache")); | TS_ASSERT_OK(g_VFS->Mount(L"cache", DataDir() / "_testcache" / "", 0, VFS_MAX_PRIORITY)); | ||||
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) | ||||
new CTerrainTextureManager; | new CTerrainTextureManager; | ||||
g_TexMan.LoadTerrainTextures(); | g_TexMan.LoadTerrainTextures(); | ||||
enet_initialize(); | enet_initialize(); | ||||
▲ Show 20 Lines • Show All 332 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator