Skip to content

Commit 43e8cdc

Browse files
committed
Update mdetect.py
Fixed an issue in the detectNintendo() method. It was detecting for "Nintendo" 3 times, probably due to a copy/paste error. Restored checks for Wii and Nintendo DS. Hat tip to Brabadu.
1 parent 098bc79 commit 43e8cdc

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Python/mdetect.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
# *******************************************
2-
# Copyright 2010-2015, Anthony Hand
2+
# Copyright 2010-2016, Anthony Hand
33
#
44
#
5+
# File version 2016.01.07 (May 13, 2015)
6+
# Updates:
7+
# - Fixed an issue in the detectNintendo() method. It was detecting for 'Nintendo' 3 times. Restored checks for Wii and Nintendo DS.
8+
#
59
# File version 2015.05.13 (May 13, 2015)
610
# Updates:
711
# - Moved MobileESP to GitHub. https:#github.com/ahand/mobileesp
@@ -799,8 +803,8 @@ def detectNintendo(self):
799803
Detects if the current device is a Nintendo game device.
800804
"""
801805
return UAgentInfo.deviceNintendo in self.__userAgent \
802-
or UAgentInfo.deviceNintendo in self.__userAgent \
803-
or UAgentInfo.deviceNintendo in self.__userAgent
806+
or UAgentInfo.deviceWii in self.__userAgent \
807+
or UAgentInfo.deviceNintendoDs in self.__userAgent
804808

805809
def detectXbox(self):
806810
"""Return detection of Xbox

0 commit comments

Comments
 (0)