mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-07-15 01:23:37 -07:00
Add Lib Init
This commit is contained in:
parent
4c216db5d2
commit
0a3378bba9
7 changed files with 47 additions and 6 deletions
|
@ -24,6 +24,13 @@ int main(int argc, char *argv[])
|
|||
{
|
||||
qRegisterMetaType<ChiakiQuitReason>();
|
||||
|
||||
ChiakiErrorCode err = chiaki_lib_init();
|
||||
if(err != CHIAKI_ERR_SUCCESS)
|
||||
{
|
||||
fprintf(stderr, "Chiaki lib init failed: %s\n", chiaki_error_string(err));
|
||||
return 1;
|
||||
}
|
||||
|
||||
QApplication app(argc, argv);
|
||||
QApplication::setApplicationName("Chiaki");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue