CloverBootloader/rEFIt_UEFI/Platform/MacOsVersion.cpp

21 lines
536 B
C++
Raw Normal View History

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
#include "../include/OsType.h"
#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;
}