示例#1
0
 def prelaunch(self):
     """Run actions before running the game, override this method in runners"""
     available_libs = set()
     for lib in set(self.require_libs):
         if lib in LINUX_SYSTEM.shared_libraries:
             available_libs.add(lib)
     unavailable_libs = set(self.require_libs) - available_libs
     if unavailable_libs:
         raise UnavailableLibraries(unavailable_libs)
     return True
示例#2
0
文件: citra.py 项目: wadoo38/lutris
 def prelaunch(self):
     """Check all required libraries are installed"""
     available_libs = set()
     for lib in LINUX_SYSTEM.shared_libraries:
         if lib in self.require_libs:
             available_libs.add(lib)
     unavailable_libs = self.require_libs - available_libs
     if unavailable_libs:
         raise UnavailableLibraries(unavailable_libs)
     return True