Skip to content

Commit

Permalink
Merge branch 'main' into Version2
Browse files Browse the repository at this point in the history
  • Loading branch information
mnoomnoo committed May 1, 2023
2 parents c442adf + a144cb4 commit b0a6caa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ProgramArgs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ bool ProcessProgramArgs(int argc , const char** argv, ProgramCmdLineOptions& pro

if(hasExeConfigs)
{
const std::string exeConfPath = std::filesystem::current_path().string() + "\\" + "exesConfig.ecfg";
const std::filesystem::path exePath = argv[0];
const std::string exeConfPath = exePath.parent_path().string() + "\\" + "exesConfig.ecfg";
std::ifstream file(exeConfPath);
if (file.is_open())
{
Expand Down

0 comments on commit b0a6caa

Please sign in to comment.