mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-30 10:06:35 +03:00
Renamed AppPath() for GetProcessPath()
Renamed GetNumCPUs() for GetCPUCount() GetProcessPath() Added Haiku, BSD and Solaris implementations. Added GetOSName() Added GetOSArchitecture() Changed some SOIL_load_image calls for stbi_load ( avoid depending in SOIL when isn't needed ). Fixed a bug on cWindow::mFrameData, the structure values werent initialized and in some rare case scenario this provoked a crash.
This commit is contained in:
@@ -17,9 +17,9 @@ cResourceLoader::~cResourceLoader() {
|
||||
|
||||
void cResourceLoader::SetThreads() {
|
||||
if ( THREADS_AUTO == mThreads ) {
|
||||
mThreads = GetNumCPUs();
|
||||
mThreads = GetCPUCount();
|
||||
/**
|
||||
eeInt NumCpus = GetNumCPUs() - 1;
|
||||
eeInt NumCpus = GetCPUCount() - 1;
|
||||
|
||||
if ( NumCpus > 1 )
|
||||
mThreads = NumCpus;
|
||||
|
||||
Reference in New Issue
Block a user