少年修仙传客户端基础资源
hch
2024-04-01 d01413b00ef631ac20347716b23818b0b811f65f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#pragma once
#include "il2cpp-config.h"
#include <string>
#include <stdint.h>
#include <vector>
 
#undef SetEnvironmentVariable // Get rid of windows.h #define.
#undef GetEnvironmentVariable // Get rid of windows.h #define.
 
struct Il2CppArray;
 
namespace il2cpp
{
namespace os
{
    class Environment
    {
    public:
        static std::string GetMachineName();
        static int32_t GetProcessorCount();
        static std::string GetOsVersionString();
        static std::string GetOsUserName();
        static std::string GetEnvironmentVariable(const std::string& name);
        static void SetEnvironmentVariable(const std::string& name, const std::string& value);
        static std::vector<std::string> GetEnvironmentVariableNames();
        static std::string GetHomeDirectory();
        static std::vector<std::string> GetLogicalDrives();
        static void Exit(int result);
        static NORETURN void Abort();
        static std::string GetWindowsFolderPath(int32_t folder);
 
        static bool Is64BitOs();
    };
}
}