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

hongkbird

Member
Newcomer
Joined
Nov 23, 2022
Messages
18
Trophies
0
Age
33
XP
197
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: 30
  • Like
Reactions: petspeed

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, whats maga?
  • BigOnYa @ BigOnYa:
    It stands for Maniacs Against General Acceptance
    +1
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, people rejecting general consensus about stuff?
    +1
  • BigOnYa @ BigOnYa:
    Yup, nuh its really just Trump followers
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, im not american so i dont care about trump
    +1
  • Xdqwerty @ Xdqwerty:
    or us elections
  • BigOnYa @ BigOnYa:
    Me niether, us north Koreans don't care
  • Xdqwerty @ Xdqwerty:
    good night
  • BakerMan @ BakerMan:
    i don't care either, even if i'm american
  • BakerMan @ BakerMan:
    truth be told, i agree with psi, i dislike both candidates, but i'd probably vote trump simply because the economy was better during his presidency
    +1
  • AngryCinnabon @ AngryCinnabon:
    Just be careful, if trump ends up winning and using project 2025 America might really change...for the worse.
  • AngryCinnabon @ AngryCinnabon:
    I'm not american and even that sends shivers down my spine.
  • AngryCinnabon @ AngryCinnabon:
    anything that offers trump an opportunity to become an actual dictator
    is bad in my book, i could care less if it wasn't for that...
  • K3Nv2 @ K3Nv2:
    Canada: America's Russia
  • NinStar @ NinStar:
    people are so dramatic that I can't even tell if they are being serious
  • Psionic Roshambo @ Psionic Roshambo:
    Why so serious!
  • Psionic Roshambo @ Psionic Roshambo:
    @BakerMan, yeah that's about the only reason I would vote for Trump over Biden.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    In my opinion on all other factors they are pretty much the same.
    +1
  • Veho @ Veho:
    Economy was better under Trump, according to Fox News.
    +1
  • Veho @ Veho:
    I don't give a fuck about what happens to America but I would like it if your shit didn't spill out on the rest of the world, thank you.
    +3
  • AncientBoi @ AncientBoi:
    A Far Right news service company
  • AncientBoi @ AncientBoi:
    I give a fuck about what happens to America but I would like it if our shit didn't spill out on the rest of the world, thank you.
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    @Veho, didn't need any news. Just going to the store and buying groceries is a constant reminder.
    Psionic Roshambo @ Psionic Roshambo: @Veho, didn't need any news. Just going to the store and buying groceries is a constant reminder.