mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-02-03 04:05:49 +01:00
Create test data helpers
This commit is contained in:
16
test/tests/TestData.cpp
Normal file
16
test/tests/TestData.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#include <openrct2/core/Path.hpp>
|
||||
#include "TestData.h"
|
||||
|
||||
namespace TestData
|
||||
{
|
||||
std::string GetBasePath()
|
||||
{
|
||||
return "testdata";
|
||||
}
|
||||
|
||||
std::string GetParkPath(std::string name)
|
||||
{
|
||||
std::string path = Path::Combine(GetBasePath(), "parks", name);
|
||||
return path;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user