1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-18 03:21:27 +02:00

editorPath -> mapEditorPath

This commit is contained in:
Ivan Savenko 2022-12-28 17:59:16 +02:00
parent cd6a894417
commit 5f4a998435
3 changed files with 13 additions and 13 deletions

View File

@ -63,14 +63,14 @@ void startGame(const QStringList & args)
startExecutable(pathToQString(VCMIDirs::get().clientPath()), args); startExecutable(pathToQString(VCMIDirs::get().clientPath()), args);
#endif #endif
} }
void startEditor(const QStringList & args) void startEditor(const QStringList & args)
{ {
#ifdef ENABLE_EDITOR #ifdef ENABLE_EDITOR
startExecutable(pathToQString(VCMIDirs::get().mapEditorPath()), args); startExecutable(pathToQString(VCMIDirs::get().mapEditorPath()), args);
#endif #endif
} }
#ifndef Q_OS_IOS #ifndef Q_OS_IOS
void startExecutable(QString name, const QStringList & args) void startExecutable(QString name, const QStringList & args)
{ {

View File

@ -158,7 +158,7 @@ class VCMIDirsWIN32 final : public IVCMIDirs
std::vector<bfs::path> dataPaths() const override; std::vector<bfs::path> dataPaths() const override;
bfs::path clientPath() const override; bfs::path clientPath() const override;
bfs::path editorPath() const override; bfs::path mapEditorPath() const override;
bfs::path serverPath() const override; bfs::path serverPath() const override;
bfs::path libraryPath() const override; bfs::path libraryPath() const override;
@ -349,7 +349,7 @@ std::vector<bfs::path> VCMIDirsWIN32::dataPaths() const
} }
bfs::path VCMIDirsWIN32::clientPath() const { return binaryPath() / "VCMI_client.exe"; } bfs::path VCMIDirsWIN32::clientPath() const { return binaryPath() / "VCMI_client.exe"; }
bfs::path VCMIDirsWIN32::editorPath() const { return binaryPath() / "VCMI_editor.exe"; } bfs::path VCMIDirsWIN32::mapEditorPath() const { return binaryPath() / "VCMI_editor.exe"; }
bfs::path VCMIDirsWIN32::serverPath() const { return binaryPath() / "VCMI_server.exe"; } bfs::path VCMIDirsWIN32::serverPath() const { return binaryPath() / "VCMI_server.exe"; }
bfs::path VCMIDirsWIN32::libraryPath() const { return "."; } bfs::path VCMIDirsWIN32::libraryPath() const { return "."; }
@ -361,7 +361,7 @@ class IVCMIDirsUNIX : public IVCMIDirs
{ {
public: public:
bfs::path clientPath() const override; bfs::path clientPath() const override;
bfs::path editorPath() const override; bfs::path mapEditorPath() const override;
bfs::path serverPath() const override; bfs::path serverPath() const override;
virtual bool developmentMode() const; virtual bool developmentMode() const;
@ -374,7 +374,7 @@ bool IVCMIDirsUNIX::developmentMode() const
} }
bfs::path IVCMIDirsUNIX::clientPath() const { return binaryPath() / "vcmiclient"; } bfs::path IVCMIDirsUNIX::clientPath() const { return binaryPath() / "vcmiclient"; }
bfs::path IVCMIDirsUNIX::editorPath() const { return binaryPath() / "vcmieditor"; } bfs::path IVCMIDirsUNIX::mapEditorPath() const { return binaryPath() / "vcmieditor"; }
bfs::path IVCMIDirsUNIX::serverPath() const { return binaryPath() / "vcmiserver"; } bfs::path IVCMIDirsUNIX::serverPath() const { return binaryPath() / "vcmiserver"; }
#ifdef VCMI_APPLE #ifdef VCMI_APPLE

View File

@ -39,7 +39,7 @@ public:
virtual boost::filesystem::path clientPath() const = 0; virtual boost::filesystem::path clientPath() const = 0;
// Full path to editor executable, including name (e.g. /usr/bin/vcmieditor) // Full path to editor executable, including name (e.g. /usr/bin/vcmieditor)
virtual boost::filesystem::path editorPath() const = 0; virtual boost::filesystem::path mapEditorPath() const = 0;
// Full path to server executable, including name (e.g. /usr/bin/vcmiserver) // Full path to server executable, including name (e.g. /usr/bin/vcmiserver)
virtual boost::filesystem::path serverPath() const = 0; virtual boost::filesystem::path serverPath() const = 0;