mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-12-23 12:10:00 +00:00
Parsing the version files, part II
This commit is contained in:
@@ -15,4 +15,23 @@
|
||||
|
||||
#include "include/library.h"
|
||||
|
||||
RuleAction RuleAction_fromString(QString name)
|
||||
{
|
||||
if(name == "allow")
|
||||
return Allow;
|
||||
if(name == "disallow")
|
||||
return Disallow;
|
||||
return Defer;
|
||||
}
|
||||
|
||||
OpSys OpSys_fromString(QString name)
|
||||
{
|
||||
if(name == "linux")
|
||||
return Os_Linux;
|
||||
if(name == "windows")
|
||||
return Os_Windows;
|
||||
if(name == "osx")
|
||||
return Os_OSX;
|
||||
return Os_Other;
|
||||
}
|
||||
// default url for lib: https://s3.amazonaws.com/Minecraft.Download/libraries/
|
||||
|
||||
Reference in New Issue
Block a user