summaryrefslogtreecommitdiff
path: root/noncore/games/snake/main.cpp
Side-by-side diff
Diffstat (limited to 'noncore/games/snake/main.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/snake/main.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/noncore/games/snake/main.cpp b/noncore/games/snake/main.cpp
index 90a93b7..77a2769 100644
--- a/noncore/games/snake/main.cpp
+++ b/noncore/games/snake/main.cpp
@@ -17,19 +17,13 @@
** not clear to you.
**
**********************************************************************/
-
+
#include "interface.h"
#include <qpe/qpeapplication.h>
+#include <opie/oapplicationfactory.h>
+
+OPIE_EXPORT_APP( OApplicationFactory<SnakeGame> )
-int main(int argc, char **argv)
-{
- QPEApplication app(argc,argv);
- SnakeGame* m = new SnakeGame;
- QPEApplication::setInputMethodHint( m, QPEApplication::AlwaysOff );
- app.showMainWidget(m);
-
- return app.exec();
-}