Skip to content

Commit

Permalink
loader ignores arguments after --
Browse files Browse the repository at this point in the history
  • Loading branch information
ianpatt committed May 17, 2024
1 parent 93e7cb2 commit bd52abb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions f4se_loader/Options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,11 @@ bool Options::Read(int argc, char ** argv)
{
m_waitForDebugger = true;
}
else if(!_stricmp(arg, "-"))
{
// terminator for arguments
break;
}
else
{
_ERROR("unknown switch (%s)", arg);
Expand Down Expand Up @@ -234,6 +239,7 @@ void Options::PrintUsage(void)
_MESSAGE(" -affinity <mask> - set the processor affinity mask");
_MESSAGE(" -forcesteamloader - does nothing, ignored for backwards compatibility");
_MESSAGE(" -waitfordebugger - wait for a debugger to attach before beginning execution");
_MESSAGE(" -- - ignore arguments after this marker");
}

bool Options::Verify(void)
Expand Down
3 changes: 3 additions & 0 deletions f4se_whatsnew.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
0.7.3
- passing -- as a command line argument to f4se_loader ignores following arguments

0.7.2
- support for runtime 1.10.984
- fix loading some plugins with additional exports
Expand Down

0 comments on commit bd52abb

Please sign in to comment.