client compiles

In retrospect, it may have made sense to make an individual project for dsiwifi.
This commit is contained in:
micsthepick 2022-11-04 22:40:09 +11:00
parent fa7eba8e8a
commit 8f716b4b51
10 changed files with 107 additions and 57 deletions

View File

@ -16,7 +16,7 @@ include $(DEVKITARM)/ds_rules
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
BUILD := build_arm7 BUILD := build_arm7
SOURCES := source/arm7 SOURCES := source/arm7
INCLUDES := INCLUDES := ../../dsiwifi/include
DATA := DATA :=
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
@ -36,13 +36,13 @@ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -fno-rtti
ASFLAGS := -g $(ARCH) ASFLAGS := -g $(ARCH)
LDFLAGS = -specs=ds_arm7.specs -g $(ARCH) -Wl,-Map,$(notdir $*).map LDFLAGS = -specs=ds_arm7.specs -g $(ARCH) -Wl,-Map,$(notdir $*).map
LIBS := -ldswifi7 -lnds7 LIBS := -ldsiwifi7 -lnds7
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# list of directories containing libraries, this must be the top level containing # list of directories containing libraries, this must be the top level containing
# include and lib # include and lib
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
LIBDIRS := $(LIBNDS) LIBDIRS := ../../dsiwifi $(LIBNDS)
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
@ -85,10 +85,10 @@ else
endif endif
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
.PHONY: $(BUILD) clean .PHONY: $(BUILD) clean ../dsiwifi/lib/libdsiwifi7
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
$(BUILD): $(BUILD): ../dsiwifi/lib/libdsiwifi7
@[ -d $@ ] || mkdir -p $@ @[ -d $@ ] || mkdir -p $@
@make --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile_arm7 @make --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile_arm7
@ -96,6 +96,12 @@ $(BUILD):
clean: clean:
@echo clean ... @echo clean ...
@rm -fr $(BUILD) *.elf @rm -fr $(BUILD) *.elf
$(MAKE) -C ../dsiwifi/arm_iop clean
../dsiwifi/lib/libdsiwifi7:
mkdir -p ../dsiwifi/lib
$(MAKE) -C ../dsiwifi/arm_iop TOPDIR=$(CURDIR)/../dsiwifi BUILD=release
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------

View File

@ -17,10 +17,9 @@ include $(DEVKITARM)/ds_rules
BUILD := build_arm9 BUILD := build_arm9
SOURCES := source source/gui source/windows ../common ../common/iniparser/src SOURCES := source source/gui source/windows ../common ../common/iniparser/src
DATA := DATA :=
INCLUDES := source source/gui source/windows .. INCLUDES := source source/gui source/windows .. ../dsiwifi/include
GRAPHICS := GRAPHICS :=
PORTLIBS := $(DEVKITPRO)/portlibs/armv5te PORTLIBS := $(PORTLIBS_PATH)/nds
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# options for code generation # options for code generation
@ -41,14 +40,14 @@ LDFLAGS = -specs=ds_arm9.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map)
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# any extra libraries we wish to link with the project (order is important) # any extra libraries we wish to link with the project (order is important)
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
LIBS := -lfat -ldswifi9 -lnds9 -lpng -lfreetype -lz LIBS := -lfat -ldsiwifi9 -lnds9 -lpng -lfreetype -lz
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# list of directories containing libraries, this must be the top level containing # list of directories containing libraries, this must be the top level containing
# include and lib # include and lib
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
LIBDIRS := $(LIBNDS) $(PORTLIBS) LIBDIRS := ../../dsiwifi $(LIBNDS) $(PORTLIBS)
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# no real need to edit anything past this point unless you need to add additional # no real need to edit anything past this point unless you need to add additional
@ -94,10 +93,10 @@ export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib) export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib)
.PHONY: $(BUILD) clean .PHONY: $(BUILD) clean ../dsiwifi/lib/libdsiwif9
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
$(BUILD): $(BUILD): ../dsiwifi/lib/libdsiwifi9
@[ -d $@ ] || mkdir -p $@ @[ -d $@ ] || mkdir -p $@
@$(MAKE) --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile_arm9 @$(MAKE) --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile_arm9
@ -105,6 +104,11 @@ $(BUILD):
clean: clean:
@echo clean ... @echo clean ...
@rm -fr $(BUILD) *.elf *.bin @rm -fr $(BUILD) *.elf *.bin
$(MAKE) -C ../dsiwifi/arm_host clean
../dsiwifi/lib/libdsiwifi9:
mkdir -p ../dsiwifi/lib
$(MAKE) -C ../dsiwifi/arm_host TOPDIR=$(CURDIR)/../dsiwifi BUILD=release
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------

