mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-12-31 12:47:08 +00:00
NOISSUE add basic unit tests for MojangVersionFormat reading/writing
will have to make them pass now
This commit is contained in:
@@ -82,7 +82,10 @@ QJsonObject OsRule::toJson()
|
||||
QJsonObject osObj;
|
||||
{
|
||||
osObj.insert("name", OpSys_toString(m_system));
|
||||
osObj.insert("version", m_version_regexp);
|
||||
if(!m_version_regexp.isEmpty())
|
||||
{
|
||||
osObj.insert("version", m_version_regexp);
|
||||
}
|
||||
}
|
||||
ruleObj.insert("os", osObj);
|
||||
return ruleObj;
|
||||
|
||||
Reference in New Issue
Block a user