Skip to content

Commit

Permalink
fix pathes
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Adenis-Lamarre <[email protected]>
  • Loading branch information
nadenislamarre committed Sep 26, 2022
1 parent 32c5003 commit d7f8841
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,18 @@
from generators.Generator import Generator
import Command
import os
import batoceraFiles # GLOBAL VARIABLES

class YuzuGenerator(Generator):

def generate(self, system, rom, playersControllers, guns, gameResolution):

if not os.path.exists(batoceraFiles.CONF+"/yuzu"):
os.makedirs(batoceraFiles.CONF+"/yuzu")

commandArray = ["/usr/bin/yuzu", "-f", "-g", rom ]
return Command.Command(array=commandArray, env={"QT_QPA_PLATFORM":"xcb"})
return Command.Command(array=commandArray, env={
"XDG_CONFIG_HOME":batoceraFiles.CONF, \
"XDG_DATA_HOME":batoceraFiles.SAVES + "/switch", \
"XDG_CACHE_HOME":batoceraFiles.CACHE, \
"QT_QPA_PLATFORM":"xcb"})

0 comments on commit d7f8841

Please sign in to comment.