Debian Codegraph @

src/freedink_main.cpp

raw
1 /**
2 * Game main loop
3
4 * Copyright (C) 1997, 1998, 1999, 2002, 2003 Seth A. Robinson
5 * Copyright (C) 2003, 2004, 2005, 2007, 2008, 2009, 2010, 2012, 2014, 2015 Sylvain Beucler
6
7 * This file is part of GNU FreeDink
8
9 * GNU FreeDink is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 3 of the
12 * License, or (at your option) any later version.
13
14 * GNU FreeDink is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
18
19 * You should have received a copy of the GNU General Public License
20 * along with this program. If not, see
21 * <http://www.gnu.org/licenses/>.
22 */
23
24 #ifdef HAVE_CONFIG_H
25 #include <config.h>
26 #endif
27
28 #ifdef __EMSCRIPTEN__
29 #include <emscripten.h>
30 #endif
31
32 #include "AppFreeDink.h"
33 #include "SDL.h"
34
35 /**
36 * Bootstrap
37 */
38 int main(int argc, char* argv[])
39 {
40 // Create app
41 // Store it in the heap as Emscripten will trash the stack
42 AppFreeDink* freedink = new AppFreeDink();
43 int ret = freedink->main(argc, argv);
44 delete freedink;
45 return ret;
46 }