Cavestory Mod API
Functions
DedicatedServer

Dedicated server functionality. More...

Functions

CAVESTORY_MOD_API int CSM_DediServer_RunCommand (const char *pFormat,...)
 Run a console command for the server. More...
 

Detailed Description

Dedicated server functionality.

Functions for managing a dedicated server.

Function Documentation

◆ CSM_DediServer_RunCommand()

CAVESTORY_MOD_API int CSM_DediServer_RunCommand ( const char *  pFormat,
  ... 
)

Run a console command for the server.

Parameters
pFormatThe format of the command.
...Arguments for building the string.
Returns
Returns the resulting error code.
Note
Return values: 0 = Quit Game, 2 = No Error
This does not work if a server is not running.