mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-14 13:15:14 +03:00
Fixed GetDiskFreeSpace in OS X.
Added codename printing at engine start.
This commit is contained in:
@@ -577,7 +577,11 @@ Int64 Sys::GetDiskFreeSpace(const std::string& path) {
|
||||
#if defined( EE_PLATFORM_POSIX )
|
||||
struct statvfs data;
|
||||
statvfs(path.c_str(), &data);
|
||||
#if EE_PLATFORM != EE_PLATFORM_MACOSX
|
||||
return (Int64)data.f_bsize * (Int64)data.f_bfree;
|
||||
#else
|
||||
return (Int64)data.f_frsize * (Int64)data.f_bfree;
|
||||
#endif
|
||||
#elif EE_PLATFORM == EE_PLATFORM_WIN
|
||||
Int64 AvailableBytes;
|
||||
Int64 TotalBytes;
|
||||
|
||||
@@ -376,7 +376,7 @@ void cWindow::SendVideoResizeCb() {
|
||||
}
|
||||
|
||||
void cWindow::LogSuccessfulInit( const std::string& BackendName ) {
|
||||
cLog::instance()->Write( "Engine Initialized Succesfully.\n\tVersion: " + Version::GetVersionName() +
|
||||
cLog::instance()->Write( "Engine Initialized Succesfully.\n\tVersion: " + Version::GetVersionName() + " (codename: \"" + Version::GetCodename() + "\")" +
|
||||
"\n\tOS: " + Sys::GetOSName() +
|
||||
"\n\tArch: " + Sys::GetOSArchitecture() +
|
||||
"\n\tCPU Cores: " + String::ToStr( Sys::GetCPUCount() ) +
|
||||
|
||||
Reference in New Issue
Block a user