MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / Initialize

Method Initialize

core/logic/ExtensionSys.cpp:49–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47IdentityType_t g_ExtType;
48
49void CExtension::Initialize(const char *filename, const char *path, bool bRequired)
50{
51 m_bRequired = bRequired;
52 m_pAPI = NULL;
53 m_pIdentToken = NULL;
54 unload_code = 0;
55 m_bFullyLoaded = false;
56 m_File.assign(filename);
57 m_Path.assign(path);
58 char real_name[PLATFORM_MAX_PATH];
59 libsys->GetFileFromPath(real_name, sizeof(real_name), m_Path.c_str());
60 m_RealFile.assign(real_name);
61}
62
63CRemoteExtension::CRemoteExtension(IExtensionInterface *pAPI, const char *filename, const char *path)
64{

Callers

nothing calls this directly

Calls 2

GetFileFromPathMethod · 0.80
c_strMethod · 0.45

Tested by

no test coverage detected