#include <fstream>
#include "content/content.h"
#include "content/subgames.h"
#include "content/mods.h"
#include "filesys.h"
#include "settings.h"
Functions | |
ContentType | getContentType (const std::string &path) |
void | parseContentInfo (ContentSpec &spec) |
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().