mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 00:05:58 +03:00
[PR #2135] [MERGED] CLI: Add argument to pass an argument to the game #2509
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#2509
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/2135
Author: @kalaposfos13
Created: 1/12/2025
Status: ✅ Merged
Merged: 1/18/2025
Merged by: @roamic
Base:
main← Head:game-args📝 Commits (9)
cd5728fAdd CLI argument to pass an argument to the gameb328641clang439db02Replace -ga with --; increase max argument count to 32; and add logging39c87f4Fix off-by-one error4aad194Fix -g flag with --; and avoid overindexing if -- is set but no arguments are added711b119Merge remote-tracking branch 'origin/main' into game-argsadaeb7cRemove left-in text from --help0063fcbReview commentse6412afclang📊 Changes
6 files changed (+61 additions, -9 deletions)
View changed files
📝
src/core/linker.cpp(+8 -2)📝
src/core/linker.h(+2 -2)📝
src/emulator.cpp(+11 -2)📝
src/emulator.h(+1 -1)📝
src/main.cpp(+20 -1)📝
src/qt_gui/main.cpp(+19 -1)📄 Description
Syntax:
shadps4 <options> <game> -- <game arg 1> <game arg 2> ...Works for both SDL and Qt versions, but there's no GUI for it.
You can pass up to 32 arguments to a game (untested)
Tested with Knack 2 (needs only one argument):
./build/shadps4 CUSA08014 -- "-w=10 -cursoroff -region=a -2160p"🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.