Showing the changes to interface/src/scripting/PlatformInfoScriptingInterface.cpp (1 of 16 files). Show all
Unified · Split
| @@ -192,7 +192,7 @@ QString PlatformInfoScriptingInterface::getDisplay(int index) { · 191 unmodified lines | ||
| 192 | 192 | } |
| 193 | 193 | |
| 194 | 194 | QString PlatformInfoScriptingInterface::getMemory() { |
| 195 | − auto desc = platform::getMemory(0); | |
| 195 | + auto desc = platform::getMemory(); | |
| 196 | 196 | return QString(desc.dump().c_str()); |
| 197 | 197 | } |
| 198 | 198 | |
| @@ -201,6 +201,10 @@ QString PlatformInfoScriptingInterface::getComputer() { · 2 unmodified lines | ||
| 201 | 201 | return QString(desc.dump().c_str()); |
| 202 | 202 | } |
| 203 | 203 | |
| 204 | +QString PlatformInfoScriptingInterface::getPlatform() { | |
| 205 | + auto desc = platform::getAll(); | |
| 206 | + return QString(desc.dump().c_str()); | |
| 207 | +} | |
| 204 | 208 | |
| 205 | 209 | PlatformInfoScriptingInterface::PlatformTier PlatformInfoScriptingInterface::getTierProfiled() { |
| 206 | 210 | return (PlatformInfoScriptingInterface::PlatformTier) platform::Profiler::profilePlatform(); |