Ticket #457: t457.patch
File t457.patch, 3.2 KB (added by , 8 years ago) |
---|
-
lib/app_hooks.cpp
43 43 static const OsPath& def_get_log_dir() 44 44 { 45 45 static OsPath logDir; 46 if(logDir.empty()) 46 if (logDir.empty()) 47 logDir = sys_def_logs_dir(); 48 49 if (logDir.empty()) 47 50 logDir = sys_ExecutablePathname().Parent(); 48 51 return logDir; 49 52 } -
lib/sysdep/os/android/android.cpp
42 42 return INFO::OK; 43 43 } 44 44 45 OsPath sys_def_logs_dir() 46 { 47 OsPath dirname("/var/log"); 48 return dirname; 49 } 50 45 51 namespace gfx { 46 52 47 53 Status GetVideoMode(int* xres, int* yres, int* bpp, int* freq) -
lib/sysdep/os/bsd/bsd.cpp
29 29 { 30 30 return unix_ExecutablePathname(); 31 31 } 32 33 OsPath sys_def_logs_dir() 34 { 35 OsPath dirname("/var/log"); 36 return dirname; 37 } -
lib/sysdep/os/linux/linux.cpp
43 43 return true; 44 44 } 45 45 46 OsPath sys_def_logs_dir() 47 { 48 OsPath dirname("/var/log"); 49 return dirname; 50 } 51 46 52 OsPath sys_ExecutablePathname() 47 53 { 48 54 // Check /proc for the path -
lib/sysdep/os/osx/osx.cpp
49 49 return ret; 50 50 } 51 51 52 OsPath sys_def_logs_dir() 53 { 54 OsPath dirname("/var/log"); 55 return dirname; 56 } 57 52 58 wchar_t* sys_clipboard_get() 53 59 { 54 60 wchar_t* ret = NULL; -
lib/sysdep/os/unix/unix.cpp
271 271 #endif 272 272 } 273 273 274 OsPath sys_def_logs_dir() 275 { 276 OsPath dirname("/var/log"); 277 return dirname; 278 } 274 279 275 280 Status sys_StatusDescription(int err, wchar_t* buf, size_t max_chars) 276 281 { -
lib/sysdep/os/win/wsysdep.cpp
391 391 return GetModulePathname((HMODULE)mbi.AllocationBase, pathname); 392 392 } 393 393 394 OsPath sys_def_logs_dir() 395 { 396 OsPath dirname(""); 397 return dirname; 398 } 394 399 395 400 OsPath sys_ExecutablePathname() 396 401 { -
lib/sysdep/sysdep.h
110 110 LIB_API OsPath sys_ExecutablePathname(); 111 111 112 112 /** 113 * Get the default log directory 114 * 115 * @return default log directory 116 */ 117 extern OsPath sys_def_logs_dir(); 118 119 /** 113 120 * Get the current user's login name. 114 121 * 115 122 * @return login name, or empty string on error