mirror of
https://github.com/encounter/aurora.git
synced 2026-07-09 18:19:33 -07:00
974d11dfe7
* Log various system information on startup CPU model, memory, that kinda stuff. * Use WRL ComPtr<T> * Use DXGI to list GPUs on Windows * Compile fix oops * macOS system info * Linux impl * Add comment linking to the microsoft example I used * How did this compile before?
10 lines
299 B
Plaintext
10 lines
299 B
Plaintext
#include "system_info.hpp"
|
|
#include <Foundation/NSProcessInfo.h>
|
|
#include <Foundation/NSString.h>
|
|
|
|
namespace aurora::system_info {
|
|
std::string getSystemVersionString() {
|
|
NSString * str = [[NSProcessInfo processInfo] operatingSystemVersionString];
|
|
return [str UTF8String];
|
|
}
|
|
} |