Create repositories in OpenRCT2.c

This commit is contained in:
Ted John committed 2016-12-14 00:32:06 +00:00
1 parent 7410326fcc
commit cc227b7761
7 files changed
+40 -30

No files matched your search

+1 -8
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);
}