Move DebugReporter from core to logic (bug 5607, r=psychonic).
--HG-- rename : core/DebugReporter.cpp => core/logic/DebugReporter.cpp rename : core/DebugReporter.h => core/logic/DebugReporter.h
This commit is contained in:
+3
-11
@@ -45,7 +45,6 @@
|
||||
#include "ForwardSys.h"
|
||||
#include "TimerSys.h"
|
||||
#include "logic_bridge.h"
|
||||
#include "DebugReporter.h"
|
||||
#include "PlayerManager.h"
|
||||
#include "AdminCache.h"
|
||||
#include "HalfLife2.h"
|
||||
@@ -135,15 +134,6 @@ static bool file_exists(const char *path)
|
||||
return basefilesystem->FileExists(path);
|
||||
}
|
||||
|
||||
static void generate_error(IPluginContext *ctx, cell_t func_idx, int err, const char *fmt, ...)
|
||||
{
|
||||
va_list ap;
|
||||
|
||||
va_start(ap, fmt);
|
||||
g_DbgReporter.GenerateErrorVA(ctx, func_idx, err, fmt, ap);
|
||||
va_end(ap);
|
||||
}
|
||||
|
||||
static const char *get_cvar_string(ConVar* cvar)
|
||||
{
|
||||
return cvar->GetString();
|
||||
@@ -234,6 +224,8 @@ static sm_core_t core_bridge =
|
||||
&g_Players,
|
||||
&g_Admins,
|
||||
&g_HL2,
|
||||
g_pSourcePawn,
|
||||
g_pSourcePawn2,
|
||||
/* Functions */
|
||||
add_natives,
|
||||
find_convar,
|
||||
@@ -246,7 +238,7 @@ static sm_core_t core_bridge =
|
||||
file_exists,
|
||||
get_cvar_string,
|
||||
UTIL_Format,
|
||||
generate_error,
|
||||
UTIL_FormatArgs,
|
||||
gnprintf,
|
||||
atcprintf,
|
||||
get_game_name,
|
||||
|
||||
Reference in New Issue
Block a user