HMCLauncher: try bundled JRE

This commit is contained in:
huanghongxun
2019-02-08 22:05:16 +08:00
parent f0c7f54cc6
commit 426ea607e8
12 changed files with 375 additions and 5 deletions

View File

@@ -0,0 +1,15 @@
#include "stdafx.h"
#include "Version.h"
Version::Version(const std::wstring & rawString)
{
int idx = 0;
ver[0] = ver[1] = ver[2] = ver[3] = 0;
for (auto &i : rawString)
{
if (idx >= 4) break;
if (i == '.') ++idx;
else if (i == '_') ++idx;
else if (isdigit(i)) ver[idx] = ver[idx] * 10 + (i - L'0');
}
}