diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-08-06 07:55:13 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2019-08-06 07:55:16 +0200 |
commit | d399e7ec86a91dd14a7c0deedaaec70ae46cef1d (patch) | |
tree | 85b8598274f3dc9ca921c47aaaf7640400543168 /src/main.cpp | |
parent | 953fa85fb67f1f59a2612754b13f2c4a00b93866 (diff) |
Add cli arg to choose plugin, fix crash
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index 2dc50ee..1b85cbf 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,9 +1,8 @@ #include "../include/QuickMedia.hpp" #include <X11/Xlib.h> -int main() { +int main(int argc, char **argv) { XInitThreads(); QuickMedia::Program program; - program.run(); - return 0; + return program.run(argc, argv); } |