Go to the source code of this file.
Classes | |
struct | ContentSpec |
Enumerations | |
enum class | ContentType { UNKNOWN , MOD , MODPACK , GAME , TXP } |
Functions | |
ContentType | getContentType (const std::string &path) |
void | parseContentInfo (ContentSpec &spec) |
|
strong |
ContentType getContentType | ( | const std::string & | path | ) |
References DIR_DELIM, GAME, fs::IsFile(), MOD, MODPACK, TXP, and UNKNOWN.
Referenced by GUIEngine::getContentTranslations(), and parseContentInfo().
void parseContentInfo | ( | ContentSpec & | spec | ) |
References ContentSpec::author, ContentSpec::desc, DIR_DELIM, Settings::exists(), GAME, Settings::get(), getContentType(), fs::GetFilenameFromPath(), Settings::getS32(), MOD, MODPACK, ContentSpec::name, ContentSpec::path, Settings::readConfigFile(), fs::ReadFile(), ContentSpec::release, ContentSpec::textdomain, ContentSpec::title, TXP, and ContentSpec::type.
Referenced by ModApiMainMenu::l_get_content_info().