From: Holger Schemel Date: Mon, 16 Aug 2021 21:37:17 +0000 (+0200) Subject: changed functions for score server access from static to public X-Git-Tag: 4.3.0.0~95 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=8ca1cd4ae397da6b91d425aac0b3a40d302b66c2;p=rocksndiamonds.git changed functions for score server access from static to public --- diff --git a/src/files.c b/src/files.c index f486dba0..9c370e72 100644 --- a/src/files.c +++ b/src/files.c @@ -9026,8 +9026,8 @@ void SaveScore(int nr) SaveScoreToFilename(filename); } -static void ExecuteAsThread(SDL_ThreadFunction function, char *name, void *data, - char *error) +void ExecuteAsThread(SDL_ThreadFunction function, char *name, void *data, + char *error) { SDL_Thread *thread = SDL_CreateThread(function, name, data); @@ -9040,7 +9040,7 @@ static void ExecuteAsThread(SDL_ThreadFunction function, char *name, void *data, Delay(1); } -static char *getPasswordJSON(char *password) +char *getPasswordJSON(char *password) { static char password_json[MAX_FILENAME_LEN] = ""; static boolean initialized = FALSE; diff --git a/src/files.h b/src/files.h index fd421ef1..6d01aa47 100644 --- a/src/files.h +++ b/src/files.h @@ -35,6 +35,9 @@ char *getGlobalLevelTemplateFilename(void); int getMappedElement(int); +void ExecuteAsThread(SDL_ThreadFunction, char *, void *, char *); +char *getPasswordJSON(char *); + void LoadLevelFromFilename(struct LevelInfo *, char *); void LoadLevel(int); void LoadLevelTemplate(int);