From: <vo...@us...> - 2008-08-20 08:56:38
|
Revision: 775 http://opde.svn.sourceforge.net/opde/?rev=775&view=rev Author: volca Date: 2008-08-20 08:56:47 +0000 (Wed, 20 Aug 2008) Log Message: ----------- Fix for *nix version - argv[1] is the first param, argv[0] is the filename of the executable :) Modified Paths: -------------- trunk/src/main/Opde.cpp Modified: trunk/src/main/Opde.cpp =================================================================== --- trunk/src/main/Opde.cpp 2008-08-20 08:39:54 UTC (rev 774) +++ trunk/src/main/Opde.cpp 2008-08-20 08:56:47 UTC (rev 775) @@ -36,7 +36,10 @@ #else int main(int argc, char**argv) { - std::string GameType(argv[0]); + std::string GameType = ""; + + if (argc >= 2) + GameType = argv[1]; #endif // Create application object This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |