NDS: Fix compiling and use own folder

This commit is contained in:
UnknownShadow200 2025-09-07 12:40:09 +10:00
parent f68f7ffaf0
commit da0b7c8484
9 changed files with 2 additions and 7 deletions

View File

@ -268,7 +268,7 @@ n64:
gba:
$(MAKE) -f misc/gba/Makefile
ds:
$(MAKE) -f misc/ds/Makefile
$(MAKE) -f misc/nds/Makefile
3ds:
$(MAKE) -f misc/3ds/Makefile
gamecube:

View File

@ -6,7 +6,7 @@ export BLOCKSDSEXT ?= /opt/wonderful/thirdparty/blocksds/external
export WONDERFUL_TOOLCHAIN ?= /opt/wonderful
ARM_NONE_EABI_PATH ?= $(WONDERFUL_TOOLCHAIN)/toolchain/gcc-arm-none-eabi/bin/
SOURCEDIRS := src
SOURCEDIRS := src src/nds
INCLUDEDIRS :=
DSIWIFI := third_party/dsiwifi

View File

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

@ -546,13 +546,8 @@ cc_result Socket_CheckWritable(cc_socket s, cc_bool* writable) {
if (res || *writable) return res;
/* https://stackoverflow.com/questions/29479953/so-error-value-after-successful-socket-operation */
#ifdef BUILD_DSI
socklen_t resultSize = sizeof(socklen_t);
getsockopt(s, SOL_SOCKET, SO_ERROR, &res, &resultSize);
#else
int resultSize = sizeof(int);
getsockopt(s, SOL_SOCKET, SO_ERROR, &res, &resultSize);
#endif
return res;
}