Subversion Repositories eduke32

Rev

Rev 4922 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4922 Rev 5005
Line 269... Line 269...
269
        }
269
        }
270
270
271
    if (loaded)
271
    if (loaded)
272
        FreeLibrary(hShell32);
272
        FreeLibrary(hShell32);
273
    return NULL;
273
    return NULL;
274
#elif defined __APPLE__
274
#elif defined EDUKE32_OSX
275
    return osx_gethomedir();
275
    return osx_gethomedir();
276
#elif defined(GEKKO)
276
#elif defined(GEKKO)
277
    // return current drive's name
277
    // return current drive's name
278
    char *drv, cwd[BMAX_PATH] = {0};
278
    char *drv, cwd[BMAX_PATH] = {0};
279
    getcwd(cwd, BMAX_PATH);
279
    getcwd(cwd, BMAX_PATH);
Line 300... Line 300...
300
                char *slash = Bstrrchr(appdir, '\\');
300
                char *slash = Bstrrchr(appdir, '\\');
301
                if (slash) slash[0] = 0;
301
                if (slash) slash[0] = 0;
302
                dir = Bstrdup(appdir);
302
                dir = Bstrdup(appdir);
303
    }
303
    }
304
304
305
#elif defined __APPLE__
305
#elif defined EDUKE32_OSX
306
    dir = osx_getappdir();
306
    dir = osx_getappdir();
307
#elif defined(__linux) || defined(__NetBSD__) || defined(__OpenBSD__)
307
#elif defined(__linux) || defined(__NetBSD__) || defined(__OpenBSD__)
308
    char buf[PATH_MAX] = {0};
308
    char buf[PATH_MAX] = {0};
309
    char buf2[PATH_MAX] = {0};
309
    char buf2[PATH_MAX] = {0};
310
#  ifdef __linux
310
#  ifdef __linux