mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-19 04:53:12 +01:00
Refactor PlatformEnvironment
This commit is contained in:
@@ -22,17 +22,16 @@
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "OpenRCT2.h"
|
||||
#include "platform/platform.h"
|
||||
}
|
||||
|
||||
class PlatformEnvironment : public IPlatformEnvironment
|
||||
{
|
||||
private:
|
||||
std::string _basePath[4];
|
||||
std::string _basePath[DIRBASE_COUNT];
|
||||
|
||||
public:
|
||||
PlatformEnvironment(const std::string basePaths[4])
|
||||
PlatformEnvironment(DIRBASE_VALUES basePaths)
|
||||
{
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
@@ -84,7 +83,7 @@ private:
|
||||
static const char * FileNames[];
|
||||
};
|
||||
|
||||
IPlatformEnvironment * CreatePlatformEnvironment(const std::string basePaths[4])
|
||||
IPlatformEnvironment * CreatePlatformEnvironment(DIRBASE_VALUES basePaths)
|
||||
{
|
||||
return new PlatformEnvironment(basePaths);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user