Skip to content

Commit

Permalink
Seems to work
Browse files Browse the repository at this point in the history
  • Loading branch information
hax0kartik committed Feb 14, 2023
1 parent 7716f74 commit 41eda6f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 1 addition & 2 deletions wumiibohelper/cia/wumiibohelper.rsf
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ AccessControlInfo:
- ir:u
- ir:USER
- mic:u
- mcu::HWC
- ndm:u
- nfc:u
- news:s
- nwm::EXT
- nwm::UDS
Expand Down Expand Up @@ -271,7 +271,6 @@ SystemControlInfo:
ndm: 0x0004013000002b02
news: 0x0004013000003502
nfc: 0x0004013000004002
nim: 0x0004013000002c02
nwm: 0x0004013000002d02
pdn: 0x0004013000002102
ps: 0x0004013000003102
Expand Down
5 changes: 5 additions & 0 deletions wumiibohelper/source/Utils/Misc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,15 @@ namespace Utils{
fseek(f, 0L, SEEK_SET);
fread(&data[0], size, 1, f);
const std::string s = "enable_game_patching = 1";
const std::string s2 = "enable_external_firm_and_modules = 1";
auto found = data.find("enable_game_patching");
if(found != std::string::npos){
data.replace(found, s.length(), s);
}
auto found2 = data.find("enable_external_firm_and_modules");
if(found2 != std::string::npos){
data.replace(found2, s2.length(), s2);
}
fseek(f, 0L, SEEK_SET);
fwrite(&data[0], data.length(), 1, f);
fclose(f);
Expand Down

0 comments on commit 41eda6f

Please sign in to comment.