MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / main

Function main

source/mod_uploader/main.cpp:11–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9using namespace Star;
10
11int main(int argc, char** argv) {
12 QApplication app(argc, argv);
13
14 if (!SteamAPI_Init()) {
15 QMessageBox::critical(nullptr, "Error", "Could not initialize Steam API");
16 return 1;
17 }
18
19 ModUploader modUploader;
20 modUploader.show();
21
22 try {
23 return app.exec();
24 } catch (std::exception const& e) {
25 QMessageBox::critical(nullptr, "Error", toQString(strf("Exception caught: {}\n", outputException(e, true))));
26 coutf("Exception caught: {}\n", outputException(e, true));
27 return 1;
28 }
29}

Callers

nothing calls this directly

Calls 7

toQStringFunction · 0.85
strfFunction · 0.85
coutfFunction · 0.85
SteamAPI_InitFunction · 0.50
outputExceptionFunction · 0.50
showMethod · 0.45
execMethod · 0.45

Tested by

no test coverage detected