From 886633293dfb73360395a6acc20acb280620fb3f Mon Sep 17 00:00:00 2001 From: aap Date: Fri, 24 May 2019 19:58:32 +0200 Subject: implemented CFileMgr (barf) --- src/main.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index b17a30a3..b7d1d151 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,5 +1,6 @@ -#include "common.h" +#include #include +#include "common.h" #include "patcher.h" #include "Renderer.h" #include "debugmenu_public.h" @@ -36,6 +37,16 @@ mysrand(unsigned int seed) myrand_seed = seed; } +// platform stuff +char* +GetUserDirectory(void) +{ + static char path[MAX_PATH]; + strcpy(path, "userfiles"); + mkdir(path); + return path; +} + int (*open_script_orig)(const char *path, const char *mode); int -- cgit v1.2.3