diff options
Diffstat (limited to 'screenshot_to_homedir.patch')
-rw-r--r-- | screenshot_to_homedir.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/screenshot_to_homedir.patch b/screenshot_to_homedir.patch new file mode 100644 index 00000000000..cd6a12b69cc --- /dev/null +++ b/screenshot_to_homedir.patch @@ -0,0 +1,17 @@ +diff --color -aur src.orig/funnyboat/game.py src/funnyboat/game.py +--- src.orig/funnyboat/game.py 2021-10-16 23:01:03.166957782 +0200 ++++ src/funnyboat/game.py 2021-10-16 23:07:37.429335490 +0200 +@@ -245,10 +245,10 @@ + + def take_screenshot(self): + i = 1 +- filename = "sshot.tga" ++ filename = os.path.join(os.path.expanduser("~"), "sshot.tga") + while os.path.exists(filename): + i += 1 +- filename = "sshot" + str(i) + ".tga" ++ filename = os.path.join(os.path.expanduser("~"), "sshot%s.tga" % i) + + pygame.image.save(self.screen, filename) + print "Screenshot saved as " + filename +Only in src: screenshot_to_homedir.patch |