blob: ce756988c2985c76321189b726cd9fa0452d3351 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#include <QApplication>
#include <QMessageBox>
#include "steam/steam_api.h"
#include "StarModUploader.hpp"
#include "StarStringConversion.hpp"
using namespace Star;
int main(int argc, char** argv) {
QApplication app(argc, argv);
if (!SteamAPI_Init()) {
QMessageBox::critical(nullptr, "Error", "Could not initialize Steam API");
return 1;
}
ModUploader modUploader;
modUploader.show();
try {
return app.exec();
} catch (std::exception const& e) {
QMessageBox::critical(nullptr, "Error", toQString(strf("Exception caught: {}\n", outputException(e, true))));
coutf("Exception caught: {}\n", outputException(e, true));
return 1;
}
}
|