QTfrontend/hwconsts.h.in
author unc0rr
Fri, 24 Nov 2006 19:33:43 +0000
changeset 271 f2f9a3d5b441
child 275 7cb230cd2b1d
permissions -rw-r--r--
Protocol version sets in CMake
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
271
f2f9a3d5b441 Protocol version sets in CMake
unc0rr
parents:
diff changeset
     1
/*
f2f9a3d5b441 Protocol version sets in CMake
unc0rr
parents:
diff changeset
     2
 * Hedgewars, a worms-like game
f2f9a3d5b441 Protocol version sets in CMake
unc0rr
parents:
diff changeset
     3
 * Copyright (c) 2005, 2006 Andrey Korotaev <unC0Rr@gmail.com>
f2f9a3d5b441 Protocol version sets in CMake
unc0rr
parents:
diff changeset
     4
 *
f2f9a3d5b441 Protocol version sets in CMake
unc0rr
parents:
diff changeset
     5
 * This program is free software; you can redistribute it and/or modify
f2f9a3d5b441 Protocol version sets in CMake
unc0rr
parents:
diff changeset
     6
 * it under the terms of the GNU General Public License as published by
f2f9a3d5b441 Protocol version sets in CMake
unc0rr
parents:
diff changeset
     7
 * the Free Software Foundation; version 2 of the License
f2f9a3d5b441 Protocol version sets in CMake
unc0rr
parents:
diff changeset
     8
 *
f2f9a3d5b441 Protocol version sets in CMake
unc0rr
parents:
diff changeset
     9
 * This program is distributed in the hope that it will be useful,
f2f9a3d5b441 Protocol version sets in CMake
unc0rr
parents:
diff changeset
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
f2f9a3d5b441 Protocol version sets in CMake
unc0rr
parents:
diff changeset
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
f2f9a3d5b441 Protocol version sets in CMake
unc0rr
parents:
diff changeset
    12
 * GNU General Public License for more details.
f2f9a3d5b441 Protocol version sets in CMake
unc0rr
parents:
diff changeset
    13
 *
f2f9a3d5b441 Protocol version sets in CMake
unc0rr
parents:
diff changeset
    14
 * You should have received a copy of the GNU General Public License
f2f9a3d5b441 Protocol version sets in CMake
unc0rr
parents:
diff changeset
    15
 * along with this program; if not, write to the Free Software
f2f9a3d5b441 Protocol version sets in CMake
unc0rr
parents:
diff changeset
    16
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
f2f9a3d5b441 Protocol version sets in CMake
unc0rr
parents:
diff changeset
    17
 */
f2f9a3d5b441 Protocol version sets in CMake
unc0rr
parents:
diff changeset
    18
f2f9a3d5b441 Protocol version sets in CMake
unc0rr
parents:
diff changeset
    19
#include <QDir>
f2f9a3d5b441 Protocol version sets in CMake
unc0rr
parents:
diff changeset
    20
#include <QString>
f2f9a3d5b441 Protocol version sets in CMake
unc0rr
parents:
diff changeset
    21
f2f9a3d5b441 Protocol version sets in CMake
unc0rr
parents:
diff changeset
    22
const char resolutions[2][4][5] =
f2f9a3d5b441 Protocol version sets in CMake
unc0rr
parents:
diff changeset
    23
{
f2f9a3d5b441 Protocol version sets in CMake
unc0rr
parents:
diff changeset
    24
	{"640", "800", "1024", "1280"},
f2f9a3d5b441 Protocol version sets in CMake
unc0rr
parents:
diff changeset
    25
	{"480", "600",  "768", "1024"}
f2f9a3d5b441 Protocol version sets in CMake
unc0rr
parents:
diff changeset
    26
};
f2f9a3d5b441 Protocol version sets in CMake
unc0rr
parents:
diff changeset
    27
f2f9a3d5b441 Protocol version sets in CMake
unc0rr
parents:
diff changeset
    28
extern QDir * cfgdir;
f2f9a3d5b441 Protocol version sets in CMake
unc0rr
parents:
diff changeset
    29
extern QDir * datadir;
f2f9a3d5b441 Protocol version sets in CMake
unc0rr
parents:
diff changeset
    30
extern QDir * bindir;
f2f9a3d5b441 Protocol version sets in CMake
unc0rr
parents:
diff changeset
    31
f2f9a3d5b441 Protocol version sets in CMake
unc0rr
parents:
diff changeset
    32
const QString cProtoVer("${HEDGEWARS_PROTO_VER}");