diff --git a/UserInterfaceManager.h b/UserInterfaceManager.h index f90b354..fc2ec82 100644 --- a/UserInterfaceManager.h +++ b/UserInterfaceManager.h @@ -2,6 +2,7 @@ #define __UI_MANAGER_H_ #include +#include #include #include diff --git a/main.cpp b/main.cpp index 9951f7f..c539eb6 100644 --- a/main.cpp +++ b/main.cpp @@ -58,6 +58,8 @@ void renderGUI() int main(int argc, char *argv[]) { + std::string _openfile; + // one extra argument is given if (argc == 2) { std::string argument(argv[1]); @@ -84,7 +86,8 @@ int main(int argc, char *argv[]) } else { // try to open the file - Mixer::manager().load(argument); + _openfile = argument; + fprintf(stderr, "Loading %s %s\n", argv[0], _openfile.c_str()); } } @@ -145,6 +148,9 @@ int main(int argc, char *argv[]) // show all windows Rendering::manager().show(); + // try to load file given in argument + Mixer::manager().load(_openfile); + /// /// Main LOOP ///