mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
VCMIDirs: add hack to run from single directory on Mac and Linux
Also change working directory to where binary is on all platforms except Android
This commit is contained in:
@@ -609,7 +609,7 @@ void handleLinuxSignal(int sig)
|
||||
|
||||
int main(int argc, char * argv[])
|
||||
{
|
||||
#ifdef VCMI_APPLE
|
||||
#ifndef VCMI_WINDOWS
|
||||
// Correct working dir executable folder (not bundle folder) so we can use executable relative paths
|
||||
std::string executablePath = argv[0];
|
||||
std::string workDir = executablePath.substr(0, executablePath.rfind('/'));
|
||||
|
||||
Reference in New Issue
Block a user