Switch-sys-tweak no longer compiles under libnx-4.5.0 correctly.
During make, i got the following error:
for some reason bsdsockets_version was taken out of include/switch/runtime/devices/socket.h
there are 2 workaround that you can use
1)
rather than modifying the libnx includes, you can simply take out the bsdsockets_version definition from src/virtual_controller_service.cpp (line 32)
2)
looking at 4.4.2 code, i saw that bsdsockets_version was in the struct for socketInitalize. going to the 4.5.0 socket.h i added the following right after the struct definition at line 12
I HIGHLY recommend using option 1, but i am putting option 2 here for future reference
i've created a pull request for switch-sys-tweak, but in the meanwhile, here are the workarounds.
During make, i got the following error:
Code:
/home/izenn/switch-sys-tweak/src/virtual_controller_service.cpp:43:1: error: 'const SocketInitConfig' has no non-static data member named 'bsdsockets_version'
for some reason bsdsockets_version was taken out of include/switch/runtime/devices/socket.h
there are 2 workaround that you can use
1)
rather than modifying the libnx includes, you can simply take out the bsdsockets_version definition from src/virtual_controller_service.cpp (line 32)
2)
looking at 4.4.2 code, i saw that bsdsockets_version was in the struct for socketInitalize. going to the 4.5.0 socket.h i added the following right after the struct definition at line 12
Code:
u32 bsdsockets_version; ///< Observed 1 on 2.0 LibAppletWeb, 2 on 3.0.
I HIGHLY recommend using option 1, but i am putting option 2 here for future reference
i've created a pull request for switch-sys-tweak, but in the meanwhile, here are the workarounds.