Skip to content

Conversation

@bulzipke
Copy link
Contributor

@bulzipke bulzipke commented May 9, 2025

20250420_182800.mp4

Left: Host
Right: Client

Short Summary
Added Adhoc (Hotspot) feature for local Netplay with nearby players.
Users can now play Netplay together without going through a router.

Detailed Description

  1. configs/knulli-board.common

    • Added HOSTAPD/DNSMASQ packages for creating Wi-Fi host mode.
  2. package/batocera/core/batocera-system/batocera.conf

    • Added Wi-Fi SSID/Key settings for adhoc (hotspot) usage.
  3. board/batocera/fsoverlay/etc/init.d/S20connman

    • Added .adhoc configuration.
    • It has the lowest priority among Wi-Fi connections.
    • If no user setting is found, it will load the default value from datainit.
  4. package/batocera/core/batocera-configgen/scripts/adhoc_hooks.sh

    • This script runs before starting a game.
    • It checks hotspot option, wlan0 availability, and current Wi-Fi connection status to create a hotspot if needed.
  5. package/batocera/core/batocera-scripts/scripts/batocera-wifi

    • ES to check connection status after joining a game via hotspot.

from knulli-cfw#326

@crcerror
Copy link
Contributor

crcerror commented May 9, 2025

I did not check the whole coding but would it be possible to use a single service script instead od init.d plus an additional /usr/script? I like the idea but I think it would be nice to activate this all by ES + user choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

43 Batocera 43

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants