Showing the changes to interface/src/scripting/PlatformInfoScriptingInterface.cpp (1 of 1 file). Show all
Unified · Split
| @@ -64,6 +64,8 @@ QString PlatformInfoScriptingInterface::getCPUBrand() { · 63 unmodified lines | ||
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | return QString::fromStdString(hostStream.str()); |
| 67 | +#else | |
| 68 | + return QString("NO IMPLEMENTED"); | |
| 67 | 69 | #endif |
| 68 | 70 | } |
| 69 | 71 | |
| @@ -91,6 +93,8 @@ int PlatformInfoScriptingInterface::getTotalSystemMemoryMB() { · 21 unmodified lines | ||
| 91 | 93 | QString result = QString::fromStdString(hostStream.str()); |
| 92 | 94 | QStringList parts = result.split(' '); |
| 93 | 95 | return (int)(parts[1].toDouble() / 1024 / 1024); |
| 96 | +#else | |
| 97 | + return -1; | |
| 94 | 98 | #endif |
| 95 | 99 | } |
| 96 | 100 | |
| @@ -115,7 +119,9 @@ QString PlatformInfoScriptingInterface::getGraphicsCardType() { · 18 unmodified lines | ||
| 115 | 119 | } |
| 116 | 120 | } |
| 117 | 121 | |
| 122 | + // unkown graphics card | |
| 118 | 123 | return "UNKNOWN"; |
| 124 | +#else | |
| 125 | + return QString("NO IMPLEMENTED"); | |
| 119 | 126 | #endif |
| 120 | − | |
| 121 | 127 | } |