Minor cleanup with GOLD define - only use it in System_GetPropertyInt

This commit is contained in:
Henrik Rydgard 2017-04-05 16:21:08 +02:00
parent 3ae13f3c05
commit cf365bb257
15 changed files with 92 additions and 54 deletions

View file

@ -49,7 +49,13 @@
#include "unittest/UnitTest.h"
std::string System_GetProperty(SystemProperty prop) { return ""; }
int System_GetPropertyInt(SystemProperty prop) { return -1; }
int System_GetPropertyInt(SystemProperty prop) {
switch (prop) {
case SYSPROP_APP_GOLD:
return 0;
}
return -1;
}
#ifndef M_PI_2
#define M_PI_2 1.57079632679489661923