View File

@ -118,20 +118,20 @@
</ImportGroup> </ImportGroup>
<PropertyGroup Label="UserMacros" /> <PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='NDS|ARM'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='NDS|ARM'">
<NMakeBuildCommandLine>C:\devkitPro\msys\bin\make.exe -f Makefile_nds</NMakeBuildCommandLine> <NMakeBuildCommandLine>C:\devkitPro\msys2\msys2_shell.cmd -here -no-start -defterm -l -c "make -f Makefile_nds"</NMakeBuildCommandLine>
<NMakeOutput>ds2key.nds</NMakeOutput> <NMakeOutput>ds2key.nds</NMakeOutput>
<NMakeCleanCommandLine>C:\devkitPro\msys\bin\make.exe -f Makefile_nds clean</NMakeCleanCommandLine> <NMakeCleanCommandLine>C:\devkitPro\msys2\msys2_shell.cmd -here -no-start -defterm -l -c "make -f Makefile_nds clean"</NMakeCleanCommandLine>
<NMakePreprocessorDefinitions>EMULATOR=0;D2KCLIENT;ARM9;_NDS;</NMakePreprocessorDefinitions> <NMakePreprocessorDefinitions>EMULATOR=0;D2KCLIENT;ARM9;_NDS;</NMakePreprocessorDefinitions>
<IncludePath>$(ProjectDir)source;$(ProjectDir)..\common;$(ProjectDir)..;C:\devkitPro\portlibs\armv5te\include\freetype2;C:\devkitPro\portlibs\armv5te\include;C:\devkitPro\devkitARM\include;C:\devkitPro\libnds\include;$(VC_IncludePath);$(WindowsSDK_IncludePath);</IncludePath> <IncludePath>$(ProjectDir)source;$(ProjectDir)..\common;$(ProjectDir)..;$(ProjectDir)..\dsiwifi\include;C:\devkitPro\portlibs\nds\include\freetype2;C:\devkitPro\portlibs\nds\include;C:\devkitPro\devkitARM\include;C:\devkitPro\libnds\include;$(VC_IncludePath);$(WindowsSDK_IncludePath);</IncludePath>
<NMakeReBuildCommandLine>C:\devkitPro\msys\bin\make.exe -f Makefile_nds clean &amp;&amp; C:\devkitPro\msys\bin\make.exe -f Makefile_nds</NMakeReBuildCommandLine> <NMakeReBuildCommandLine>C:\devkitPro\msys2\msys2_shell.cmd -here -no-start -defterm -l -c "make -f Makefile_nds clean &amp;&amp; make -f Makefile_nds"</NMakeReBuildCommandLine>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='3DS|ARM'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='3DS|ARM'">
<NMakeBuildCommandLine>C:\devkitPro\msys\bin\make.exe -f Makefile_3ds</NMakeBuildCommandLine> <NMakeBuildCommandLine>C:\devkitPro\msys2\msys2_shell.cmd -here -no-start -defterm -l -c "make -f Makefile_3ds"</NMakeBuildCommandLine>
<NMakeOutput>3ds2key.3dsx</NMakeOutput> <NMakeOutput>3ds2key.3dsx</NMakeOutput>
<NMakeCleanCommandLine>C:\devkitPro\msys\bin\make.exe -f Makefile_3ds clean</NMakeCleanCommandLine> <NMakeCleanCommandLine>C:\devkitPro\msys2\msys2_shell.cmd -here -no-start -defterm -l -c "make -f Makefile_3ds clean"</NMakeCleanCommandLine>
<NMakePreprocessorDefinitions>EMULATOR=0;D2KCLIENT;ARM11;_3DS;</NMakePreprocessorDefinitions> <NMakePreprocessorDefinitions>EMULATOR=0;D2KCLIENT;ARM11;_3DS;</NMakePreprocessorDefinitions>
<IncludePath>$(ProjectDir)source;$(ProjectDir)..\common;$(ProjectDir)..;C:\devkitPro\portlibs\armv6k\include\freetype2;C:\devkitPro\portlibs\armv6k\include;C:\devkitPro\devkitARM\include;C:\devkitPro\libctru\include;$(VC_IncludePath);$(WindowsSDK_IncludePath);</IncludePath> <IncludePath>$(ProjectDir)source;$(ProjectDir)..\common;$(ProjectDir)..;C:\devkitPro\portlibs\armv6k\include\freetype2;C:\devkitPro\portlibs\armv6k\include;C:\devkitPro\devkitARM\include;C:\devkitPro\libctru\include;$(VC_IncludePath);$(WindowsSDK_IncludePath);</IncludePath>
<NMakeReBuildCommandLine>C:\devkitPro\msys\bin\make.exe -f Makefile_3ds clean &amp;&amp; C:\devkitPro\msys\bin\make.exe -f Makefile_3ds</NMakeReBuildCommandLine> <NMakeReBuildCommandLine>C:\devkitPro\msys2\msys2_shell.cmd -here -no-start -defterm -l -c "make -f Makefile_3ds clean &amp;&amp; make -f Makefile_3ds"</NMakeReBuildCommandLine>
</PropertyGroup> </PropertyGroup>
<ItemDefinitionGroup> <ItemDefinitionGroup>
</ItemDefinitionGroup> </ItemDefinitionGroup>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup> <PropertyGroup>
<ShowAllFiles>true</ShowAllFiles> <ShowAllFiles>false</ShowAllFiles>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='3DS|ARM'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='3DS|ARM'">
<RemoteDebuggerCommand> <RemoteDebuggerCommand>
@ -9,8 +9,11 @@
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor> <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
<RemoteDebuggerCommandArguments> <RemoteDebuggerCommandArguments>
</RemoteDebuggerCommandArguments> </RemoteDebuggerCommandArguments>
<LocalDebuggerCommand>C:\devkitPro\msys\bin\make.exe</LocalDebuggerCommand> <LocalDebuggerCommand>
<LocalDebuggerCommandArguments>-f Makefile_3ds run</LocalDebuggerCommandArguments> </LocalDebuggerCommand>
<LocalDebuggerCommandArguments>
</LocalDebuggerCommandArguments>
<LocalDebuggerWorkingDirectory />
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='NDS|ARM'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='NDS|ARM'">
<RemoteDebuggerCommand> <RemoteDebuggerCommand>
@ -18,7 +21,10 @@
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor> <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
<RemoteDebuggerCommandArguments> <RemoteDebuggerCommandArguments>
</RemoteDebuggerCommandArguments> </RemoteDebuggerCommandArguments>
<LocalDebuggerCommand>C:\devkitPro\msys\bin\make.exe</LocalDebuggerCommand> <LocalDebuggerCommand>
<LocalDebuggerCommandArguments>-f Makefile_nds run</LocalDebuggerCommandArguments> </LocalDebuggerCommand>
<LocalDebuggerCommandArguments>
</LocalDebuggerCommandArguments>
<LocalDebuggerWorkingDirectory />
</PropertyGroup> </PropertyGroup>
</Project> </Project>

