mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-23 15:52:55 +01:00
Use correct directory base
This commit is contained in:
@@ -142,7 +142,7 @@ public:
|
|||||||
|
|
||||||
// Scan RCT2 directory
|
// Scan RCT2 directory
|
||||||
std::string rct2dir = _env->GetDirectoryPath(DIRBASE::RCT2, DIRID::SCENARIO);
|
std::string rct2dir = _env->GetDirectoryPath(DIRBASE::RCT2, DIRID::SCENARIO);
|
||||||
std::string openrct2dir = _env->GetDirectoryPath(DIRBASE::OPENRCT2, DIRID::SCENARIO);
|
std::string openrct2dir = _env->GetDirectoryPath(DIRBASE::USER, DIRID::SCENARIO);
|
||||||
Scan(rct2dir);
|
Scan(rct2dir);
|
||||||
Scan(openrct2dir);
|
Scan(openrct2dir);
|
||||||
|
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ public:
|
|||||||
_queryDirectoryResult = { 0 };
|
_queryDirectoryResult = { 0 };
|
||||||
|
|
||||||
const std::string &rct2Path = _env->GetDirectoryPath(DIRBASE::RCT2, DIRID::OBJECT);
|
const std::string &rct2Path = _env->GetDirectoryPath(DIRBASE::RCT2, DIRID::OBJECT);
|
||||||
const std::string &openrct2Path = _env->GetDirectoryPath(DIRBASE::OPENRCT2, DIRID::OBJECT);
|
const std::string &openrct2Path = _env->GetDirectoryPath(DIRBASE::USER, DIRID::OBJECT);
|
||||||
QueryDirectory(&_queryDirectoryResult, rct2Path);
|
QueryDirectory(&_queryDirectoryResult, rct2Path);
|
||||||
QueryDirectory(&_queryDirectoryResult, openrct2Path);
|
QueryDirectory(&_queryDirectoryResult, openrct2Path);
|
||||||
|
|
||||||
@@ -252,7 +252,7 @@ private:
|
|||||||
stopwatch.Start();
|
stopwatch.Start();
|
||||||
|
|
||||||
const std::string &rct2Path = _env->GetDirectoryPath(DIRBASE::RCT2, DIRID::OBJECT);
|
const std::string &rct2Path = _env->GetDirectoryPath(DIRBASE::RCT2, DIRID::OBJECT);
|
||||||
const std::string &openrct2Path = _env->GetDirectoryPath(DIRBASE::OPENRCT2, DIRID::OBJECT);
|
const std::string &openrct2Path = _env->GetDirectoryPath(DIRBASE::USER, DIRID::OBJECT);
|
||||||
ScanDirectory(rct2Path);
|
ScanDirectory(rct2Path);
|
||||||
ScanDirectory(openrct2Path);
|
ScanDirectory(openrct2Path);
|
||||||
|
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ public:
|
|||||||
void Scan() override
|
void Scan() override
|
||||||
{
|
{
|
||||||
std::string rct2Directory = _env->GetDirectoryPath(DIRBASE::RCT2, DIRID::TRACK);
|
std::string rct2Directory = _env->GetDirectoryPath(DIRBASE::RCT2, DIRID::TRACK);
|
||||||
std::string userDirectory = _env->GetDirectoryPath(DIRBASE::OPENRCT2, DIRID::TRACK);
|
std::string userDirectory = _env->GetDirectoryPath(DIRBASE::USER, DIRID::TRACK);
|
||||||
|
|
||||||
_items.clear();
|
_items.clear();
|
||||||
_directoryQueryResult = { 0 };
|
_directoryQueryResult = { 0 };
|
||||||
|
|||||||
Reference in New Issue
Block a user