mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 13:49:53 -06:00
implement PointerWrap::Do(std::map<unsigned int, T>)
This commit is contained in:
@ -77,12 +77,6 @@ public:
|
|||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
void Do(std::map<unsigned int, T> &x)
|
void Do(std::map<unsigned int, T> &x)
|
||||||
{
|
|
||||||
// TODO
|
|
||||||
PanicAlert("Do(map<>) does not yet work.");
|
|
||||||
}
|
|
||||||
|
|
||||||
void Do(std::map<unsigned int, std::string> &x)
|
|
||||||
{
|
{
|
||||||
unsigned int number = (unsigned int)x.size();
|
unsigned int number = (unsigned int)x.size();
|
||||||
Do(number);
|
Do(number);
|
||||||
@ -94,7 +88,7 @@ public:
|
|||||||
{
|
{
|
||||||
unsigned int first = 0;
|
unsigned int first = 0;
|
||||||
Do(first);
|
Do(first);
|
||||||
std::string second;
|
T second;
|
||||||
Do(second);
|
Do(second);
|
||||||
x[first] = second;
|
x[first] = second;
|
||||||
--number;
|
--number;
|
||||||
@ -105,7 +99,7 @@ public:
|
|||||||
case MODE_MEASURE:
|
case MODE_MEASURE:
|
||||||
case MODE_VERIFY:
|
case MODE_VERIFY:
|
||||||
{
|
{
|
||||||
std::map<unsigned int, std::string>::iterator itr = x.begin();
|
std::map<unsigned int, T>::iterator itr = x.begin();
|
||||||
while (number > 0)
|
while (number > 0)
|
||||||
{
|
{
|
||||||
Do(itr->first);
|
Do(itr->first);
|
||||||
|
Reference in New Issue
Block a user