View File

@ -1,5 +1,5 @@
#include <nds.h> #include <nds.h>
#include <dswifi7.h> #include <dsiwifi7.h>
volatile bool exit_flag = false; volatile bool exit_flag = false;

View File

@ -12,7 +12,7 @@
#elif defined(_NDS) #elif defined(_NDS)
#include <nds.h> #include <nds.h>
#include <fat.h> #include <fat.h>
#include <dswifi9.h> #include <dsiwifi9.h>
#endif #endif
#include "core.h" #include "core.h"
@ -483,9 +483,9 @@ bool Init(int argc, char* argv[])
if(!EMULATOR) if(!EMULATOR)
{ {
LOG(INFO) << "Connecting via WFC data\n"; LOG(INFO) << "Connecting via WFC data\n";
if(!Wifi_InitDefault(WFC_CONNECT)) if(!DSiWifi_InitDefault(WFC_CONNECT))
{ {
LOG(ERROR) << "Error (Wifi_InitDefault): Failed to connect\n"; LOG(ERROR) << "Error (DSiWifi_InitDefault): Failed to connect\n";
return true; // Return with error return true; // Return with error
} }
@ -513,6 +513,16 @@ bool Init(int argc, char* argv[])
UDP::Init(); // Initilize UDP UDP::Init(); // Initilize UDP
Config::Load(); // Load UDP settings Config::Load(); // Load UDP settings
// wait a few seconds on nds
#ifdef _NDS
for (int i = 0; i < 60*5; i++)
{
WaitForVBlank();
}
#endif
UDP::Connect(); // Connect with settings UDP::Connect(); // Connect with settings
#ifdef _NDS #ifdef _NDS
if(!toggle_both_lights) if(!toggle_both_lights)

View File

@ -320,7 +320,7 @@ bool WindowClass::Update()
ButtonSlider3DFunction(); ButtonSlider3DFunction();
last_slider_3d_status = g_slider_3d_status; last_slider_3d_status = g_slider_3d_status;
} }
#elif defined(_NDS) //#elif defined(_NDS) // TODO why did this check defined(_NDS)
else if(g_keys_down&KEY_BLUE) else if(g_keys_down&KEY_BLUE)
ButtonBlueFunction(); ButtonBlueFunction();
else if(g_keys_down&KEY_YELLOW) else if(g_keys_down&KEY_YELLOW)

