-
-
Notifications
You must be signed in to change notification settings - Fork 452
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Merge branch 'master' into marker
Showing
4 changed files
with
1,947 additions
and
1,893 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/***************************************************************************** | ||
* | ||
* PROJECT: Multi Theft Auto v1.0 | ||
* LICENSE: See LICENSE in the top level directory | ||
* FILE: game_sa/CPtrNodeSingleListSA.cpp | ||
* | ||
* Multi Theft Auto is available from http://www.multitheftauto.com/ | ||
* | ||
*****************************************************************************/ | ||
|
||
#pragma once | ||
|
||
template <class T> | ||
struct CPtrNodeSingleLink | ||
{ | ||
T* pItem; | ||
CPtrNodeSingleLink* pNext; | ||
}; | ||
|
||
template <class T> | ||
class CPtrNodeSingleListSAInterface | ||
{ | ||
public: | ||
void RemoveItem(T* item); | ||
void RemoveAllItems(); | ||
|
||
private: | ||
CPtrNodeSingleLink<T>* m_pList; | ||
}; | ||
|
||
template <class T> | ||
void CPtrNodeSingleListSAInterface<T>::RemoveItem(T* item) | ||
{ | ||
using CPtrNodeSingleList_RemoveItem_t = void(__thiscall*)(CPtrNodeSingleListSAInterface<T> * pLinkList, void* item); | ||
((CPtrNodeSingleList_RemoveItem_t)0x533610)(this, item); | ||
} | ||
|
||
template <class T> | ||
void CPtrNodeSingleListSAInterface<T>::RemoveAllItems() | ||
{ | ||
while (m_pList) | ||
{ | ||
RemoveItem(m_pList->pItem); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3,784 changes: 1,891 additions & 1,893 deletions
3,784
Shared/data/MTA San Andreas/MTA/locale/en_US/client.pot
Large diffs are not rendered by default.
Oops, something went wrong.