1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 20:13:07 +01:00

Create repositories in OpenRCT2.c

This commit is contained in:
Ted John
2016-12-12 01:17:47 +00:00
parent 7410326fcc
commit cc227b7761
7 changed files with 40 additions and 30 deletions

View File

@@ -84,15 +84,8 @@ private:
static const char * FileNames[];
};
IPlatformEnvironment * CreatePlatformEnvironment()
IPlatformEnvironment * CreatePlatformEnvironment(const std::string basePaths[4])
{
utf8 path[260];
std::string basePaths[4];
basePaths[(size_t)DIRBASE::RCT2] = std::string(gRCT2AddressAppPath);
platform_get_openrct_data_path(path, sizeof(path));
basePaths[(size_t)DIRBASE::OPENRCT2] = std::string(path);
platform_get_user_directory(path, nullptr, sizeof(path));
basePaths[(size_t)DIRBASE::USER] = std::string(path);
return new PlatformEnvironment(basePaths);
}