View File

@ -17,7 +17,7 @@
#include <sys/ioctl.h> // ioctl #include <sys/ioctl.h> // ioctl
#elif defined(_NDS) #elif defined(_NDS)
#include <nds.h> #include <nds.h>
#include <dswifi9.h> #include <dsiwifi9.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <netdb.h> #include <netdb.h>
#include <cerrno> #include <cerrno>
@ -52,8 +52,8 @@
#define NETclosesocket close #define NETclosesocket close
#define SOCKET_ERROR -1 #define SOCKET_ERROR -1
#elif defined(_NDS) #elif defined(_NDS)
typedef int socklen_t; #define SOCKET_ERROR -1
#define NETclosesocket closesocket #define NETclosesocket close
#elif defined(_3DS) #elif defined(_3DS)
#define SOCKET_ERROR -1 #define SOCKET_ERROR -1
#define NETclosesocket closesocket #define NETclosesocket closesocket
@ -63,8 +63,8 @@ typedef int socklen_t;
#if defined(_NDS) || defined(_3DS) #if defined(_NDS) || defined(_3DS)
#include "core.h" #include "core.h"
#include "commandWindow.h" #include "windows/commandWindow.h"
#include "configWindow.h" #include "windows/configWindow.h"
#endif #endif
#include "udp.h" #include "udp.h"
@ -199,7 +199,7 @@ int Connect(bool _non_blocking, uint16_t _port)
return err; return err;
} }
connected = true; connected = true;
LOG(INFO) << "Connected on UDP port #" << GetPort(); LOG(INFO) << "Connected on UDP port #" << GetPort() << "\n";
return 0; return 0;
} }
@ -220,7 +220,7 @@ int Disconnect()
return err; return err;
} }
LOG(INFO) << "UDP Disconnected"; LOG(INFO) << "UDP Disconnected\n";
} }
return 0; return 0;
@ -252,7 +252,7 @@ int Send(const void* buffer, unsigned int length)
LOG(ERROR) << "Error #" << err << " (sendto): " << strerror(err) << "\n"; LOG(ERROR) << "Error #" << err << " (sendto): " << strerror(err) << "\n";
return err; return err;
} }
LOG_EVERY_N(300, TRACE) << "Sent " << length << " bytes"; //LOG_EVERY_N(300, TRACE) << "Sent " << length << " bytes";
} }
return 0; return 0;
@ -296,7 +296,7 @@ int Recv(void* buffer, unsigned int length, struct sockaddr* _remote_sockaddr)
return err; return err;
} }
LOG_EVERY_N(300, TRACE) << "Received " << length << " bytes"; //LOG_EVERY_N(300, TRACE) << "Received " << length << " bytes";
} }
return 0; return 0;
@ -305,7 +305,7 @@ int Recv(void* buffer, unsigned int length, struct sockaddr* _remote_sockaddr)
unsigned long GetLocalIP() unsigned long GetLocalIP()
{ {
#if defined(_NDS) #if defined(_NDS)
return Wifi_GetIP(); return DSiWifi_GetIP();
#elif defined(_3DS) #elif defined(_3DS)
return gethostid(); return gethostid();
#elif defined(_WIN32) || defined(__linux__) #elif defined(_WIN32) || defined(__linux__)
@ -367,7 +367,7 @@ void SetConfigPort(uint16_t _port)
{ {
// If port is 0, Use default port 9501 // If port is 0, Use default port 9501
UDP::port = _port == 0 ? DEFAULT_PORT : _port; UDP::port = _port == 0 ? DEFAULT_PORT : _port;
LOG(INFO) << "UDP Port set to #" << UDP::GetPort() << "."; LOG(INFO) << "UDP Port set to #" << UDP::GetPort() << ".\n";
} }
#if defined(D2KCLIENT) #if defined(D2KCLIENT)
@ -375,7 +375,7 @@ void SetConfigPort(uint16_t _port)
void SendNormalSetting(DS2KeySingleInputSettingPacket setting) void SendNormalSetting(DS2KeySingleInputSettingPacket setting)
{ {
Send(&setting, sizeof(DS2KeySingleInputSettingPacket)); Send(&setting, sizeof(DS2KeySingleInputSettingPacket));
LOG(TRACE) << "SendNormalSetting()"; LOG(TRACE) << "SendNormalSetting()\n";
} }
void SendCommand(uint8_t command) void SendCommand(uint8_t command)
{ {
@ -388,7 +388,7 @@ void SendCommand(uint8_t command)
packet.keys = command; packet.keys = command;
Send(&packet, sizeof(DS2KeyPacket)); // Send packet Send(&packet, sizeof(DS2KeyPacket)); // Send packet
LOG(TRACE) << "SendCommand(" << (int)command << ")"; LOG(TRACE) << "SendCommand(" << (int)command << ")\n";
} }
void Update(uint32_t keys, uint32_t keysTurbo, const touchPosition* touch_position, void Update(uint32_t keys, uint32_t keysTurbo, const touchPosition* touch_position,
@ -454,7 +454,7 @@ void Update(uint32_t keys, uint32_t keysTurbo, const touchPosition* touch_positi
packet.keyboard = keyboard; packet.keyboard = keyboard;
Send(&packet, sizeof(DS2KeyPacket)); // Send packet Send(&packet, sizeof(DS2KeyPacket)); // Send packet
LOG_EVERY_N(300, TRACE) << "Sent UDP::Update()"; //LOG_EVERY_N(300, TRACE) << "Sent UDP::Update()";
} }
void SendLookupPacket() void SendLookupPacket()
@ -463,7 +463,7 @@ void SendLookupPacket()
packet.type = UDP::PACKET::LOOKUP; // Set as a lookup packet packet.type = UDP::PACKET::LOOKUP; // Set as a lookup packet
Send(&packet, sizeof(DS2KeyPacket)); // Send the packet out Send(&packet, sizeof(DS2KeyPacket)); // Send the packet out
LOG_EVERY_N(10, TRACE) << "SendLookupPacket()"; //LOG_EVERY_N(10, TRACE) << "SendLookupPacket()";
} }
void RequestSettingsCommand() void RequestSettingsCommand()
@ -473,7 +473,7 @@ void RequestSettingsCommand()
packet.profile = UDP::GetProfile(); // Set profile packet.profile = UDP::GetProfile(); // Set profile
UDP::Send(&packet, sizeof(UDP::DS2KeyPacket)); // Send the packet out UDP::Send(&packet, sizeof(UDP::DS2KeyPacket)); // Send the packet out
LOG(TRACE) << "RequestSettingsCommand()"; LOG(TRACE) << "RequestSettingsCommand()\n";
} }
void RequestInputSettings() void RequestInputSettings()
@ -483,7 +483,7 @@ void RequestInputSettings()
packet.profile = UDP::GetProfile(); // Set profile packet.profile = UDP::GetProfile(); // Set profile
UDP::Send(&packet, sizeof(UDP::DS2KeyPacket)); // Send the packet out UDP::Send(&packet, sizeof(UDP::DS2KeyPacket)); // Send the packet out
LOG(TRACE) << "RequestInputSettings()"; LOG(TRACE) << "RequestInputSettings()\n";
} }
void ServerLookup() void ServerLookup()
@ -543,11 +543,11 @@ void ListenForServer()
break; break;
case UDP::PACKET::COMMAND_SETTINGS: // Received Command Settings case UDP::PACKET::COMMAND_SETTINGS: // Received Command Settings
GUI::Command::ProcessCommandSettingsPacket(command_settings_packet); GUI::Command::ProcessCommandSettingsPacket(command_settings_packet);
LOG(TRACE) << "Received UDP::PACKET::COMMAND_SETTINGS"; LOG(TRACE) << "Received UDP::PACKET::COMMAND_SETTINGS\n";
break; break;
case UDP::PACKET::INPUT_SETTINGS: // Received Input Settings case UDP::PACKET::INPUT_SETTINGS: // Received Input Settings
GUI::ConfigWindow::ProcessInputSettingsPacket(*input_settings_packet_pointer); GUI::ConfigWindow::ProcessInputSettingsPacket(*input_settings_packet_pointer);
LOG(TRACE) << "Received UDP::PACKET::INPUT_SETTINGS"; LOG(TRACE) << "Received UDP::PACKET::INPUT_SETTINGS\n";
break; break;
default: default:
break; break;
@ -580,12 +580,12 @@ void SetProfile(uint8_t _profile)
void SendCommandSettings(DS2KeyCommandSettingsPacket settings) void SendCommandSettings(DS2KeyCommandSettingsPacket settings)
{ {
Send(&settings, sizeof(DS2KeyCommandSettingsPacket)); Send(&settings, sizeof(DS2KeyCommandSettingsPacket));
LOG(TRACE) << "SendCommandSettings()"; LOG(TRACE) << "SendCommandSettings()\n";
} }
void SendInputSettings(DS2KeyInputSettingsPacket settings) void SendInputSettings(DS2KeyInputSettingsPacket settings)
{ {
Send(&settings, sizeof(DS2KeyInputSettingsPacket)); Send(&settings, sizeof(DS2KeyInputSettingsPacket));
LOG(TRACE) << "SendInputSettings()"; LOG(TRACE) << "SendInputSettings()\n";
} }
#endif #endif

