#include <fstream>
#include "content/content.h"
#include "content/subgames.h"
#include "content/mods.h"
#include "filesys.h"
#include "settings.h"
Enumerations | |
enum | ContentType { ECT_UNKNOWN , ECT_MOD , ECT_MODPACK , ECT_GAME , ECT_TXP } |
Functions | |
ContentType | getContentType (const ContentSpec &spec) |
void | parseContentInfo (ContentSpec &spec) |
enum ContentType |
ContentType getContentType | ( | const ContentSpec & | spec | ) |
References DIR_DELIM, ECT_GAME, ECT_MOD, ECT_MODPACK, ECT_TXP, ECT_UNKNOWN, and ContentSpec::path.
Referenced by parseContentInfo().
void parseContentInfo | ( | ContentSpec & | spec | ) |
References ContentSpec::author, ContentSpec::desc, DIR_DELIM, ECT_GAME, ECT_MOD, ECT_MODPACK, ECT_TXP, Settings::exists(), Settings::get(), getContentType(), Settings::getS32(), ContentSpec::name, ContentSpec::path, Settings::readConfigFile(), ContentSpec::release, and ContentSpec::type.
Referenced by ModApiMainMenu::l_get_content_info().