char *osinterface_get_orct2_homesubfolder(const char *subFolder) { char *path = osinterface_get_orct2_homefolder(); strcat(path, "\\"); strcat(path, subFolder); return path; }
static void get_plugin_path(char *path) { char *homePath = osinterface_get_orct2_homefolder(); sprintf(path, "%s%c%s", homePath, osinterface_get_path_separator(), "plugin.dat"); free(homePath); }