View File

@ -10,6 +10,31 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "client", "client\client.vcx
{90C7424E-D238-441D-8590-3A125AA0C29B} = {90C7424E-D238-441D-8590-3A125AA0C29B} {90C7424E-D238-441D-8590-3A125AA0C29B} = {90C7424E-D238-441D-8590-3A125AA0C29B}
EndProjectSection EndProjectSection
EndProject EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "dsiwifi", "dsiwifi", "{5450C5B6-A202-4689-9369-92A4F0D95B2A}"
ProjectSection(SolutionItems) = preProject
dsiwifi\.gitignore = dsiwifi\.gitignore
dsiwifi\dsiwifi_license.txt = dsiwifi\dsiwifi_license.txt
dsiwifi\dswifi_license.txt = dsiwifi\dswifi_license.txt
dsiwifi\Makefile = dsiwifi\Makefile
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{521D02E3-B79C-4E40-AB11-2B6BEC4F1C16}"
ProjectSection(SolutionItems) = preProject
.gitignore = .gitignore
COPYING = COPYING
README.md = README.md
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "arm_host", "arm_host", "{62A02FA3-7C5A-4688-9D6F-B581D984B623}"
ProjectSection(SolutionItems) = preProject
dsiwifi\arm_host\Makefile = dsiwifi\arm_host\Makefile
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "arm_iop", "arm_iop", "{893E970F-E4CA-4FD0-B5B3-432EE689DB0B}"
ProjectSection(SolutionItems) = preProject
dsiwifi\arm_iop\Makefile = dsiwifi\arm_iop\Makefile
EndProjectSection
EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
3DS|x86 = 3DS|x86 3DS|x86 = 3DS|x86
@ -21,7 +46,6 @@ Global
EndGlobalSection EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution GlobalSection(ProjectConfigurationPlatforms) = postSolution
{90C7424E-D238-441D-8590-3A125AA0C29B}.3DS|x86.ActiveCfg = Debug|Win32 {90C7424E-D238-441D-8590-3A125AA0C29B}.3DS|x86.ActiveCfg = Debug|Win32
{90C7424E-D238-441D-8590-3A125AA0C29B}.3DS|x86.Build.0 = Debug|Win32
{90C7424E-D238-441D-8590-3A125AA0C29B}.Debug|x86.ActiveCfg = Debug|Win32 {90C7424E-D238-441D-8590-3A125AA0C29B}.Debug|x86.ActiveCfg = Debug|Win32
{90C7424E-D238-441D-8590-3A125AA0C29B}.Debug|x86.Build.0 = Debug|Win32 {90C7424E-D238-441D-8590-3A125AA0C29B}.Debug|x86.Build.0 = Debug|Win32
{90C7424E-D238-441D-8590-3A125AA0C29B}.GUI Debug|x86.ActiveCfg = GUI Debug|Win32 {90C7424E-D238-441D-8590-3A125AA0C29B}.GUI Debug|x86.ActiveCfg = GUI Debug|Win32
@ -29,24 +53,24 @@ Global
{90C7424E-D238-441D-8590-3A125AA0C29B}.GUI Release|x86.ActiveCfg = GUI Release|Win32 {90C7424E-D238-441D-8590-3A125AA0C29B}.GUI Release|x86.ActiveCfg = GUI Release|Win32
{90C7424E-D238-441D-8590-3A125AA0C29B}.GUI Release|x86.Build.0 = GUI Release|Win32 {90C7424E-D238-441D-8590-3A125AA0C29B}.GUI Release|x86.Build.0 = GUI Release|Win32
{90C7424E-D238-441D-8590-3A125AA0C29B}.NDS|x86.ActiveCfg = Debug|Win32 {90C7424E-D238-441D-8590-3A125AA0C29B}.NDS|x86.ActiveCfg = Debug|Win32
{90C7424E-D238-441D-8590-3A125AA0C29B}.NDS|x86.Build.0 = Debug|Win32
{90C7424E-D238-441D-8590-3A125AA0C29B}.Release|x86.ActiveCfg = Release|Win32 {90C7424E-D238-441D-8590-3A125AA0C29B}.Release|x86.ActiveCfg = Release|Win32
{90C7424E-D238-441D-8590-3A125AA0C29B}.Release|x86.Build.0 = Release|Win32 {90C7424E-D238-441D-8590-3A125AA0C29B}.Release|x86.Build.0 = Release|Win32
{6CEBDB4B-370A-4F11-A723-651484B0EF49}.3DS|x86.ActiveCfg = 3DS|ARM {6CEBDB4B-370A-4F11-A723-651484B0EF49}.3DS|x86.ActiveCfg = 3DS|ARM
{6CEBDB4B-370A-4F11-A723-651484B0EF49}.3DS|x86.Build.0 = 3DS|ARM {6CEBDB4B-370A-4F11-A723-651484B0EF49}.3DS|x86.Build.0 = 3DS|ARM
{6CEBDB4B-370A-4F11-A723-651484B0EF49}.Debug|x86.ActiveCfg = 3DS|ARM {6CEBDB4B-370A-4F11-A723-651484B0EF49}.Debug|x86.ActiveCfg = 3DS|ARM
{6CEBDB4B-370A-4F11-A723-651484B0EF49}.Debug|x86.Build.0 = 3DS|ARM
{6CEBDB4B-370A-4F11-A723-651484B0EF49}.GUI Debug|x86.ActiveCfg = NDS|ARM {6CEBDB4B-370A-4F11-A723-651484B0EF49}.GUI Debug|x86.ActiveCfg = NDS|ARM
{6CEBDB4B-370A-4F11-A723-651484B0EF49}.GUI Release|x86.ActiveCfg = 3DS|ARM {6CEBDB4B-370A-4F11-A723-651484B0EF49}.GUI Release|x86.ActiveCfg = 3DS|ARM
{6CEBDB4B-370A-4F11-A723-651484B0EF49}.GUI Release|x86.Build.0 = 3DS|ARM
{6CEBDB4B-370A-4F11-A723-651484B0EF49}.NDS|x86.ActiveCfg = NDS|ARM {6CEBDB4B-370A-4F11-A723-651484B0EF49}.NDS|x86.ActiveCfg = NDS|ARM
{6CEBDB4B-370A-4F11-A723-651484B0EF49}.NDS|x86.Build.0 = NDS|ARM {6CEBDB4B-370A-4F11-A723-651484B0EF49}.NDS|x86.Build.0 = NDS|ARM
{6CEBDB4B-370A-4F11-A723-651484B0EF49}.Release|x86.ActiveCfg = 3DS|ARM {6CEBDB4B-370A-4F11-A723-651484B0EF49}.Release|x86.ActiveCfg = 3DS|ARM
{6CEBDB4B-370A-4F11-A723-651484B0EF49}.Release|x86.Build.0 = 3DS|ARM
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE
EndGlobalSection EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{62A02FA3-7C5A-4688-9D6F-B581D984B623} = {5450C5B6-A202-4689-9369-92A4F0D95B2A}
{893E970F-E4CA-4FD0-B5B3-432EE689DB0B} = {5450C5B6-A202-4689-9369-92A4F0D95B2A}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {E3DB59E8-1EB5-46A2-9211-BB4BA6284D85} SolutionGuid = {E3DB59E8-1EB5-46A2-9211-BB4BA6284D85}
EndGlobalSection EndGlobalSection

