| 269 | } |
| 270 | |
| 271 | int main(int argc, char *argv[]) |
| 272 | { |
| 273 | QApplication a(argc, argv); |
| 274 | |
| 275 | startminimized = false; |
| 276 | |
| 277 | //Initialize Visualizer |
| 278 | vis.Initialize(); |
| 279 | |
| 280 | //Get file path in executable directory |
| 281 | //char filename[2048]; |
| 282 | //GetModuleFileName(NULL, filename, 2048); |
| 283 | //char arg1[64]; |
| 284 | //snprintf(arg1, 64, "/proc/%d/exe", getpid()); |
| 285 | //readlink(arg1, filename, 1024); |
| 286 | //strcpy(filename, std::string(filename).substr(0, std::string(filename).find_last_of("\\/")).c_str()); |
| 287 | //strcat(filename, "\\settings.txt"); |
| 288 | //strcat(filename, "/settings.txt"); |
| 289 | //parse_settings_file(filename); |
| 290 | |
| 291 | //Parse Command Line |
| 292 | if (!parse_command_line(argc, argv)) |
| 293 | { |
| 294 | return 0; |
| 295 | } |
| 296 | |
| 297 | //Start Visualizer Threads |
| 298 | vis.StartThread(); |
| 299 | |
| 300 | //Create Dialog |
| 301 | Ui::KeyboardVisDlg dlg; |
| 302 | dlg.StartMinimized(startminimized); |
| 303 | dlg.SetVisualizer(&vis); |
| 304 | dlg.show(); |
| 305 | |
| 306 | return a.exec(); |
| 307 | } |
nothing calls this directly
no test coverage detected