mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-18 04:39:59 +01:00
added Windows source
This commit is contained in:
29
windows/Acid.Cam.Qt.Windows.March.2019/main.cpp
Executable file
29
windows/Acid.Cam.Qt.Windows.March.2019/main.cpp
Executable file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Acid Cam v2 - Qt/OpenCV Edition
|
||||
* written by Jared Bruni ( http://lostsidedead.com )
|
||||
* (C) 2017 GPL
|
||||
*/
|
||||
|
||||
|
||||
//#define LINUX_RELEASE
|
||||
|
||||
#include"qtheaders.h"
|
||||
#include "main_window.h"
|
||||
#ifdef LINUX_RELEASE
|
||||
#include<unistd.h>
|
||||
#endif
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
|
||||
#ifdef LINUX_RELEASE
|
||||
if(chdir("/usr/share/acidcam") == 0) {
|
||||
std::cout << "Changed directory to: /usr/share/acidcam\n";
|
||||
}
|
||||
#endif
|
||||
|
||||
QApplication app(argc, argv);
|
||||
AC_MainWindow window;
|
||||
window.show();
|
||||
return app.exec();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user