mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 06:26:49 +00:00
[rpcsx-os] add --system flag
This commit is contained in:
parent
9865be85af
commit
563c5eaa2e
3 changed files with 10 additions and 1 deletions
|
|
@ -561,6 +561,7 @@ int main(int argc, const char *argv[]) {
|
|||
|
||||
bool enableAudio = false;
|
||||
bool asRoot = false;
|
||||
bool isSystem = false;
|
||||
|
||||
int argIndex = 1;
|
||||
while (argIndex < argc) {
|
||||
|
|
@ -596,6 +597,12 @@ int main(int argc, const char *argv[]) {
|
|||
continue;
|
||||
}
|
||||
|
||||
if (argv[argIndex] == std::string_view("--system")) {
|
||||
argIndex++;
|
||||
isSystem = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (argv[argIndex] == std::string_view("--override") ||
|
||||
argv[argIndex] == std::string_view("-o")) {
|
||||
if (argc <= argIndex + 2) {
|
||||
|
|
@ -704,6 +711,7 @@ int main(int argc, const char *argv[]) {
|
|||
initProcess->onSysEnter = onSysEnter;
|
||||
initProcess->onSysExit = onSysExit;
|
||||
initProcess->ops = &rx::procOpsTable;
|
||||
initProcess->isSystem = isSystem;
|
||||
|
||||
auto [baseId, mainThread] = initProcess->threadsMap.emplace();
|
||||
mainThread->tproc = initProcess;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue