mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-05-18 03:25:11 -04:00
Get Qt project building on Windows, remove Visual Studio files
This commit is contained in:
25
main.cpp
25
main.cpp
@@ -13,15 +13,8 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef WIN32
|
||||
|
||||
#include "OpenAuraSDKDialog.h"
|
||||
|
||||
#else /* WIN32 */
|
||||
|
||||
#include "OpenAuraSDKQtDialog.h"
|
||||
|
||||
#endif /* WIN32 */
|
||||
|
||||
extern std::vector<i2c_smbus_interface*> busses;
|
||||
extern std::vector<RGBController*> rgb_controllers;
|
||||
@@ -38,20 +31,12 @@ int main(int argc, char* argv[])
|
||||
{
|
||||
DetectRGBControllers();
|
||||
|
||||
#if WIN32
|
||||
OpenAuraSDKDialog dlg(busses, rgb_controllers);
|
||||
dlg.DoModal();
|
||||
|
||||
return 0;
|
||||
|
||||
#else
|
||||
QApplication a(argc, argv);
|
||||
|
||||
Ui::OpenAuraSDKQtDialog dlg(busses, rgb_controllers);
|
||||
dlg.show();
|
||||
|
||||
return a.exec();
|
||||
#endif
|
||||
}
|
||||
|
||||
/******************************************************************************************\
|
||||
@@ -63,8 +48,8 @@ int main(int argc, char* argv[])
|
||||
\******************************************************************************************/
|
||||
|
||||
#ifdef WIN32
|
||||
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine, int nCmdShow)
|
||||
{
|
||||
main(0, NULL);
|
||||
}
|
||||
#endif
|
||||
//int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine, int nCmdShow)
|
||||
//{
|
||||
// main(0, NULL);
|
||||
//}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user