Slot-2:
- Fix possible crash on init when using expansion memory.

git-svn-id: https://svn.code.sf.net/p/desmume/code/trunk@4951 5577840e-afb3-4e59-9ef3-2b7f898b1952
Slot-2:
- Fix SLOT-2 connect/disconnect behaviors when switching in and out of auto-detect mode.
- Do some cleanup on the auto-detect code.

git-svn-id: https://svn.code.sf.net/p/desmume/code/trunk@4952 5577840e-afb3-4e59-9ef3-2b7f898b1952
Cocoa Port:
- Fix a possible crashing bug that was exposed by the changes from r4952.

git-svn-id: https://svn.code.sf.net/p/desmume/code/trunk@4953 5577840e-afb3-4e59-9ef3-2b7f898b1952