Added forced yb_csdm_mode.
Do not export functions that aren't needed for plugin loading.
This commit is contained in:
parent
d04f44d8fc
commit
296d3a3637
8 changed files with 163 additions and 108 deletions
|
|
@ -35,11 +35,13 @@ CR_NAMESPACE_BEGIN
|
|||
#endif
|
||||
|
||||
// configure macroses
|
||||
#define CR_LINKAGE_C extern "C"
|
||||
|
||||
#if defined(CR_WINDOWS)
|
||||
# define CR_EXPORT extern "C" __declspec (dllexport)
|
||||
# define CR_EXPORT CR_LINKAGE_C __declspec (dllexport)
|
||||
# define CR_STDCALL __stdcall
|
||||
#elif defined(CR_LINUX) || defined(CR_OSX)
|
||||
# define CR_EXPORT extern "C" __attribute__((visibility("default")))
|
||||
# define CR_EXPORT CR_LINKAGE_C __attribute__((visibility("default")))
|
||||
# define CR_STDCALL
|
||||
#else
|
||||
# error "Can't configure export macros. Compiler unrecognized."
|
||||
|
|
|
|||
|
|
@ -171,7 +171,7 @@ public:
|
|||
bool postload ();
|
||||
|
||||
// detects if csdm mod is in use
|
||||
void detectDeathmatch ();
|
||||
void applyGameModes ();
|
||||
|
||||
// executes stuff every 1 second
|
||||
void slowFrame ();
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ public:
|
|||
~MessageDispatcher () = default;
|
||||
|
||||
public:
|
||||
void registerMessage (const String &name, int32 id);
|
||||
int32 add (const String &name, int32 id);
|
||||
void start (edict_t *ent, int32 type);
|
||||
void stop ();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue