#include "fsCSystem.h"
#include <unordered_set>
#if defined fsANDROID
#include "impl/scapix/android/fsCSystem.h"
#else
#include "impl/scapix/fsCSystem.h"
#endif
fsCPlatformSystem* fsCPlatformSystem::mInstance;
fsBool fsCPlatformSystem::isFireTV() const {<--- The member function 'fsCPlatformSystem::isFireTV' can be static.
static const std::unordered_set<std::string> amazonFireDevices = {
"AFTMM", // Fire stick
"AFTGAZL", // Fire cube
};
const std::string systemName = mInstance->getSystemName(); // Convert to std::string for safer comparison
return amazonFireDevices.find(systemName) != amazonFireDevices.end();
}
std::string fsCPlatformSystem::getSystemName()<--- The member function 'fsCPlatformSystem::getSystemName' can be static.
{
return SystemImpl::systemNameGet();
}
fsCPlatformSystem* const fsCPlatformSystem::getInstance()
{
return mInstance;
}
void fsCPlatformSystem::create()
{
mInstance = new fsCPlatformSystem();
}
void fsCPlatformSystem::destroy()
{
delete mInstance;
}
fsCPlatformSystem::fsCPlatformSystem()
{
}
fsCPlatformSystem::~fsCPlatformSystem()
{
}