From c90c389a8a8d9d8661e9772ec4144c5cf2039f23 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kgoldrunner/src/main.cpp | 50 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 kgoldrunner/src/main.cpp (limited to 'kgoldrunner/src/main.cpp') diff --git a/kgoldrunner/src/main.cpp b/kgoldrunner/src/main.cpp new file mode 100644 index 00000000..63be6a71 --- /dev/null +++ b/kgoldrunner/src/main.cpp @@ -0,0 +1,50 @@ +/* + * Copyright (C) 2003 Ian Wadham and Marco Krüger + */ + +#include +#include +#include +#include +#include + +#include "kgrconsts.h" +#include "kgoldrunner.h" + +static const char description[] = + I18N_NOOP("KGoldrunner is a game of action and puzzle solving"); + +static const char version[] = "2.0"; + +int main (int argc, char **argv) +{ + KAboutData about("kgoldrunner", I18N_NOOP("KGoldrunner" ), + version, description, + KAboutData::License_GPL, + "(C) 2003 Ian Wadham and Marco Krüger"); + about.addAuthor( "Ian Wadham", I18N_NOOP("Current author"), + "ianw2@optusnet.com.au" ); + about.addAuthor( "Marco Krüger", I18N_NOOP("Original author"), 0); + + KCmdLineArgs::init (argc, argv, &about); + + KApplication app; + + // Register as a DCOP client. + app.dcopClient()->registerAs (app.name(), false); + + // See if we are starting with session management. + if (app.isRestored()) + { + RESTORE(KGoldrunner); + return app.exec(); + } + else + { + KGoldrunner * widget = new KGoldrunner; + if (widget->startedOK()) { + widget->show(); + return app.exec(); + } + } +} -- cgit v1.2.1