mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 17:35:34 -04:00
take the user to graphics problem page in case it fails to open a window
This commit is contained in:
parent
feeb28387f
commit
137beef85f
@ -498,7 +498,13 @@ class ShowBase(DirectObject.DirectObject):
|
|||||||
# This doesn't really need to be an error condition, but I
|
# This doesn't really need to be an error condition, but I
|
||||||
# figure any app that includes ShowBase really wants to
|
# figure any app that includes ShowBase really wants to
|
||||||
# have a window open.
|
# have a window open.
|
||||||
|
|
||||||
|
# For toontown, it is possible that window open failed
|
||||||
|
# because of a graphics card issue. In that case, take
|
||||||
|
# user to the appropriate page.
|
||||||
|
self.setPandaErrorCode(14)
|
||||||
self.notify.error("Unable to open '%s' window." % (self.windowType))
|
self.notify.error("Unable to open '%s' window." % (self.windowType))
|
||||||
|
sys.exit()
|
||||||
|
|
||||||
return (self.win != None)
|
return (self.win != None)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user