History

One more pass of clean up on the platform api, returning the complete description in a single call, adding the version of the OS and deprecating legacy PlatformInfo calls

Sam Gateau committed 7 years ago

Commit 53094ef1 parent 7ad097516 files · +210 −111Browse files

Showing the changes to interface/src/scripting/PlatformInfoScriptingInterface.cpp (1 of 16 files). Show all

Unified · Split

interface/src/scripting/PlatformInfoScriptingInterface.cpp+5−1
@@ -192,7 +192,7 @@ QString PlatformInfoScriptingInterface::getDisplay(int index) { · 191 unmodified lines
192192 }
193193
194194 QString PlatformInfoScriptingInterface::getMemory() {
195− auto desc = platform::getMemory(0);
195+ auto desc = platform::getMemory();
196196 return QString(desc.dump().c_str());
197197 }
198198
@@ -201,6 +201,10 @@ QString PlatformInfoScriptingInterface::getComputer() { · 2 unmodified lines
201201 return QString(desc.dump().c_str());
202202 }
203203
204+QString PlatformInfoScriptingInterface::getPlatform() {
205+ auto desc = platform::getAll();
206+ return QString(desc.dump().c_str());
207+}
204208
205209 PlatformInfoScriptingInterface::PlatformTier PlatformInfoScriptingInterface::getTierProfiled() {
206210 return (PlatformInfoScriptingInterface::PlatformTier) platform::Profiler::profilePlatform();