mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
gnu: renpy: Update to 8.2.0.
* gnu/packages/aux-files/renpy/renpy.in (path-to-saves): Honour RENPY_PATH_TO_SAVES. (path_to_logdir, predefined_searchpath): New procedures. * gnu/packages/game-development.scm (python-renpy): Update to 8.2.0.
This commit is contained in:
parent
8d79ed2ec3
commit
92d8b4c959
2 changed files with 23 additions and 3 deletions
|
@ -37,7 +37,27 @@ def path_to_saves(gamedir, save_directory=None):
|
|||
if not save_directory:
|
||||
return gamedir + "/saves"
|
||||
|
||||
return os.path.join(os.path.expanduser("~/.renpy"), save_directory)
|
||||
prefix = os.environ.get("RENPY_PATH_TO_SAVES",
|
||||
os.path.expanduser("~/.renpy"))
|
||||
|
||||
return os.path.join(prefix, save_directory)
|
||||
|
||||
def path_to_logdir(basedir):
|
||||
return basedir
|
||||
|
||||
def predefined_searchpath(commondir):
|
||||
import renpy
|
||||
|
||||
# The default gamedir, in private.
|
||||
searchpath = [ renpy.config.gamedir ]
|
||||
|
||||
if env_searchpath := os.environ.get("RENPY_SEARCHPATH"):
|
||||
searchpath.extend(env_searchpath.split("::"))
|
||||
|
||||
if commondir and os.path.isdir(commondir):
|
||||
searchpath.append(commondir)
|
||||
|
||||
return searchpath
|
||||
|
||||
def main():
|
||||
try:
|
||||
|
|
|
@ -1431,7 +1431,7 @@ (define-public python-pygame-sdl2
|
|||
(define-public python-renpy
|
||||
(package
|
||||
(name "python-renpy")
|
||||
(version "8.1.3")
|
||||
(version "8.2.0")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
|
@ -1439,7 +1439,7 @@ (define-public python-renpy
|
|||
"/renpy-" version "-source.tar.bz2"))
|
||||
(sha256
|
||||
(base32
|
||||
"1g6fz5dxp7yxhgv6q4brzf5hpfqq3l1g3dfv3fsiwwn6mj0b01z2"))
|
||||
"02v54qqjjigfqhdr50kzhkdvplk56bvprq65jl57kcs1qhvlf5s9"))
|
||||
(modules '((guix build utils)))
|
||||
(snippet
|
||||
#~(begin
|
||||
|
|
Loading…
Reference in a new issue