switch-sys-tweak and libnx-4.5.0

izenn

Active Member
OP
Newcomer
Joined
Jun 14, 2011
Messages
37
Trophies
1
XP
183
Country
United States
Switch-sys-tweak no longer compiles under libnx-4.5.0 correctly.

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.
 
  • Like
Reactions: hippy dave

mmxyssky

Member
Newcomer
Joined
Nov 23, 2022
Messages
14
Trophies
0
Age
33
XP
186
Country
United States
Is it possible to pass the latest version?
Post automatically merged:

Is it possible to pass the latest version?
 

izenn

Active Member
OP
Newcomer
Joined
Jun 14, 2011
Messages
37
Trophies
1
XP
183
Country
United States

Attachments

  • sys-tweak_libnx-4.5.0-1.zip
    87 KB · Views: 27
  • Like
Reactions: petspeed

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Veho @ Veho: Nope.