Minetest 5.9.0-dev
 
Loading...
Searching...
No Matches
content.h File Reference
#include "config.h"
#include "convert_json.h"
#include "irrlichttypes.h"
+ Include dependency graph for content.h:
+ This graph shows which files directly or indirectly include this file:

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)
 

Enumeration Type Documentation

◆ ContentType

enum class ContentType
strong
Enumerator
UNKNOWN 
MOD 
MODPACK 
GAME 
TXP 

Function Documentation

◆ getContentType()

ContentType getContentType ( const std::string &  path)

References DIR_DELIM, GAME, MOD, MODPACK, TXP, and UNKNOWN.

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

+ 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(), 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: