aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCara Salter <cara@devcara.com>2023-03-23 15:51:35 -0400
committerCara Salter <cara@devcara.com>2023-03-23 15:51:35 -0400
commit5bd1801667f1a07811e7452cf7973e5342b48802 (patch)
tree1bbfbc0954171f2e19ebae1226f5efe7fe3cfda4
parent192dd9d656742b1931ae44f05e1604ff18d64d3b (diff)
downloadcmud-master.tar.gz
cmud-master.zip
remove vscode configurationHEADmaster
-rw-r--r--.vscode/launch.json7
-rw-r--r--.vscode/tasks.json23
-rw-r--r--src/main.c4
3 files changed, 3 insertions, 31 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json
deleted file mode 100644
index 5c7247b..0000000
--- a/.vscode/launch.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- // Use IntelliSense to learn about possible attributes.
- // Hover to view descriptions of existing attributes.
- // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
- "version": "0.2.0",
- "configurations": []
-} \ No newline at end of file
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
deleted file mode 100644
index 5a2c071..0000000
--- a/.vscode/tasks.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- // See https://go.microsoft.com/fwlink/?LinkId=733558
- // for the documentation about the tasks.json format
- "version": "2.0.0",
- "tasks": [
- {
- "label": "Make (development)",
- "type": "shell",
- "command": "make dev",
- "problemMatcher": ["$gcc"],
- "group": {
- "kind": "build",
- "isDefault": true
- }
- },
- {
- "label": "Make (clean)",
- "type": "shell",
- "command": "make clean",
- "problemMatcher": []
- }
- ]
-} \ No newline at end of file
diff --git a/src/main.c b/src/main.c
index 07a3f2c..08701f5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -27,9 +27,11 @@ int main() {
debug("Done");
const char* name;
- if (!config_lookup_string(&cfg, "name", &name)) {
+ if (config_lookup_string(&cfg, "name", &name) != CONFIG_TRUE) {
error("Invalid config");
exit(-1);
+ } else {
+ info("Starting up %s game server", name);
}
info("Starting up %s game server", name);