From fe54b8e612759faa7e479d5bc33fd1bc4b4f357f Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Fri, 9 Sep 2022 21:24:00 +0200 Subject: correct revision size logic, readd fork --- src/steam.c | 3 +-- src/toast.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/steam.c b/src/steam.c index f28272c..de22787 100644 --- a/src/steam.c +++ b/src/steam.c @@ -239,14 +239,13 @@ long getSteamPID(void) return -1; } -#define STEAM_LAUNCH - int runOpenFortress(char** args, size_t arg_count) { #ifdef STEAM_DIRECT_LAUNCH int in_fork = 0; #if defined(__linux__) || defined(__FreeBSD__) // fork so we don't have to stay alive for the game + if (fork()) return 0; #endif char* game = getSourceSDK2013MpDir(); if (!game) diff --git a/src/toast.c b/src/toast.c index 4c26142..44f8b86 100644 --- a/src/toast.c +++ b/src/toast.c @@ -310,7 +310,7 @@ struct revision_t* getRevisionData(char* url, int rev) { int rev_copy = rev; - while (rev_copy > 10) + while (rev_copy >= 10) { rev_copy /= 10; rev_len++; -- cgit v1.2.3