Show
Ignore:
Timestamp:
11/19/08 13:43:30 (17 years ago)
Author:
yumileroy
Message:

[svn] * Avoid access to bag item prototype for getting bag size, use related item
update field instead as more fast source. source mangos.
* Further reduce of DB access in guild handlers.
* Multi-locale DBC extracting - source Foks

*** Devs not responsible if all your player items drop to the ground and get eaten by ants or rabbits.. or some kind of wierd ant-rabbits..

Original author: KingPin?
Date: 2008-11-06 08:20:26-06:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/contrib/extractor/mpq_libmpq.h

    r2 r177  
    5252    } 
    5353 
    54     vector<string> GetFileList() { 
    55         vector<string> filelist; 
    56  
     54    void GetFileListTo(vector<string>& filelist) { 
    5755        mpq_hash hash = GetHashEntry("(listfile)"); 
    5856        uint32 blockindex = hash.blockindex; 
    5957 
    6058        if ((blockindex == 0xFFFFFFFF) || (blockindex == 0)) 
    61             return filelist; 
     59            return; 
    6260 
    6361        uint32 size = libmpq_file_info(&mpq_a, LIBMPQ_FILE_UNCOMPRESSED_SIZE, blockindex); 
     
    8078        } 
    8179 
    82         delete buffer; 
    83         return filelist; 
     80        delete[] buffer; 
    8481    } 
    8582};