MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / SetRootFSAsDefault

Function SetRootFSAsDefault

Source/Tools/FEXRootFSFetcher/Main.cpp:1047–1053  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1045
1046namespace ConfigSetter {
1047void SetRootFSAsDefault(const fextl::string& RootFS) {
1048 fextl::string Filename = FEXCore::Config::GetConfigFileLocation();
1049 auto LoadedConfig = FEX::Config::CreateMainLayer(&Filename);
1050 LoadedConfig->Load();
1051 LoadedConfig->Set(FEXCore::Config::ConfigOption::CONFIG_ROOTFS, RootFS);
1052 FEX::Config::SaveLayerToJSON(Filename, LoadedConfig.get());
1053}
1054} // namespace ConfigSetter
1055
1056namespace UnSquash {

Callers 1

mainFunction · 0.85

Calls 6

GetConfigFileLocationFunction · 0.85
CreateMainLayerFunction · 0.85
SaveLayerToJSONFunction · 0.85
getMethod · 0.80
LoadMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected