Fix compile and try to prevent that from happening in the future
This commit is contained in:
@@ -62,15 +62,14 @@ public:
|
|||||||
|
|
||||||
const auto data = root[mType];
|
const auto data = root[mType];
|
||||||
#if LL_WINDOWS
|
#if LL_WINDOWS
|
||||||
std::string recommended_version = data["recommended"]["windows"];
|
constexpr auto platform = "windows";
|
||||||
std::string minimum_version = data["minimum"]["windows"];
|
|
||||||
#elif LL_LINUX
|
#elif LL_LINUX
|
||||||
std::string recommended_version = data["recommended"]["linux"].asString();
|
constexpr auto platform = "linux";
|
||||||
std::string minimum_version = data["minimum"]["linux"].asString();
|
|
||||||
#elif LL_DARWIN
|
#elif LL_DARWIN
|
||||||
std::string recommended_version = data["recommended"]["apple"].asString();
|
constexpr auto platform = "apple";
|
||||||
std::string minimum_version = data["minimum"]["apple"].asString();
|
|
||||||
#endif
|
#endif
|
||||||
|
std::string recommended_version = data["recommended"][platform];
|
||||||
|
std::string minimum_version = data["minimum"][platform];
|
||||||
|
|
||||||
S32 minimum_build, recommended_build;
|
S32 minimum_build, recommended_build;
|
||||||
sscanf(recommended_version.c_str(), "%*i.%*i.%*i (%i)", &recommended_build);
|
sscanf(recommended_version.c_str(), "%*i.%*i.%*i (%i)", &recommended_build);
|
||||||
|
|||||||
Reference in New Issue
Block a user