Commit e0a3e746 authored by hybrid's avatar hybrid

Add command line loading.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2331 dfc29bdd-3216-0410-991c-e03cc46cb475
parent bddb9fb8
......@@ -18,7 +18,7 @@ using namespace irr;
#pragma comment(lib, "Irrlicht.lib")
#endif
int main()
int main(int argc, char** argv)
{
// ask user for driver
......@@ -68,7 +68,10 @@ int main()
*/
// load the scene
smgr->loadScene( "../../media/example.irr");
if (argc>1)
smgr->loadScene(argv[1]);
else
smgr->loadScene("../../media/example.irr");
/*
Now we'll create a camera, and give it a collision response animator
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment