feat: cyberpunk2077 (#200)

* feat: delete toplevel extraneous files

* chore: rename executables

* [pre-commit.ci] Auto fixes from pre-commit.com hooks.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
qudix
2025-10-20 22:36:35 +02:00
committed by GitHub
co-authored by pre-commit-ci[bot]
parent 3b2f67ce4c
commit 80dc114885
+15 -5
View File
@@ -34,6 +34,16 @@ class CyberpunkModDataChecker(BasicModDataChecker):
def __init__(self): def __init__(self):
super().__init__( super().__init__(
GlobPatterns( GlobPatterns(
delete=[
"*.gif",
"*.jpg",
"*.jpeg",
"*.jxl",
"*.md",
"*.png",
"*.txt",
"*.webp",
],
move={ move={
# archive and ArchiveXL # archive and ArchiveXL
"*.archive": "archive/pc/mod/", "*.archive": "archive/pc/mod/",
@@ -439,22 +449,22 @@ class Cyberpunk2077Game(BasicGame):
game_dir = self.gameDirectory() game_dir = self.gameDirectory()
bin_path = game_dir.absoluteFilePath(self.binaryName()) bin_path = game_dir.absoluteFilePath(self.binaryName())
skip_start_screen = ( skip_start_screen = (
" -skipStartScreen" if self._get_setting("skipStartScreen") else "" "-skipStartScreen" if self._get_setting("skipStartScreen") else ""
) )
return [ return [
# Default, runs REDmod deploy if necessary # Default, runs REDmod deploy if necessary
mobase.ExecutableInfo( mobase.ExecutableInfo(
f"{game_name}", f"{game_name} (REDmod)",
bin_path, bin_path,
).withArgument(f"--launcher-skip -modded{skip_start_screen}"), ).withArgument(f"--launcher-skip -modded {skip_start_screen}"),
# Start game without REDmod # Start game without REDmod
mobase.ExecutableInfo( mobase.ExecutableInfo(
f"{game_name} - skip REDmod deploy", f"{game_name}",
bin_path, bin_path,
).withArgument(f"--launcher-skip {skip_start_screen}"), ).withArgument(f"--launcher-skip {skip_start_screen}"),
# Deploy REDmods only # Deploy REDmods only
mobase.ExecutableInfo( mobase.ExecutableInfo(
"Manually deploy REDmod", "REDmod",
self._get_redmod_binary(), self._get_redmod_binary(),
).withArgument("deploy -reportProgress -force %modlist%"), ).withArgument("deploy -reportProgress -force %modlist%"),
# Launcher # Launcher