mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-11-18 03:02:07 +00:00
fix: add platform to test code
This commit is contained in:
@@ -20,7 +20,7 @@ namespace
|
|||||||
public:
|
public:
|
||||||
TestContext()
|
TestContext()
|
||||||
: m_memory(),
|
: m_memory(),
|
||||||
m_zone("test", 0, GameId::T6),
|
m_zone("test", 0, GameId::T6, GamePlatform::PC),
|
||||||
m_zone_definition(),
|
m_zone_definition(),
|
||||||
m_zone_states(m_zone),
|
m_zone_states(m_zone),
|
||||||
m_creators(m_zone),
|
m_creators(m_zone),
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ namespace
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TestContext()
|
TestContext()
|
||||||
: m_zone("test", 0, GameId::T6),
|
: m_zone("test", 0, GameId::T6, GamePlatform::PC),
|
||||||
m_zone_states(m_zone),
|
m_zone_states(m_zone),
|
||||||
m_out_dir()
|
m_out_dir()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ namespace
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TestContext()
|
TestContext()
|
||||||
: m_zone("test", 0, GameId::T6),
|
: m_zone("test", 0, GameId::T6, GamePlatform::PC),
|
||||||
m_zone_definition(),
|
m_zone_definition(),
|
||||||
m_zone_definition_context(m_zone_definition),
|
m_zone_definition_context(m_zone_definition),
|
||||||
m_zone_states(m_zone),
|
m_zone_states(m_zone),
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ namespace
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TestContext()
|
TestContext()
|
||||||
: m_zone("test", 0, GameId::T6),
|
: m_zone("test", 0, GameId::T6, GamePlatform::PC),
|
||||||
m_zone_definition(),
|
m_zone_definition(),
|
||||||
m_zone_definition_context(m_zone_definition),
|
m_zone_definition_context(m_zone_definition),
|
||||||
m_zone_states(m_zone),
|
m_zone_states(m_zone),
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ namespace
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TestContext()
|
TestContext()
|
||||||
: m_zone("test", 0, GameId::T6),
|
: m_zone("test", 0, GameId::T6, GamePlatform::PC),
|
||||||
m_zone_states(m_zone),
|
m_zone_states(m_zone),
|
||||||
m_out_dir()
|
m_out_dir()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -274,7 +274,7 @@ namespace
|
|||||||
]
|
]
|
||||||
})MATERIAL");
|
})MATERIAL");
|
||||||
|
|
||||||
Zone zone("MockZone", 0, GameId::IW3);
|
Zone zone("MockZone", 0, GameId::IW3, GamePlatform::PC);
|
||||||
|
|
||||||
MemoryManager memory;
|
MemoryManager memory;
|
||||||
AssetCreatorCollection creatorCollection(zone);
|
AssetCreatorCollection creatorCollection(zone);
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ namespace
|
|||||||
"test,data,lol\n"
|
"test,data,lol\n"
|
||||||
"lorem,ipsum");
|
"lorem,ipsum");
|
||||||
|
|
||||||
Zone zone("MockZone", 0, GameId::IW3);
|
Zone zone("MockZone", 0, GameId::IW3, GamePlatform::PC);
|
||||||
|
|
||||||
MemoryManager memory;
|
MemoryManager memory;
|
||||||
AssetCreatorCollection creatorCollection(zone);
|
AssetCreatorCollection creatorCollection(zone);
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ namespace
|
|||||||
"test,data,lol\n"
|
"test,data,lol\n"
|
||||||
"lorem,ipsum");
|
"lorem,ipsum");
|
||||||
|
|
||||||
Zone zone("MockZone", 0, GameId::IW4);
|
Zone zone("MockZone", 0, GameId::IW4, GamePlatform::PC);
|
||||||
|
|
||||||
MemoryManager memory;
|
MemoryManager memory;
|
||||||
AssetCreatorCollection creatorCollection(zone);
|
AssetCreatorCollection creatorCollection(zone);
|
||||||
|
|||||||
@@ -277,7 +277,7 @@ namespace
|
|||||||
]
|
]
|
||||||
})MATERIAL");
|
})MATERIAL");
|
||||||
|
|
||||||
Zone zone("MockZone", 0, GameId::IW4);
|
Zone zone("MockZone", 0, GameId::IW4, GamePlatform::PC);
|
||||||
|
|
||||||
MemoryManager memory;
|
MemoryManager memory;
|
||||||
AssetCreatorCollection creatorCollection(zone);
|
AssetCreatorCollection creatorCollection(zone);
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ namespace test::game::iw4::menu::parsing::it
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
MenuParsingItHelper()
|
MenuParsingItHelper()
|
||||||
: m_zone("MockZone", 0, GameId::IW4),
|
: m_zone("MockZone", 0, GameId::IW4, GamePlatform::PC),
|
||||||
m_creator_collection(m_zone),
|
m_creator_collection(m_zone),
|
||||||
m_ignored_asset_lookup(),
|
m_ignored_asset_lookup(),
|
||||||
m_context(m_zone, &m_creator_collection, &m_ignored_asset_lookup)
|
m_context(m_zone, &m_creator_collection, &m_ignored_asset_lookup)
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ namespace
|
|||||||
"test,data,lol\n"
|
"test,data,lol\n"
|
||||||
"lorem,ipsum");
|
"lorem,ipsum");
|
||||||
|
|
||||||
Zone zone("MockZone", 0, GameId::IW5);
|
Zone zone("MockZone", 0, GameId::IW5, GamePlatform::PC);
|
||||||
|
|
||||||
MemoryManager memory;
|
MemoryManager memory;
|
||||||
AssetCreatorCollection creatorCollection(zone);
|
AssetCreatorCollection creatorCollection(zone);
|
||||||
|
|||||||
@@ -301,7 +301,7 @@ namespace
|
|||||||
]
|
]
|
||||||
})MATERIAL");
|
})MATERIAL");
|
||||||
|
|
||||||
Zone zone("MockZone", 0, GameId::IW5);
|
Zone zone("MockZone", 0, GameId::IW5, GamePlatform::PC);
|
||||||
|
|
||||||
MemoryManager memory;
|
MemoryManager memory;
|
||||||
AssetCreatorCollection creatorCollection(zone);
|
AssetCreatorCollection creatorCollection(zone);
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ namespace
|
|||||||
"test,data,lol\n"
|
"test,data,lol\n"
|
||||||
"lorem,ipsum");
|
"lorem,ipsum");
|
||||||
|
|
||||||
Zone zone("MockZone", 0, GameId::T5);
|
Zone zone("MockZone", 0, GameId::T5, GamePlatform::PC);
|
||||||
|
|
||||||
MemoryManager memory;
|
MemoryManager memory;
|
||||||
AssetCreatorCollection creatorCollection(zone);
|
AssetCreatorCollection creatorCollection(zone);
|
||||||
|
|||||||
@@ -358,7 +358,7 @@ namespace
|
|||||||
]
|
]
|
||||||
})MATERIAL");
|
})MATERIAL");
|
||||||
|
|
||||||
Zone zone("MockZone", 0, GameId::T5);
|
Zone zone("MockZone", 0, GameId::T5, GamePlatform::PC);
|
||||||
|
|
||||||
MemoryManager memory;
|
MemoryManager memory;
|
||||||
AssetCreatorCollection creatorCollection(zone);
|
AssetCreatorCollection creatorCollection(zone);
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ namespace
|
|||||||
"test,data,lol\n"
|
"test,data,lol\n"
|
||||||
"lorem,ipsum");
|
"lorem,ipsum");
|
||||||
|
|
||||||
Zone zone("MockZone", 0, GameId::T6);
|
Zone zone("MockZone", 0, GameId::T6, GamePlatform::PC);
|
||||||
|
|
||||||
MemoryManager memory;
|
MemoryManager memory;
|
||||||
AssetCreatorCollection creatorCollection(zone);
|
AssetCreatorCollection creatorCollection(zone);
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ namespace
|
|||||||
]
|
]
|
||||||
})FONT_ICON");
|
})FONT_ICON");
|
||||||
|
|
||||||
Zone zone("MockZone", 0, GameId::T6);
|
Zone zone("MockZone", 0, GameId::T6, GamePlatform::PC);
|
||||||
|
|
||||||
MemoryManager memory;
|
MemoryManager memory;
|
||||||
AssetCreatorCollection creatorCollection(zone);
|
AssetCreatorCollection creatorCollection(zone);
|
||||||
|
|||||||
@@ -241,7 +241,7 @@ namespace
|
|||||||
]
|
]
|
||||||
})MATERIAL");
|
})MATERIAL");
|
||||||
|
|
||||||
Zone zone("MockZone", 0, GameId::T6);
|
Zone zone("MockZone", 0, GameId::T6, GamePlatform::PC);
|
||||||
|
|
||||||
MemoryManager memory;
|
MemoryManager memory;
|
||||||
AssetCreatorCollection creatorCollection(zone);
|
AssetCreatorCollection creatorCollection(zone);
|
||||||
|
|||||||
@@ -551,7 +551,7 @@ namespace
|
|||||||
]
|
]
|
||||||
})MATERIAL");
|
})MATERIAL");
|
||||||
|
|
||||||
Zone zone("MockZone", 0, GameId::IW3);
|
Zone zone("MockZone", 0, GameId::IW3, GamePlatform::PC);
|
||||||
|
|
||||||
MemoryManager memory;
|
MemoryManager memory;
|
||||||
MockSearchPath mockObjPath;
|
MockSearchPath mockObjPath;
|
||||||
|
|||||||
@@ -532,7 +532,7 @@ namespace
|
|||||||
]
|
]
|
||||||
})MATERIAL");
|
})MATERIAL");
|
||||||
|
|
||||||
Zone zone("MockZone", 0, GameId::IW4);
|
Zone zone("MockZone", 0, GameId::IW4, GamePlatform::PC);
|
||||||
|
|
||||||
MemoryManager memory;
|
MemoryManager memory;
|
||||||
MockSearchPath mockObjPath;
|
MockSearchPath mockObjPath;
|
||||||
|
|||||||
@@ -585,7 +585,7 @@ namespace
|
|||||||
]
|
]
|
||||||
})MATERIAL");
|
})MATERIAL");
|
||||||
|
|
||||||
Zone zone("MockZone", 0, GameId::IW5);
|
Zone zone("MockZone", 0, GameId::IW5, GamePlatform::PC);
|
||||||
|
|
||||||
MemoryManager memory;
|
MemoryManager memory;
|
||||||
MockSearchPath mockObjPath;
|
MockSearchPath mockObjPath;
|
||||||
|
|||||||
@@ -614,7 +614,7 @@ namespace
|
|||||||
]
|
]
|
||||||
})MATERIAL");
|
})MATERIAL");
|
||||||
|
|
||||||
Zone zone("MockZone", 0, GameId::T5);
|
Zone zone("MockZone", 0, GameId::T5, GamePlatform::PC);
|
||||||
|
|
||||||
MemoryManager memory;
|
MemoryManager memory;
|
||||||
MockSearchPath mockObjPath;
|
MockSearchPath mockObjPath;
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ namespace
|
|||||||
]
|
]
|
||||||
})FONT_ICON");
|
})FONT_ICON");
|
||||||
|
|
||||||
Zone zone("MockZone", 0, GameId::T6);
|
Zone zone("MockZone", 0, GameId::T6, GamePlatform::PC);
|
||||||
|
|
||||||
MemoryManager memory;
|
MemoryManager memory;
|
||||||
MockSearchPath mockObjPath;
|
MockSearchPath mockObjPath;
|
||||||
|
|||||||
@@ -462,7 +462,7 @@ namespace
|
|||||||
]
|
]
|
||||||
})MATERIAL");
|
})MATERIAL");
|
||||||
|
|
||||||
Zone zone("MockZone", 0, GameId::T6);
|
Zone zone("MockZone", 0, GameId::T6, GamePlatform::PC);
|
||||||
|
|
||||||
MemoryManager memory;
|
MemoryManager memory;
|
||||||
MockSearchPath mockObjPath;
|
MockSearchPath mockObjPath;
|
||||||
|
|||||||
Reference in New Issue
Block a user