From d773b499e595a43b9b1ae449262dcf13cabf2d02 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Tue, 21 Jul 2020 15:06:52 +0300 Subject: Initial commit Borrowing the app skeleton from Bitwise Harmony. --- src/main.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/main.c (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c new file mode 100644 index 00000000..457cc1f2 --- /dev/null +++ b/src/main.c @@ -0,0 +1,25 @@ +#include +#include +#if defined (iPlatformMsys) +# define SDL_MAIN_HANDLED +#endif +#include + +#include "app.h" + +int main(int argc, char **argv) { +#if defined (iPlatformMsys) + /* MSYS runtime takes care of WinMain. */ + SDL_SetMainReady(); +#endif + init_Foundation(); + printf("Lagrange: A Beautiful Gemini Client\n"); + /* Initialize SDL. */ + if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO)) { + fprintf(stderr, "SDL init failed: %s\n", SDL_GetError()); + return -1; + } + run_App(argc, argv); + SDL_Quit(); + return 0; +} -- cgit v1.2.3