diff options
| author | DimitriPilot3 <DimitriPilot3@gmail.com> | 2011-06-13 15:47:02 +0000 |
|---|---|---|
| committer | DimitriPilot3 <DimitriPilot3@gmail.com> | 2011-06-13 15:47:02 +0000 |
| commit | 98536df915ef836a8225cb9698ca7d4790660b3f (patch) | |
| tree | 82acae0134983a5cc59558f75d48482851559bc6 /Source/Core/InputCommon/Src/ControllerInterface/ControllerInterface.cpp | |
| parent | c84cddc83af65b6cf33f45683663acde5dec81ed (diff) | |
Make sure to reserve() exactly the right amount of elements for the std::vector before filling it with CheatSearchResult's, in order to prevent automatic re-allocations.
It turns out that this (somewhat) gets rid of memory-related exceptions which used to occur (especially) during 8-bit cheat searches. At least this is the case with my computer that has 3GB of RAM (the issue didn't seem to be caused by 100% of RAM usage, however).
Hopefully you'll be able to perform the following steps without errors now:
1. Open any game in Dolphin;
2. Go to Tools->Cheats Manager, and open the "Cheat Search" tab;
3. Preferably set the "Data Size" to 8-bit (the smaller, the more initial search results);
4. Press the "New Scan" button;
5. Use the "Unknown" search filter (which won't narrow the results down at all);
6. Press the "Next Scan" button.
(oh, and fix a typo in a comment I introduced in r6791 :p)
Anyway, make sure to tell me any eventual errors/regressions.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7596 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/InputCommon/Src/ControllerInterface/ControllerInterface.cpp')
0 files changed, 0 insertions, 0 deletions
