SpaghettiKart
Loading...
Searching...
No Matches
ModManager.cpp File Reference
#include "ship/resource/archive/Archive.h"
#include "ModMetadata.h"
#include "ship/resource/archive/FolderArchive.h"
#include "ship/resource/archive/O2rArchive.h"
#include "port/Engine.h"
#include "semver.hpp"
#include "utils/StringHelper.h"
#include <memory>
#include <optional>
#include <string>
#include "ModManager.h"
Include dependency graph for ModManager.cpp:

Functions

void CheckMK64O2RExists ()
 
void FindAndLoadMods ()
 
void PrintModInfo ()
 
void DetectCyclicDependencies ()
 
void DetectOutdatedDependencies ()
 
void SortModsByDependencies ()
 
void InitModsSystem ()
 
void UnloadMods ()
 
void GenerateAssetsMods ()
 
std::vector< std::string > ListMods ()
 
std::optional< std::vector< std::string > > CheckCyclicDependencies ()
 
std::optional< std::vector< std::string > > CheckOutdatedDependencies (const ModMetadata &mod)
 
void AddModMetadata (const ModMetadata &metadata, const std::shared_ptr< Ship::Archive > &archive)
 
void AddCoreDependencies ()
 

Variables

std::vector< std::tuple< ModMetadata, std::shared_ptr< Ship::Archive > > > Mods = {}
 

Function Documentation

◆ AddCoreDependencies()

void AddCoreDependencies ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddModMetadata()

void AddModMetadata ( const ModMetadata & metadata,
const std::shared_ptr< Ship::Archive > & archive )
Here is the caller graph for this function:

◆ CheckCyclicDependencies()

std::optional< std::vector< std::string > > CheckCyclicDependencies ( )
Here is the caller graph for this function:

◆ CheckMK64O2RExists()

void CheckMK64O2RExists ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CheckOutdatedDependencies()

std::optional< std::vector< std::string > > CheckOutdatedDependencies ( const ModMetadata & mod)
Here is the caller graph for this function:

◆ DetectCyclicDependencies()

void DetectCyclicDependencies ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ DetectOutdatedDependencies()

void DetectOutdatedDependencies ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ FindAndLoadMods()

void FindAndLoadMods ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GenerateAssetsMods()

void GenerateAssetsMods ( )
Here is the caller graph for this function:

◆ InitModsSystem()

void InitModsSystem ( )
Here is the call graph for this function:

◆ ListMods()

std::vector< std::string > ListMods ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ PrintModInfo()

void PrintModInfo ( )
Here is the caller graph for this function:

◆ SortModsByDependencies()

void SortModsByDependencies ( )
Here is the caller graph for this function:

◆ UnloadMods()

void UnloadMods ( )

Variable Documentation

◆ Mods

std::vector<std::tuple<ModMetadata, std::shared_ptr<Ship::Archive> > > Mods = {}