Skip to content

Commit ae9f00a

Browse files
Read game information from daemon.conf file, fix Unvanquished/Unvanquished#817
Co-authored-by: Sebastian Schmidt <schro.sb@gmail.com> Co-authored-by: Thomas “illwieckz” Debesse <dev@illwieckz.net>
1 parent 6bf8baa commit ae9f00a

31 files changed

Lines changed: 3660 additions & 122 deletions

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,9 @@ endif()
461461
# These variables are defined:
462462
# LIBS_BASE, LIBS_ENGINE_BASE LIBS_ENGINE, LIBS_BASECLIENT, LIBS_CLIENT
463463

464+
add_library(srclibs-tomlc17 EXCLUDE_FROM_ALL ${TOMLC17LIST})
465+
set(LIBS_BASE ${LIBS_BASE} srclibs-tomlc17)
466+
464467
# Native client
465468
include(DaemonNacl)
466469
if (NACL)

daemon.ini.template

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
[gameinfo]
2+
# Display name, can contain special characters,
3+
# like "Unvanquished", "Smokin' Guns", etc.
4+
name = "Unknown Dæmon game"
5+
# Version string, usually in the form "0.52", "1.2.3", etc.
6+
version = "0.0.1"
7+
# XDG Application ID, used to by XDG desktops to associate
8+
# windows of running binaries with their icons.
9+
# It's written in the reverse-domain form
10+
# like "net.unvanquished.Unvanquished".
11+
appId = "com.example.Unknown"
12+
# Directory base name where user data will be stored on Windows.
13+
# For example with "Unvanquished" it will store data in
14+
# C:\Users\<username>\My Games\Unvanquished
15+
# It's common to find capitalized names and even white spaces,
16+
# but you may prefer to avoid special characters.
17+
windowsDirName = "UnknownDaemonGame"
18+
# Directory base name where user data will be stored on macOS.
19+
# For example with "Unvanquished" it will store data in
20+
# /Users/<username>/Library/Application Support/Unvanquished
21+
# It's common to find capitalized names and even white spaces
22+
# but you may prefer to avoid special characters.
23+
#
24+
# Some may prefer directory names in the form
25+
# of "net.unvanquished.Unvanquished", this is not unusual.
26+
macosDirName = "UnknownDaemonGame"
27+
# Directory base name where user data will be stored on Linux
28+
# and operating systems following freedesktop.org standards.
29+
#
30+
# For example with "unvanquished" it will store data in
31+
#
32+
# /home/<username>/.local/share/unvanquished
33+
#
34+
# The name is usually lowercase without space and without
35+
# special characters.
36+
#
37+
# Some may prefer directory names in the form
38+
# of “net.unvanquished.Unvanquished”, this is less common.
39+
xdgDirName = "unknownDaemonGame"
40+
# File base name for various files or directories written
41+
# by the engine: screenshot base name, temporary file base name…
42+
#
43+
# For example with “unvanquished” it will name screenshot files
44+
# the “unvanquished-<timestamp>.jpg way or create temporary files
45+
# named like “/tmp/unvanquished-<random>”.
46+
baseName = "unknownDaemonGame"
47+
# Base name of the package the engine should look for to start the game.
48+
# For example with “unvanquished” the engine will look for a package named
49+
# like this:
50+
#
51+
# unvanquished_<version>.dpk
52+
#
53+
# Packages base names are usually lowercase, don't contain white spaces
54+
# and cannot use “_” characters except for separating the base name
55+
# and the version string.
56+
basePak = "daemon"
57+
# List of fully qualified domain name of the master servers.
58+
#
59+
# Example: ["master.unvanquished.net", "master2.unvanquished.net"]
60+
#
61+
# Up to five master servers are supported.
62+
masterServers = ["master.example.com", "master2.example.com"]
63+
# URL to download missing packages when joining a server.
64+
#
65+
# Example: "dl.unvanquished.net/pkg"
66+
# Or: "dl.unvanquished.net:80/pkg"
67+
#
68+
# It is expected to be an http server.
69+
# The protocol is omitted.
70+
wwwBaseUrl = "dl.example.com/pkg"
71+
# A string used to identify against the master server.
72+
#
73+
# In case of total conversion mods, this is the string of the
74+
# game.
75+
#
76+
# It's usually upper case.
77+
masterGameName = "UNKNOWN"
78+
# A string used to filter games when listing servers from master
79+
# servers.
80+
#
81+
# In case of total conversion mods, this is the string of the mod.
82+
# Example: "unv" or "unvanquished" or "Unvanquished".
83+
serverGameName = "unknown"
84+
# A string used for game server urls.
85+
#
86+
# For example with "unv" you can have url in the form:
87+
#
88+
# unv://unvanquished.net
89+
#
90+
# It's lower case and usually short but you can use something longer
91+
# similar to the base name.
92+
uriProtocol = "unknown"

libs/tomlc17/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# tomlc17
2+
3+
Upstream:
4+
5+
- https://github.com/cktan/tomlc17

0 commit comments

Comments
 (0)