View File

@ -127,7 +127,7 @@
<GenerateDebugInformation>true</GenerateDebugInformation> <GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding> <EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences> <OptimizeReferences>true</OptimizeReferences>
<AdditionalDependencies>$(ProjectDir)core\vjoy\lib\vJoyInterface.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies> <AdditionalDependencies>$(ProjectDir)core\vjoy\lib\vJoyInterface.lib;Winmm.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<UACUIAccess>false</UACUIAccess> <UACUIAccess>false</UACUIAccess>
<UACExecutionLevel>AsInvoker</UACExecutionLevel> <UACExecutionLevel>AsInvoker</UACExecutionLevel>
</Link> </Link>
@ -151,7 +151,7 @@
<GenerateDebugInformation>true</GenerateDebugInformation> <GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding> <EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences> <OptimizeReferences>true</OptimizeReferences>
<AdditionalDependencies>$(ProjectDir)core\vjoy\lib\vJoyInterface.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies> <AdditionalDependencies>$(ProjectDir)core\vjoy\lib\vJoyInterface.lib;ws2_32.lib;Winmm.lib;%(AdditionalDependencies)</AdditionalDependencies>
<UACUIAccess>false</UACUIAccess> <UACUIAccess>false</UACUIAccess>
</Link> </Link>
</ItemDefinitionGroup> </ItemDefinitionGroup>