1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- #include "il2cpp-config.h"
- #if IL2CPP_USE_GENERIC_ENVIRONMENT
- #include "os/Environment.h"
- #include <cstdlib>
- 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("<NotImplemented>");
- }
- void Environment::SetEnvironmentVariable(const std::string& name, const std::string& value)
- {
- }
- std::vector<std::string> Environment::GetEnvironmentVariableNames()
- {
- IL2CPP_NOT_IMPLEMENTED_ICALL(Environment::GetEnvironmentVariableNames);
- return std::vector<std::string>();
- }
- std::string Environment::GetHomeDirectory()
- {
- IL2CPP_NOT_IMPLEMENTED_ICALL(Environment::GetHomeDirectory);
- return std::string();
- }
- std::vector<std::string> Environment::GetLogicalDrives()
- {
- return std::vector<std::string>();
- }
- void Environment::Exit(int result)
- {
- IL2CPP_NOT_IMPLEMENTED_ICALL(Environment::Exit);
- }
- NORETURN void Environment::Abort()
- {
- abort();
- }
- utils::Expected<bool> Environment::Is64BitOs()
- {
- return false;
- }
- }
- }
- #endif
|