1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

vcmi can be compiled as single app on Linux

TODO: check compilation on Win/Mac using Github Actions
This commit is contained in:
Ivan Savenko
2022-12-05 21:36:02 +02:00
parent fd21f9ead2
commit 6463e906d5
4 changed files with 11 additions and 6 deletions

View File

@@ -1043,7 +1043,7 @@ static void handleCommandOptions(int argc, char * argv[], boost::program_options
#endif
int main(int argc, char * argv[])
{
#if !defined(VCMI_ANDROID) && !defined(VCMI_IOS)
#if !defined(VCMI_ANDROID) && !defined(SINGLE_PROCESS_APP)
// Correct working dir executable folder (not bundle folder) so we can use executable relative paths
boost::filesystem::current_path(boost::filesystem::system_complete(argv[0]).parent_path());
#endif