Permalink
Browse files

Changing CWD to argv[0] dirname

  • Loading branch information...
achpile committed Apr 19, 2016
1 parent 7ee479b commit 0fb3641e456e11467c16e34acec8757492e0de1a
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/main.cpp
View
@@ -27,6 +27,8 @@ sf::RenderWindow *app;
***********************************************************************/
int main(int argc, char **argv) {
chdir(dirname(argv[0]));
sw = new ach::StopWatch(argc, argv);
while(sw->running) sw->update();

0 comments on commit 0fb3641

Please sign in to comment.