Added forced yb_csdm_mode.

Do not export functions that aren't needed for plugin loading.
This commit is contained in:
jeefo 2019-08-29 16:24:24 +03:00
commit 296d3a3637
8 changed files with 163 additions and 108 deletions

View file

@ -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."

View file

@ -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 ();

View file

@ -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 ();