1.1 --- a/core/smn_datapacks.cpp Fri Jul 27 04:37:00 2007 +0000
1.2 +++ b/core/smn_datapacks.cpp Fri Jul 27 15:45:15 2007 +0000
1.3 @@ -25,7 +25,16 @@
1.4 public:
1.5 void OnSourceModAllInitialized()
1.6 {
1.7 - g_DataPackType = g_HandleSys.CreateType("DataPack", this, 0, NULL, NULL, g_pCoreIdent, NULL);
1.8 + HandleAccess hacc;
1.9 + TypeAccess tacc;
1.10 +
1.11 + g_HandleSys.InitAccessDefaults(&tacc, &hacc);
1.12 + tacc.access[HTypeAccess_Create] = true;
1.13 + tacc.access[HTypeAccess_Inherit] = true;
1.14 + tacc.ident = g_pCoreIdent;
1.15 + hacc.access[HandleAccess_Read] = HANDLE_RESTRICT_OWNER;
1.16 +
1.17 + g_DataPackType = g_HandleSys.CreateType("DataPack", this, 0, &tacc, &hacc, g_pCoreIdent, NULL);
1.18 }
1.19 void OnSourceModShutdown()
1.20 {
2.1 --- a/public/ISourceMod.h Fri Jul 27 04:37:00 2007 +0000
2.2 +++ b/public/ISourceMod.h Fri Jul 27 15:45:15 2007 +0000
2.3 @@ -139,15 +139,10 @@
2.4 virtual void FreeDataPack(IDataPack *pack) =0;
2.5
2.6 /**
2.7 - * @brief Returns the automated data pack handle type.
2.8 + * @brief Not implemented, do not use.
2.9 *
2.10 - * The read-only data type is the parent of the writable type.
2.11 - * Note that calling CloseHandle() on either type will release the data pack.
2.12 - * The read-only type is inheritable, but due to limitations of the Handle System,
2.13 - * the writable type is not.
2.14 - *
2.15 - * @param readonly If true, the read-only type will be returned.
2.16 - * @return The Handle type for storing generic data packs.
2.17 + * @param readonly Ignored
2.18 + * @return 0
2.19 */
2.20 virtual HandleType_t GetDataPackHandleType(bool readonly=false) =0;
2.21