Skip to content

Commit

Permalink
Merge pull request #4381 from Sonicadvance1/fix_double_load
Browse files Browse the repository at this point in the history
ArgumentLoader: Fixes double load
  • Loading branch information
Sonicadvance1 authored Mar 5, 2025
2 parents 3964018 + 46d0df9 commit 97070aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Source/Common/ArgumentLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <stdint.h>

namespace FEX::ArgLoader {
void FEX::ArgLoader::ArgLoader::Load() {
void FEX::ArgLoader::ArgLoader::PreLoad() {
RemainingArgs.clear();
ProgramArguments.clear();
if (Type == LoadType::WITHOUT_FEXLOADER_PARSER) {
Expand Down
7 changes: 5 additions & 2 deletions Source/Common/ArgumentLoader.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@ class ArgLoader final : public FEXCore::Config::Layer {
, Type {Type}
, argc {argc}
, argv {argv} {
Load();
PreLoad();
}

void Load() override;
void Load() override {
// Intentional no-op.
}
void PreLoad();
void LoadWithoutArguments();
fextl::vector<fextl::string> Get() {
return RemainingArgs;
Expand Down

0 comments on commit 97070aa

Please sign in to comment.