Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
content.cpp File Reference
#include <fstream>
#include "content/content.h"
#include "content/subgames.h"
#include "content/mods.h"
#include "filesys.h"
#include "settings.h"
+ Include dependency graph for content.cpp:

Functions

ContentType getContentType (const std::string &path)
 
void parseContentInfo (ContentSpec &spec)
 

Function Documentation

◆ getContentType()

ContentType getContentType ( const std::string & path)

References DIR_DELIM, GAME, fs::IsFile(), MOD, MODPACK, TXP, and UNKNOWN.

Referenced by GUIEngine::getContentTranslations(), and parseContentInfo().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ 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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: