mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Move common VPK types to dedicated public header
This commit is contained in:
parent
cb0937ed04
commit
69cd41881e
54
r5dev/public/ipackedstore.h
Normal file
54
r5dev/public/ipackedstore.h
Normal file
@ -0,0 +1,54 @@
|
||||
#ifndef IPACKEDSTORE_H
|
||||
#define IPACKEDSTORE_H
|
||||
|
||||
enum class EPackedLoadFlags : int
|
||||
{
|
||||
LOAD_NONE,
|
||||
LOAD_VISIBLE = 1 << 0, // Visible to FileSystem.
|
||||
LOAD_CACHE = 1 << 8, // Only set for assets not stored in the depot directory.
|
||||
LOAD_TEXTURE_UNK0 = 1 << 18,
|
||||
LOAD_TEXTURE_UNK1 = 1 << 19,
|
||||
LOAD_TEXTURE_UNK2 = 1 << 20,
|
||||
};
|
||||
|
||||
enum class EPackedTextureFlags : short
|
||||
{
|
||||
TEXTURE_NONE,
|
||||
TEXTURE_DEFAULT = 1 << 3,
|
||||
TEXTURE_ENVIRONMENT_MAP = 1 << 10,
|
||||
};
|
||||
|
||||
struct FileHandleTracker_t
|
||||
{
|
||||
int m_nFileNumber;
|
||||
int m_nCurOfs;
|
||||
HANDLE m_hFileHandle;
|
||||
};
|
||||
|
||||
struct pFileHandleTracker_t
|
||||
{
|
||||
FileHandleTracker_t self[1024];
|
||||
};
|
||||
|
||||
#pragma pack(push, 1)
|
||||
struct VPKFileEntry_t
|
||||
{
|
||||
char* m_pszDirectory;
|
||||
char* m_pszFileName;
|
||||
char* m_pszExtension;
|
||||
uint8_t unknown[0x38];
|
||||
};
|
||||
|
||||
struct VPKData_t
|
||||
{
|
||||
int m_nHandle;
|
||||
char pad[1];
|
||||
char m_szPath[255];
|
||||
uint8_t unknown2[0x134];
|
||||
int32_t m_nEntries;
|
||||
uint8_t unknown3[12];
|
||||
VPKFileEntry_t* m_pEntries;
|
||||
};
|
||||
#pragma pack(pop)
|
||||
|
||||
#endif // IPACKEDSTORE_H
|
@ -281,6 +281,7 @@
|
||||
<ClInclude Include="..\public\inetchannel.h" />
|
||||
<ClInclude Include="..\public\inetmessage.h" />
|
||||
<ClInclude Include="..\public\inetmsghandler.h" />
|
||||
<ClInclude Include="..\public\ipackedstore.h" />
|
||||
<ClInclude Include="..\public\isnapshotmgr.h" />
|
||||
<ClInclude Include="..\public\isurfacesystem.h" />
|
||||
<ClInclude Include="..\public\ivrenderview.h" />
|
||||
|
@ -1817,6 +1817,9 @@
|
||||
<ClInclude Include="..\tier1\byteswap.h">
|
||||
<Filter>sdk\tier1</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\ipackedstore.h">
|
||||
<Filter>sdk\public</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="..\shared\resource\lockedserver.png">
|
||||
|
@ -231,6 +231,7 @@
|
||||
<ClInclude Include="..\public\inetchannel.h" />
|
||||
<ClInclude Include="..\public\inetmessage.h" />
|
||||
<ClInclude Include="..\public\inetmsghandler.h" />
|
||||
<ClInclude Include="..\public\ipackedstore.h" />
|
||||
<ClInclude Include="..\public\iserver.h" />
|
||||
<ClInclude Include="..\public\isnapshotmgr.h" />
|
||||
<ClInclude Include="..\public\ivscript.h" />
|
||||
|
@ -1266,6 +1266,9 @@
|
||||
<ClInclude Include="..\tier1\byteswap.h">
|
||||
<Filter>sdk\tier1</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\ipackedstore.h">
|
||||
<Filter>sdk\public</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\common\opcodes.cpp">
|
||||
|
@ -308,6 +308,7 @@
|
||||
<ClInclude Include="..\public\inetchannel.h" />
|
||||
<ClInclude Include="..\public\inetmessage.h" />
|
||||
<ClInclude Include="..\public\inetmsghandler.h" />
|
||||
<ClInclude Include="..\public\ipackedstore.h" />
|
||||
<ClInclude Include="..\public\iserver.h" />
|
||||
<ClInclude Include="..\public\isnapshotmgr.h" />
|
||||
<ClInclude Include="..\public\isurfacesystem.h" />
|
||||
|
@ -1913,6 +1913,9 @@
|
||||
<ClInclude Include="..\tier1\utlbuffer.h">
|
||||
<Filter>sdk\tier1</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\ipackedstore.h">
|
||||
<Filter>sdk\public</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="..\shared\resource\lockedserver.png">
|
||||
|
Loading…
x
Reference in New Issue
Block a user