forked from rosebudai/OpenRCT2-Web
Rename DIRID and its members
This commit is contained in:
27 files changed
+101
-100
No files matched your search
@@ -592,7 +592,7 @@ std::vector<std::string> ScriptEngine::GetPluginFiles() const
|
||||
{
|
||||
// Scan for .js files in plugin directory
|
||||
std::vector<std::string> pluginFiles;
|
||||
auto base = _env.GetDirectoryPath(DirBase::user, DIRID::PLUGIN);
|
||||
auto base = _env.GetDirectoryPath(DirBase::user, DirId::plugins);
|
||||
if (Path::DirectoryExists(base))
|
||||
{
|
||||
auto pattern = Path::Combine(base, u8"*.js");
|
||||
@@ -794,7 +794,7 @@ void ScriptEngine::SetupHotReloading()
|
||||
{
|
||||
try
|
||||
{
|
||||
auto base = _env.GetDirectoryPath(DirBase::user, DIRID::PLUGIN);
|
||||
auto base = _env.GetDirectoryPath(DirBase::user, DirId::plugins);
|
||||
if (Path::DirectoryExists(base))
|
||||
{
|
||||
_pluginFileWatcher = std::make_unique<FileWatcher>(base);
|
||||
|
||||
Reference in new issue
Block a user