mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-10-01 10:40:20 +03:00
On macOS check the PATH defined in the shell and append all pending PATHs to the current environment. This should improve binary finding. Solves issue SpartanJ/ecode#63.
Renamed MACOSX references to MACOS / macOS.
This commit is contained in:
@@ -183,7 +183,7 @@ EE_MAIN_FUNC int main( int argc, char* argv[] ) {
|
||||
Display* currentDisplay = displayManager->getDisplayIndex( 0 );
|
||||
|
||||
std::string resPath = Sys::getProcessPath();
|
||||
#if EE_PLATFORM == EE_PLATFORM_MACOSX
|
||||
#if EE_PLATFORM == EE_PLATFORM_MACOS
|
||||
if ( String::contains( resPath, "ecode.app" ) ) {
|
||||
resPath = FileSystem::getCurrentWorkingDirectory();
|
||||
FileSystem::dirAddSlashAtEnd( resPath );
|
||||
|
||||
Reference in New Issue
Block a user