#include "il2cpp-config.h" #if IL2CPP_USE_GENERIC_ENVIRONMENT #include "os/Environment.h" #include namespace il2cpp { namespace os { std::string Environment::GetMachineName() { return "il2cpp"; } int32_t Environment::GetProcessorCount() { return 1; } std::string Environment::GetOsVersionString() { return "0.0.0.0"; } std::string Environment::GetOsUserName() { return "Unknown"; } std::string Environment::GetEnvironmentVariable(const std::string& name) { return std::string(""); } void Environment::SetEnvironmentVariable(const std::string& name, const std::string& value) { } std::vector Environment::GetEnvironmentVariableNames() { IL2CPP_NOT_IMPLEMENTED_ICALL(Environment::GetEnvironmentVariableNames); return std::vector(); } std::string Environment::GetHomeDirectory() { IL2CPP_NOT_IMPLEMENTED_ICALL(Environment::GetHomeDirectory); return std::string(); } std::vector Environment::GetLogicalDrives() { return std::vector(); } void Environment::Exit(int result) { IL2CPP_NOT_IMPLEMENTED_ICALL(Environment::Exit); } NORETURN void Environment::Abort() { abort(); } utils::Expected Environment::Is64BitOs() { return false; } } } #endif