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
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