comparison paths.c @ 1489:637fbc3b5063 nuklear_ui

Added code to persist config back to a file
author Michael Pavone <pavone@retrodev.com>
date Wed, 29 Nov 2017 08:41:37 -0800
parents 77a401044935
children b96f9fae757f
comparison
equal deleted inserted replaced
1488:f29bd94ffa76 1489:637fbc3b5063
100 vars = tern_insert_ptr(vars, "EXEDIR", get_exe_dir()); 100 vars = tern_insert_ptr(vars, "EXEDIR", get_exe_dir());
101 *dst = replace_vars(*dst, vars, 1); 101 *dst = replace_vars(*dst, vars, 1);
102 tern_free(vars); 102 tern_free(vars);
103 } 103 }
104 104
105 char *path_append(char *base, char *suffix) 105 char *path_append(const char *base, const char *suffix)
106 { 106 {
107 if (!strcmp(suffix, "..")) { 107 if (!strcmp(suffix, "..")) {
108 #ifdef _WIN32 108 #ifdef _WIN32
109 //handle transition from root of a drive to virtual root 109 //handle transition from root of a drive to virtual root
110 if (base[1] == ':' && !base[2]) { 110 if (base[1] == ':' && !base[2]) {