File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed
source/gameanalytics/Platform Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 22#define _GADEVICEOSX_H
33
44#include " GACommon.h"
5+ #include < string>
56
67#if IS_MAC
78
8- const char * getOSXVersion ();
9- const char * getConnectionType ();
9+ std::string getOSXVersion ();
10+ std::string getConnectionType ();
1011int getNumCpuCores ();
1112int64_t getTotalDeviceMemory ();
12- const char * getGPUName ();
13+ std::string getGPUName ();
1314
1415#endif
1516
Original file line number Diff line number Diff line change 2626 NSInteger patchVersion;
2727} MyOperatingSystemVersion;
2828
29- const char * getOSXVersion ()
29+ std::string getOSXVersion ()
3030{
3131 if (floor (kCFCoreFoundationVersionNumber ) > kCFCoreFoundationVersionNumber10_9 )
3232 {
@@ -64,7 +64,7 @@ SCNetworkReachabilityRef createReachabilityRef()
6464 return reachabilityRef;
6565}
6666
67- const char * getConnectionType ()
67+ std::string getConnectionType ()
6868{
6969 // todo: keep this in a class
7070 static SCNetworkReachabilityRef reachabilityRef = createReachabilityRef ();
@@ -107,7 +107,7 @@ int64_t getTotalDeviceMemory()
107107 return (uint64_t )info.physicalMemory ;
108108}
109109
110- const char * getGPUName ()
110+ std::string getGPUName ()
111111{
112112 NSArray * devices = MTLCopyAllDevices ();
113113 if (devices && [devices count ])
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ static struct sigaction prevSigAction;
1717
1818std::string gameanalytics::GAPlatformMacOS::getOSVersion ()
1919{
20- const char * osxVersion = getOSXVersion ();
20+ std::string osxVersion = getOSXVersion ();
2121 return getBuildPlatform () + " " + osxVersion;
2222}
2323
You can’t perform that action at this time.
0 commit comments