From c47fd0ab3e77d2f819bfcccdb0971861d4f411bb Mon Sep 17 00:00:00 2001 From: C. Scott Ananian Date: Wed, 12 Dec 2007 18:39:55 +0000 Subject: Fix cjb's 'disable suspend' patch. --- (limited to 'library') diff --git a/library/pippy/game.py b/library/pippy/game.py index 73bc5ca..c6a96b9 100644 --- a/library/pippy/game.py +++ b/library/pippy/game.py @@ -32,10 +32,11 @@ def pause(): pygame.display.flip() # SUSPEND - # try: - # open('/sys/power/state','w').write('mem') - # except: # XXX: couldn't suspend (no permissions?) - # pygame.event.post(pygame.event.wait()) + try: + raise RuntimeError() # XXX don't try this yet. we should use ohm. + open('/sys/power/state','w').write('mem') + except: # couldn't suspend (no permissions?) + pygame.event.post(pygame.event.wait()) pygame.display.set_caption(caption, icon_caption) screen.blit(old_screen, (0,0)) -- cgit v0.9.1