Spellforce-Spell-framework
Loading...
Searching...
No Matches
sf_modloader.c File Reference
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "sf_wrappers.h"
#include "sf_modloader.h"
#include "../registry/sf_registry.h"
Include dependency graph for sf_modloader.c:

Go to the source code of this file.

Typedefs

typedef void(* InitModuleFunc) (void *)
 
typedef SFMod *(* RegisterModFunc) (void *)
 

Functions

void cleanup (void *modHandle)
 
const char * get_filename (const char *path)
 
void load_mod (const char *modPath, void *pFrameworkAPI)
 
void load_all_mods (const char *subfolder, void *pFrameworkAPI)
 
void initialize_mods ()
 

Variables

int g_mod_count = 0
 
int g_error_count = 0
 

Typedef Documentation

◆ InitModuleFunc

typedef void(* InitModuleFunc) (void *)

Definition at line 11 of file sf_modloader.c.

◆ RegisterModFunc

typedef SFMod *(* RegisterModFunc) (void *)

Definition at line 12 of file sf_modloader.c.

Function Documentation

◆ cleanup()

void cleanup ( void * modHandle)

Definition at line 16 of file sf_modloader.c.

Here is the caller graph for this function:

◆ get_filename()

const char * get_filename ( const char * path)

Definition at line 26 of file sf_modloader.c.

Here is the caller graph for this function:

◆ initialize_mods()

void initialize_mods ( )

Definition at line 110 of file sf_modloader.c.

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

◆ load_all_mods()

void load_all_mods ( const char * subfolder,
void * pFrameworkAPI )

Definition at line 76 of file sf_modloader.c.

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

◆ load_mod()

void load_mod ( const char * modPath,
void * pFrameworkAPI )

Definition at line 32 of file sf_modloader.c.

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

Variable Documentation

◆ g_error_count

int g_error_count = 0

Definition at line 14 of file sf_modloader.c.

◆ g_mod_count

int g_mod_count = 0

Definition at line 13 of file sf_modloader.c.