Ticket #457: t457.2.patch

File t457.2.patch, 3.2 KB (added by Sergey Kushnirenko, 8 years ago)
  • lib/app_hooks.cpp

     
    4343static const OsPath& def_get_log_dir()
    4444{
    4545    static OsPath logDir;
    46     if(logDir.empty())
     46    if (logDir.empty())
     47        logDir = sys_def_logs_dir();
     48
     49    if (logDir.empty())
    4750        logDir = sys_ExecutablePathname().Parent();
    4851    return logDir;
    4952}
  • lib/sysdep/os/android/android.cpp

     
    4242    return INFO::OK;
    4343}
    4444
     45OsPath sys_def_logs_dir()
     46{
     47    OsPath dirname("/var/log");
     48    return dirname;
     49}
     50
    4551namespace gfx {
    4652
    4753Status GetVideoMode(int* xres, int* yres, int* bpp, int* freq)
  • lib/sysdep/os/bsd/bsd.cpp

     
    2929{
    3030    return unix_ExecutablePathname();
    3131}
     32
     33OsPath sys_def_logs_dir()
     34{
     35    OsPath dirname("/var/log");
     36    return dirname;
     37}
  • lib/sysdep/os/linux/linux.cpp

     
    4343    return true;
    4444}
    4545
     46OsPath sys_def_logs_dir()
     47{
     48    OsPath dirname("/var/log");
     49    return dirname;
     50}
     51
    4652OsPath sys_ExecutablePathname()
    4753{
    4854    // Check /proc for the path
  • lib/sysdep/os/osx/osx.cpp

     
    4949    return ret;
    5050}
    5151
     52OsPath sys_def_logs_dir()
     53{
     54    OsPath dirname("/var/log");
     55    return dirname;
     56}
     57
    5258wchar_t* sys_clipboard_get()
    5359{
    5460    wchar_t* ret = NULL;
  • lib/sysdep/os/unix/unix.cpp

     
    271271#endif
    272272}
    273273
     274OsPath sys_def_logs_dir()
     275{
     276    OsPath dirname("/var/log");
     277    return dirname;
     278}
    274279
    275280Status sys_StatusDescription(int err, wchar_t* buf, size_t max_chars)
    276281{
  • lib/sysdep/os/win/wsysdep.cpp

     
    391391    return GetModulePathname((HMODULE)mbi.AllocationBase, pathname);
    392392}
    393393
     394OsPath sys_def_logs_dir()
     395{
     396    OsPath dirname("");
     397    return dirname;
     398}
    394399
    395400OsPath sys_ExecutablePathname()
    396401{
  • lib/sysdep/sysdep.h

     
    110110LIB_API OsPath sys_ExecutablePathname();
    111111
    112112/**
     113* Get the default log directory
     114*
     115* @return default log directory
     116*/
     117extern OsPath sys_def_logs_dir();
     118
     119/**
    113120 * Get the current user's login name.
    114121 *
    115122 * @return login name, or empty string on error