blob: 394ae415f66f0550b6caf987ade45fbbf1c60f18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
/*
* Copyright (C) 2003 Ian Wadham and Marco Krüger <ianw2@optusnet.com.au>
*/
#include <kapplication.h>
#include <dcopclient.h>
#include <kaboutdata.h>
#include <kcmdlineargs.h>
#include <klocale.h>
#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)
{
TDEAboutData about("kgoldrunner", I18N_NOOP("KGoldrunner" ),
version, description,
TDEAboutData::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);
TDECmdLineArgs::init (argc, argv, &about);
TDEApplication 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();
}
}
}
|