mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 09:59:59 +03:00
Parsing the version files, part II
This commit is contained in:
parent
18853ca3fa
commit
97cf08f964
5 changed files with 246 additions and 34 deletions
|
|
@ -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/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue