mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 11:43:04 +08:00
[saco] Match the three CDownloadList delete helpers; _snprintf with sizeof(buf) - 1 into a 261-byte frame
This commit is contained in:
@@ -67,6 +67,37 @@ bool CDownloadManager::FUNC_1000C010()
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
// the three removal helpers below only ever look in the first search dir
|
||||
BOOL CDownloadList::FUNC_1000C590(DWORD dwId)
|
||||
{
|
||||
char szPath[261];
|
||||
|
||||
_snprintf(szPath, sizeof(szPath) - 1, "%s\\0x%X.dff", szDir1, dwId);
|
||||
return DeleteFile(szPath);
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
BOOL CDownloadList::FUNC_1000C5D0(DWORD dwId)
|
||||
{
|
||||
char szPath[261];
|
||||
|
||||
_snprintf(szPath, sizeof(szPath) - 1, "%s\\0x%X.txd", szDir1, dwId);
|
||||
return DeleteFile(szPath);
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
BOOL CDownloadList::FUNC_1000C610(char *szName)
|
||||
{
|
||||
char szPath[261];
|
||||
|
||||
_snprintf(szPath, sizeof(szPath) - 1, "%s\\%s", szDir1, szName);
|
||||
return DeleteFile(szPath);
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
bool CDownloadList::FUNC_1000D110(DWORD dwCrc)
|
||||
{
|
||||
for(DWORD i = 0; i != m_dwCount; i++)
|
||||
|
||||
@@ -67,6 +67,9 @@ public:
|
||||
|
||||
DOWNLOAD_ENTRY *GetAt(DWORD dwIndex) { if(dwIndex >= m_dwCount) return NULL; return m_pEntries[dwIndex]; }
|
||||
|
||||
BOOL FUNC_1000C590(DWORD dwId); // .text:1000C590
|
||||
BOOL FUNC_1000C5D0(DWORD dwId); // .text:1000C5D0
|
||||
BOOL FUNC_1000C610(char *szName); // .text:1000C610
|
||||
bool FUNC_1000D110(DWORD dwCrc); // .text:1000D110
|
||||
bool FUNC_1000D150(DWORD dwCrc); // .text:1000D150
|
||||
char FUNC_1000D190(DWORD dwCrc); // .text:1000D190
|
||||
|
||||
Reference in New Issue
Block a user