2020-11-12 22:25:56 +01:00
|
|
|
/*
|
|
|
|
Some helper string functions
|
|
|
|
JrCs 2014
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <Platform.h> // Only use angled for Platform, else, xcode project won't compile
|
2021-02-06 18:16:46 +01:00
|
|
|
#include "../include/OSTypes.h"
|
2020-11-12 22:25:56 +01:00
|
|
|
#include "../cpp_foundation/XString.h"
|
|
|
|
#include "MacOsVersion.h"
|
|
|
|
|
|
|
|
MacOsVersion nullMacOsVersion;
|
|
|
|
|
|
|
|
|
|
|
|
const XString8 getSuffixForMacOsVersion(int LoaderType)
|
|
|
|
{
|
|
|
|
if (OSTYPE_IS_OSX_INSTALLER(LoaderType)) return "install"_XS8;
|
|
|
|
if (OSTYPE_IS_OSX_RECOVERY(LoaderType)) return "recovery"_XS8;
|
|
|
|
if (OSTYPE_IS_OSX(LoaderType)) return "normal"_XS8;
|
|
|
|
return NullXString8;
|
|
|
|
}
|