@@ -46,7 +46,7 @@ static uint32_t CryptData(uint32_t *data, uint32_t len) {
4646 return check ;
4747}
4848
49- uint32_t LoadPack (int num ) {
49+ uint32_t PACK_load (int num ) {
5050 uint32_t check = 0 ;
5151 if (!packs [num ]) {
5252 packs [num ] = GetResource ("Pack" , num + 128 );
@@ -63,7 +63,7 @@ uint32_t LoadPack(int num) {
6363}
6464
6565// Only used to check if registration is valid.
66- bool CheckPack (int num , uint32_t check ) {
66+ bool PACK_check (int num , uint32_t check ) {
6767 bool ok = false;
6868 if (!packs [num ]) {
6969 packs [num ] = GetResource ("Pack" , num + 128 );
@@ -82,7 +82,7 @@ bool CheckPack(int num, uint32_t check) {
8282 return ok ;
8383}
8484
85- void UnloadPack (int num ) {
85+ void PACK_unload (int num ) {
8686 if (packs [num ]) {
8787 // Any valid pack has been decompressed, which means it is no longer a
8888 // resource handle, but a memory handle, so we must use DisposeHandle to
@@ -92,7 +92,7 @@ void UnloadPack(int num) {
9292 }
9393}
9494
95- Ptr GetSortedPackEntry (int packNum , int entryID , int * size ) {
95+ Ptr PACK_get_sorted_entry (int packNum , int entryID , int * size ) {
9696 PackHeader * pack = (PackHeader * )* packs [packNum ];
9797 int startId = pack [1 ].id ;
9898 uint32_t offset = pack [entryID - startId + 1 ].offset ;
@@ -117,7 +117,7 @@ static int ComparePackHeaders(const void *p1, const void *p2) {
117117// HACK: This was changed a great deal from the original code.
118118// It seems to work okay, but it would be good to revisit the logic
119119// at some point.
120- Ptr GetUnsortedPackEntry (int packNum , int entryID , int * size ) {
120+ Ptr PACK_get_unsorted_entry (int packNum , int entryID , int * size ) {
121121 PackHeader pack = * (PackHeader * )* packs [packNum ];
122122 FLIP_SHORT (pack .id );
123123 FLIP_LONG (pack .offset );
@@ -146,6 +146,6 @@ Ptr GetUnsortedPackEntry(int packNum, int entryID, int *size) {
146146 return (char * )* packs [packNum ] + offset ;
147147}
148148
149- int NumPackEntries (int num ) {
149+ int PACK_num_entries (int num ) {
150150 return packs [num ] ? TO_LITTLE_S ((* * (PackHandle )packs [num ]).id ) : 0 ;
151151}
0 commit comments