Skip to content

Commit

Permalink
Added babric prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
mindstorm38 committed Jul 12, 2024
1 parent e813215 commit 3aaeeed
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion portablemc/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ def cmd_start_handler(ns: StartNs, kind: str, parts: List[str]) -> Optional[Vers
prefix = ns.legacyfabric_prefix
elif kind == "babric":
constructor = FabricVersion._with_babric
prefix = "babric"
prefix = ns.babric_prefix

if len(parts) != 2:
ns.socket_error_tips.append(f"{kind}_loader_version")
Expand Down
3 changes: 2 additions & 1 deletion portablemc/cli/lang.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def get(key: str, **kwargs) -> str:
"args.start.version.comp.fabric": "Start Fabric mod loader with latest release.",
"args.start.version.comp.legacyfabric": "Start LegacyFabric mod loader with latest release.",
"args.start.version.comp.quilt": "Start Quilt mod loader with latest release.",
"args.start.version.comp.babric": "Start Babric mod loader with latest release.",
"args.start.version.comp.babric": "Start Babric mod loader with beta 1.7.3.",
"args.start.version.comp.forge": "Start Forge mod loader with latest release.",
"args.start.version.comp.neoforge": "Start NeoForge mod loader with latest release.",
"args.start.dry": "Simulate game starting.",
Expand All @@ -109,6 +109,7 @@ def get(key: str, **kwargs) -> str:
"enabled by default.",
"args.start.fabric_prefix": "Change the prefix of the version ID when starting with Fabric (<prefix>-<vanilla-version>-<loader-version>).",
"args.start.legacyfabric_prefix": "Change the prefix of the version ID when starting with LegacyFabric (<prefix>-<vanilla-version>-<loader-version>).",
"args.start.babric_prefix": "Change the prefix of the version ID when starting with Babric (<prefix>-<vanilla-version>-<loader-version>).",
"args.start.quilt_prefix": "Change the prefix of the version ID when starting with Quilt (<prefix>-<vanilla-version>-<loader-version>).",
"args.start.forge_prefix": "Change the prefix of the version ID when starting with Forge (<prefix>-<forge-version>).",
"args.start.neoforge_prefix": "Change the prefix of the version ID when starting with NeoForge (<prefix>-<neoforge-version>).",
Expand Down
2 changes: 2 additions & 0 deletions portablemc/cli/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class StartNs(AuthBaseNs):
jvm: Optional[Path]
jvm_args: Optional[str]
no_fix: bool
babric_prefix: str
fabric_prefix: str
legacyfabric_prefix: str
quilt_prefix: str
Expand Down Expand Up @@ -147,6 +148,7 @@ def register_start_arguments(parser: ArgumentParser) -> None:
parser.add_argument("--fabric-prefix", help=_("args.start.fabric_prefix"), default="fabric", metavar="PREFIX")
parser.add_argument("--quilt-prefix", help=_("args.start.quilt_prefix"), default="quilt", metavar="PREFIX")
parser.add_argument("--legacyfabric-prefix", help=_("args.start.legacyfabric_prefix"), default="legacyfabric", metavar="PREFIX")
parser.add_argument("--babric-prefix", help=_("args.start.babric_prefix"), default="babric", metavar="PREFIX")
parser.add_argument("--forge-prefix", help=_("args.start.forge_prefix"), default="forge", metavar="PREFIX")
parser.add_argument("--neoforge-prefix", help=_("args.start.neoforge_prefix"), default="neoforge", metavar="PREFIX")
parser.add_argument("--lwjgl", help=_("args.start.lwjgl"))
Expand Down

0 comments on commit 3aaeeed

Please sign in to comment.