wheremyfoodat / Panda3DS

HLE 3DS emulator
https://panda3ds.com/
GNU General Public License v3.0
787 stars 56 forks source link

Index with iterator value rather than getSingleIndex() in CAMService::startCapture #512

Closed NerduMiner closed 1 month ago

NerduMiner commented 1 month ago

The port may have a value of 3 in this function, which will cause a panic when using getSingleIndex(). getPortIndices() handles this case for us already, so the iterator value is safe to use.

Fixes a crash in The Denpa Men: They Came By Wave (USA).

wheremyfoodat commented 1 month ago

Lookin good, thanks!