exposed DataPack Handle type
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401197
This commit is contained in:
+10
-1
@@ -25,7 +25,16 @@ class DataPackNatives :
|
||||
public:
|
||||
void OnSourceModAllInitialized()
|
||||
{
|
||||
g_DataPackType = g_HandleSys.CreateType("DataPack", this, 0, NULL, NULL, g_pCoreIdent, NULL);
|
||||
HandleAccess hacc;
|
||||
TypeAccess tacc;
|
||||
|
||||
g_HandleSys.InitAccessDefaults(&tacc, &hacc);
|
||||
tacc.access[HTypeAccess_Create] = true;
|
||||
tacc.access[HTypeAccess_Inherit] = true;
|
||||
tacc.ident = g_pCoreIdent;
|
||||
hacc.access[HandleAccess_Read] = HANDLE_RESTRICT_OWNER;
|
||||
|
||||
g_DataPackType = g_HandleSys.CreateType("DataPack", this, 0, &tacc, &hacc, g_pCoreIdent, NULL);
|
||||
}
|
||||
void OnSourceModShutdown()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user