[los-cocos] r1224 committed - fix 190, Mac crash related to

2 views
Skip to first unread message

codesite...@google.com

unread,
May 23, 2013, 8:54:36 AM5/23/13
to cocos-...@googlegroups.com
Revision: 1224
Author: ccanepacc
Date: Thu May 23 05:54:20 2013
Log: fix 190, Mac crash related to
http://code.google.com/p/los-cocos/source/detail?r=1224

Modified:
/trunk/CHANGELOG
/trunk/cocos/audio/SDL/dll.py

=======================================
--- /trunk/CHANGELOG Sun Aug 12 16:57:46 2012
+++ /trunk/CHANGELOG Thu May 23 05:54:20 2013
@@ -1,3 +1,6 @@
+v0.5.7 -
+ - fix Mac crash due to nonmatching SDL dlls when not using SDL audio
(patch by useb...@gmail.com, issue 190)
+
v0.5.5 - August 12, 2012
- fix issue 168, now particle textures are propper (this can change
visual size for particlers in old code)
- fix issue 184, BatchNode now honors the visible flag, patch by
corent...@gmail.com
=======================================
--- /trunk/cocos/audio/SDL/dll.py Mon Jun 11 04:39:24 2012
+++ /trunk/cocos/audio/SDL/dll.py Thu May 23 05:54:20 2013
@@ -95,7 +95,10 @@
if not library:
raise ImportError, 'Dynamic library "%s" was not found' % \
_platform_library_name(self.library_name)
- self._dll = getattr(cdll, library)
+ try:
+ self._dll = getattr(cdll, library)
+ except OSError:
+ raise ImportError, "Dynamic library not found"

def version_compatible(self, v):
'''Returns True iff `v` is equal to or later than the loaded
library
Reply all
Reply to author
Forward
0 new messages