Add arguments support to Daybreak (#1616)

* Add arguments support to Daybreak

* Check if Daybreak is run as NRO
This commit is contained in:
HamletDuFromage 2021-09-11 19:55:25 +02:00 committed by GitHub
parent bfeba7c1e8
commit a1fb8a91c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 32 additions and 5 deletions

View file

@ -261,7 +261,10 @@ class Daybreak : public CApplication {
int main(int argc, char **argv) {
/* Initialize the menu. */
dbk::InitializeMenu(FramebufferWidth, FramebufferHeight);
if (argc > 1)
dbk::InitializeMenu(FramebufferWidth, FramebufferHeight, argv[1]);
else
dbk::InitializeMenu(FramebufferWidth, FramebufferHeight);
Daybreak daybreak;
daybreak.run();