Minetest  5.4.0
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:

Enumerations

enum  ContentType {
  ECT_UNKNOWN , ECT_MOD , ECT_MODPACK , ECT_GAME ,
  ECT_TXP
}
 

Functions

ContentType getContentType (const ContentSpec &spec)
 
void parseContentInfo (ContentSpec &spec)
 

Enumeration Type Documentation

◆ ContentType

Enumerator
ECT_UNKNOWN 
ECT_MOD 
ECT_MODPACK 
ECT_GAME 
ECT_TXP 

Function Documentation

◆ getContentType()

ContentType getContentType ( const ContentSpec spec)

References DIR_DELIM, ECT_GAME, ECT_MOD, ECT_MODPACK, ECT_TXP, ECT_UNKNOWN, and ContentSpec::path.

Referenced by parseContentInfo().

+ Here is the caller graph for this function:

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

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