CloverBootloader/rEFIt_UEFI/Platform/MacOsVersion.cpp
2020-11-13 00:25:56 +03:00

21 lines
536 B
C++
Executable File

/*
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;
}