-
-
Notifications
You must be signed in to change notification settings - Fork 562
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
backport the old LAN feature to the modern melonDS codebase.
- Loading branch information
Showing
34 changed files
with
4,163 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# - Try to find enet | ||
# Once done this will define | ||
# | ||
# ENET_FOUND - system has enet | ||
# ENET_INCLUDE_DIRS - the enet include directory | ||
# ENET_LIBRARIES - the libraries needed to use enet | ||
# | ||
# $ENETDIR is an environment variable used for finding enet. | ||
# | ||
# Borrowed from The Mana World | ||
# http://themanaworld.org/ | ||
# | ||
# Several changes and additions by Fabian 'x3n' Landau | ||
# Lots of simplifications by Adrian Friedli | ||
# > www.orxonox.net < | ||
|
||
FIND_PATH(ENET_INCLUDE_DIRS enet/enet.h | ||
PATHS | ||
$ENV{ENETDIR} | ||
/usr/local | ||
/usr | ||
PATH_SUFFIXES include | ||
) | ||
|
||
FIND_LIBRARY(ENET_LIBRARY | ||
NAMES enet | ||
PATHS | ||
$ENV{ENETDIR} | ||
/usr/local | ||
/usr | ||
PATH_SUFFIXES lib | ||
) | ||
|
||
# handle the QUIETLY and REQUIRED arguments and set ENET_FOUND to TRUE if | ||
# all listed variables are TRUE | ||
INCLUDE(FindPackageHandleStandardArgs) | ||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(ENet DEFAULT_MSG ENET_LIBRARY ENET_INCLUDE_DIRS) | ||
|
||
IF (ENET_FOUND) | ||
IF(WIN32) | ||
SET(WINDOWS_ENET_DEPENDENCIES "ws2_32;winmm") | ||
SET(ENET_LIBRARIES ${ENET_LIBRARY} ${WINDOWS_ENET_DEPENDENCIES}) | ||
ELSE(WIN32) | ||
SET(ENET_LIBRARIES ${ENET_LIBRARY}) | ||
ENDIF(WIN32) | ||
ENDIF (ENET_FOUND) | ||
|
||
MARK_AS_ADVANCED(ENET_LIBRARY ENET_LIBRARIES ENET_INCLUDE_DIRS) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,7 @@ | |
libarchive | ||
libGL | ||
libslirp | ||
enet | ||
]) ++ optionals isLinux [ | ||
pkgs.wayland | ||
pkgs.kdePackages.qtwayland | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,6 +51,9 @@ set(SOURCES_QT_SDL | |
|
||
CLI.h | ||
CLI.cpp | ||
|
||
LANDialog.cpp | ||
NetplayDialog.cpp | ||
) | ||
|
||
if (APPLE) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.