summaryrefslogtreecommitdiff
path: root/win32/plugins/bladesio1
diff options
context:
space:
mode:
authorSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-02-24 21:38:24 +0000
committerSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-02-24 21:38:24 +0000
commit707443684fc0b2d268b3288ea52f4d33ef93fc05 (patch)
tree0cf255aa9643df7979cdacd4226b3fc844d1308c /win32/plugins/bladesio1
parenta0c49bddfad957d260bdb2c26b4cf21b86f63bdf (diff)
downloadpcsxr-707443684fc0b2d268b3288ea52f4d33ef93fc05.tar.gz
link cable plugin for Windows;
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@83125 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'win32/plugins/bladesio1')
-rwxr-xr-xwin32/plugins/bladesio1/bladesio1.def47
-rw-r--r--win32/plugins/bladesio1/bladesio1.rc193
-rw-r--r--win32/plugins/bladesio1/bladesio1.sln20
-rwxr-xr-xwin32/plugins/bladesio1/bladesio1.vcxproj182
-rwxr-xr-xwin32/plugins/bladesio1/bladesio1.vcxproj.filters55
-rwxr-xr-xwin32/plugins/bladesio1/bladesio1.vcxproj.user3
-rw-r--r--win32/plugins/bladesio1/resource.h57
-rwxr-xr-xwin32/plugins/bladesio1/winsrc/cfg-winapi.c138
-rw-r--r--win32/plugins/bladesio1/winsrc/cfg-winapi.h32
-rwxr-xr-xwin32/plugins/bladesio1/winsrc/stdafx.h32
-rwxr-xr-xwin32/plugins/bladesio1/winsrc/winmain.c27
11 files changed, 786 insertions, 0 deletions
diff --git a/win32/plugins/bladesio1/bladesio1.def b/win32/plugins/bladesio1/bladesio1.def
new file mode 100755
index 00000000..c7ed6801
--- /dev/null
+++ b/win32/plugins/bladesio1/bladesio1.def
@@ -0,0 +1,47 @@
+; Declares the module parameters for the DLL.
+
+LIBRARY "bladesio1"
+
+EXPORTS
+ ; Explicit exports can go here
+ PSEgetLibType @2
+ PSEgetLibName @3
+ PSEgetLibVersion @4
+ SIO1configure @5
+ SIO1about @6
+ SIO1test @7
+ SIO1init @8
+ SIO1shutdown @9
+ SIO1open @10
+ SIO1close @11
+
+ SIO1pause @12
+ SIO1resume @13
+ SIO1keypressed @14
+
+ SIO1writeData8 @15
+ SIO1writeData16 @16
+ SIO1writeData32 @17
+ SIO1writeStat16 @18
+ SIO1writeStat32 @19
+ SIO1writeMode16 @20
+ SIO1writeMode32 @21
+ SIO1writeCtrl16 @22
+ SIO1writeCtrl32 @23
+ SIO1writeBaud16 @24
+ SIO1writeBaud32 @25
+
+ SIO1readData8 @26
+ SIO1readData16 @27
+ SIO1readData32 @28
+ SIO1readStat16 @29
+ SIO1readStat32 @30
+ SIO1readMode16 @31
+ SIO1readMode32 @32
+ SIO1readCtrl16 @33
+ SIO1readCtrl32 @34
+ SIO1readBaud16 @35
+ SIO1readBaud32 @36
+
+ SIO1update @37
+ SIO1registerCallback @38
diff --git a/win32/plugins/bladesio1/bladesio1.rc b/win32/plugins/bladesio1/bladesio1.rc
new file mode 100644
index 00000000..122f0379
--- /dev/null
+++ b/win32/plugins/bladesio1/bladesio1.rc
@@ -0,0 +1,193 @@
+// Microsoft Visual C++ generated resource script.
+//
+#include "resource.h"
+
+#define APSTUDIO_READONLY_SYMBOLS
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 2 resource.
+//
+#include "afxres.h"
+
+/////////////////////////////////////////////////////////////////////////////
+#undef APSTUDIO_READONLY_SYMBOLS
+
+/////////////////////////////////////////////////////////////////////////////
+// Polish (Poland) resources
+
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_PLK)
+LANGUAGE LANG_POLISH, SUBLANG_DEFAULT
+#pragma code_page(1250)
+
+#ifdef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// TEXTINCLUDE
+//
+
+1 TEXTINCLUDE
+BEGIN
+ "resource.h\0"
+END
+
+2 TEXTINCLUDE
+BEGIN
+ "#include ""afxres.h""\r\n"
+ "\0"
+END
+
+3 TEXTINCLUDE
+BEGIN
+ "#define _AFX_NO_SPLITTER_RESOURCES\r\n"
+ "#define _AFX_NO_OLE_RESOURCES\r\n"
+ "#define _AFX_NO_TRACKER_RESOURCES\r\n"
+ "#define _AFX_NO_PROPERTY_RESOURCES\r\n"
+ "\r\n"
+ "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
+ "#ifdef _WIN32\r\n"
+ "LANGUAGE 9, 1\r\n"
+ "#pragma code_page(1252)\r\n"
+ "#endif\r\n"
+ "#endif\0"
+END
+
+#endif // APSTUDIO_INVOKED
+
+#endif // Polish (Poland) resources
+/////////////////////////////////////////////////////////////////////////////
+
+
+/////////////////////////////////////////////////////////////////////////////
+// Neutral resources
+
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_NEU)
+LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
+#pragma code_page(1251)
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Dialog
+//
+
+IDD_ABOUT DIALOGEX 0, 0, 177, 52
+STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
+CAPTION "About"
+FONT 8, "MS Sans Serif", 0, 0, 0x1
+BEGIN
+ DEFPUSHBUTTON "OK",IDOK,63,30,44,14
+ LTEXT "Version :",IDC_STATIC,5,5,37,9
+ LTEXT "Coded by :",IDC_STATIC,5,16,42,9
+ LTEXT "1.0",IDC_STATIC,52,6,25,9
+ LTEXT "edgbla",IDC_STATIC,53,16,26,9
+ LTEXT "<edgbla@yandex.ru>",IDC_STATIC,91,16,76,9
+END
+
+IDD_CFGDLG DIALOGEX 0, 0, 253, 163
+STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
+CAPTION "Link Cable Configuration"
+FONT 8, "MS Sans Serif", 0, 0, 0x0
+BEGIN
+ DEFPUSHBUTTON "OK",IDOK,151,142,45,14
+ PUSHBUTTON "Cancel",IDCANCEL,201,142,45,14
+ GROUPBOX "General settings",IDC_STATIC,7,2,239,135
+ CONTROL "Disabled",IDC_DISABLED,"Button",BS_AUTORADIOBUTTON,14,75,87,10
+ CONTROL "Server (Player 1)",IDC_SERVER,"Button",BS_AUTORADIOBUTTON,14,88,89,10
+ CONTROL "Client (Player 2)",IDC_CLIENT,"Button",BS_AUTORADIOBUTTON,14,102,89,10
+ LTEXT "Port number:",IDC_STATIC,15,120,63,8
+ EDITTEXT IDC_IP,106,100,101,14,ES_AUTOHSCROLL
+ EDITTEXT IDC_PORT,106,118,40,14,ES_AUTOHSCROLL
+ LTEXT "Select here if you'll be Server (Player1) or Client (Player2).",IDC_STATIC,15,15,223,8
+ LTEXT "If you select Server you must Copy your IP address",IDC_STATIC,15,26,223,8
+ LTEXT "to the Clipboard and paste if (Ctrl+V) wherever the Client can see it.",IDC_STATIC,15,37,222,8
+ LTEXT "If you selected Client please enter the IP address the Server",IDC_STATIC,15,48,223,8
+ LTEXT "gave to you in the IP Address Control.",IDC_STATIC,15,59,221,8
+END
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// DESIGNINFO
+//
+
+#ifdef APSTUDIO_INVOKED
+GUIDELINES DESIGNINFO
+BEGIN
+ IDD_ABOUT, DIALOG
+ BEGIN
+ LEFTMARGIN, 7
+ RIGHTMARGIN, 170
+ TOPMARGIN, 7
+ BOTTOMMARGIN, 45
+ END
+
+ IDD_CFGDLG, DIALOG
+ BEGIN
+ LEFTMARGIN, 7
+ RIGHTMARGIN, 246
+ TOPMARGIN, 7
+ BOTTOMMARGIN, 156
+ END
+END
+#endif // APSTUDIO_INVOKED
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Version
+//
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION 1,0,1,0
+ PRODUCTVERSION 1,0,1,0
+ FILEFLAGSMASK 0x3fL
+#ifdef _DEBUG
+ FILEFLAGS 0x1L
+#else
+ FILEFLAGS 0x0L
+#endif
+ FILEOS 0x4L
+ FILETYPE 0x2L
+ FILESUBTYPE 0x0L
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "040904b0"
+ BEGIN
+ VALUE "FileDescription", "bladesio1"
+ VALUE "FileVersion", "1.0.1.0"
+ VALUE "InternalName", "bladesio1"
+ VALUE "OriginalFilename", "bladesio1.dll"
+ VALUE "ProductName", "bladesio1"
+ VALUE "ProductVersion", "1.0.1.0"
+ END
+ END
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0x409, 1200
+ END
+END
+
+#endif // Neutral resources
+/////////////////////////////////////////////////////////////////////////////
+
+
+
+#ifndef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 3 resource.
+//
+#define _AFX_NO_SPLITTER_RESOURCES
+#define _AFX_NO_OLE_RESOURCES
+#define _AFX_NO_TRACKER_RESOURCES
+#define _AFX_NO_PROPERTY_RESOURCES
+
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
+#ifdef _WIN32
+LANGUAGE 9, 1
+#pragma code_page(1252)
+#endif
+#endif
+/////////////////////////////////////////////////////////////////////////////
+#endif // not APSTUDIO_INVOKED
+
diff --git a/win32/plugins/bladesio1/bladesio1.sln b/win32/plugins/bladesio1/bladesio1.sln
new file mode 100644
index 00000000..46cf7832
--- /dev/null
+++ b/win32/plugins/bladesio1/bladesio1.sln
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "bladesio1", "bladesio1.vcxproj", "{F57B00CD-8399-4683-901E-11FA09727AE5}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Win32 = Debug|Win32
+ Release|Win32 = Release|Win32
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {F57B00CD-8399-4683-901E-11FA09727AE5}.Debug|Win32.ActiveCfg = Debug|Win32
+ {F57B00CD-8399-4683-901E-11FA09727AE5}.Debug|Win32.Build.0 = Debug|Win32
+ {F57B00CD-8399-4683-901E-11FA09727AE5}.Release|Win32.ActiveCfg = Release|Win32
+ {F57B00CD-8399-4683-901E-11FA09727AE5}.Release|Win32.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/win32/plugins/bladesio1/bladesio1.vcxproj b/win32/plugins/bladesio1/bladesio1.vcxproj
new file mode 100755
index 00000000..f5e15458
--- /dev/null
+++ b/win32/plugins/bladesio1/bladesio1.vcxproj
@@ -0,0 +1,182 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup Label="ProjectConfigurations">
+ <ProjectConfiguration Include="Debug|Win32">
+ <Configuration>Debug</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|Win32">
+ <Configuration>Release</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ </ItemGroup>
+ <PropertyGroup Label="Globals">
+ <ProjectGuid>{F57B00CD-8399-4683-901E-11FA09727AE5}</ProjectGuid>
+ <RootNamespace>bladesio1</RootNamespace>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
+ <UseOfMfc>false</UseOfMfc>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
+ <UseOfMfc>false</UseOfMfc>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+ <ImportGroup Label="ExtensionSettings">
+ </ImportGroup>
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC60.props" />
+ </ImportGroup>
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC60.props" />
+ </ImportGroup>
+ <PropertyGroup Label="UserMacros" />
+ <PropertyGroup>
+ <_ProjectFileVersion>10.0.40219.1</_ProjectFileVersion>
+ <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\Release\</OutDir>
+ <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\Release\</IntDir>
+ <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
+ <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\Debug\</OutDir>
+ <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\Debug\</IntDir>
+ <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</LinkIncremental>
+ <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
+ <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
+ <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
+ <CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
+ <CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
+ <CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
+ </PropertyGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <Midl>
+ <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <MkTypLibCompatible>true</MkTypLibCompatible>
+ <SuppressStartupBanner>true</SuppressStartupBanner>
+ <TargetEnvironment>Win32</TargetEnvironment>
+ <TypeLibraryName>.\Release/bladesio1.tlb</TypeLibraryName>
+ <HeaderFileName>
+ </HeaderFileName>
+ </Midl>
+ <ClCompile>
+ <Optimization>MaxSpeed</Optimization>
+ <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
+ <AdditionalIncludeDirectories>.\;.\winsrc;..\..\..\plugins\bladesio1;..\..\..\libpcsxcore;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <StringPooling>true</StringPooling>
+ <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
+ <FunctionLevelLinking>true</FunctionLevelLinking>
+ <PrecompiledHeaderOutputFile>.\Release/bladesio1.pch</PrecompiledHeaderOutputFile>
+ <AssemblerListingLocation>.\Release/</AssemblerListingLocation>
+ <ObjectFileName>.\Release/</ObjectFileName>
+ <ProgramDataBaseFileName>.\Release/</ProgramDataBaseFileName>
+ <BrowseInformation>true</BrowseInformation>
+ <WarningLevel>Level3</WarningLevel>
+ <SuppressStartupBanner>true</SuppressStartupBanner>
+ </ClCompile>
+ <ResourceCompile>
+ <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <Culture>0x0407</Culture>
+ </ResourceCompile>
+ <Link>
+ <AdditionalDependencies>winmm.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <OutputFile>.\Release/bladesio1.dll</OutputFile>
+ <SuppressStartupBanner>true</SuppressStartupBanner>
+ <ModuleDefinitionFile>.\bladesio1.def</ModuleDefinitionFile>
+ <ProgramDatabaseFile>.\Release/bladesio1.pdb</ProgramDatabaseFile>
+ <SubSystem>Windows</SubSystem>
+ <RandomizedBaseAddress>false</RandomizedBaseAddress>
+ <DataExecutionPrevention>
+ </DataExecutionPrevention>
+ <ImportLibrary>.\Release/bladesio1.lib</ImportLibrary>
+ <TargetMachine>MachineX86</TargetMachine>
+ </Link>
+ <Bscmake>
+ <SuppressStartupBanner>true</SuppressStartupBanner>
+ <OutputFile>.\Release/bladesio1.bsc</OutputFile>
+ </Bscmake>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <Midl>
+ <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <MkTypLibCompatible>true</MkTypLibCompatible>
+ <SuppressStartupBanner>true</SuppressStartupBanner>
+ <TargetEnvironment>Win32</TargetEnvironment>
+ <TypeLibraryName>.\Debug/bladesio1.tlb</TypeLibraryName>
+ <HeaderFileName>
+ </HeaderFileName>
+ </Midl>
+ <ClCompile>
+ <Optimization>Disabled</Optimization>
+ <AdditionalIncludeDirectories>.\;.\winsrc;..\..\..\plugins\bladesio1;..\..\..\libpcsxcore;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <MinimalRebuild>true</MinimalRebuild>
+ <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
+ <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
+ <PrecompiledHeaderOutputFile>.\Debug/bladesio1.pch</PrecompiledHeaderOutputFile>
+ <AssemblerListingLocation>.\Debug/</AssemblerListingLocation>
+ <ObjectFileName>.\Debug/</ObjectFileName>
+ <ProgramDataBaseFileName>.\Debug/</ProgramDataBaseFileName>
+ <WarningLevel>Level3</WarningLevel>
+ <SuppressStartupBanner>true</SuppressStartupBanner>
+ <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
+ </ClCompile>
+ <ResourceCompile>
+ <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <Culture>0x0407</Culture>
+ </ResourceCompile>
+ <Link>
+ <AdditionalDependencies>winmm.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <OutputFile>.\Debug/bladesio1.dll</OutputFile>
+ <SuppressStartupBanner>true</SuppressStartupBanner>
+ <ModuleDefinitionFile>.\bladesio1.def</ModuleDefinitionFile>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <ProgramDatabaseFile>.\Debug/bladesio1.pdb</ProgramDatabaseFile>
+ <SubSystem>Windows</SubSystem>
+ <RandomizedBaseAddress>false</RandomizedBaseAddress>
+ <DataExecutionPrevention>
+ </DataExecutionPrevention>
+ <ImportLibrary>.\Debug/bladesio1.lib</ImportLibrary>
+ <TargetMachine>MachineX86</TargetMachine>
+ </Link>
+ <Bscmake>
+ <SuppressStartupBanner>true</SuppressStartupBanner>
+ <OutputFile>.\Debug/bladesio1.bsc</OutputFile>
+ </Bscmake>
+ </ItemDefinitionGroup>
+ <ItemGroup>
+ <ClCompile Include="..\..\..\plugins\bladesio1\connection.c" />
+ <ClCompile Include="..\..\..\plugins\bladesio1\fifo.c" />
+ <ClCompile Include="..\..\..\plugins\bladesio1\sio1.c" />
+ <ClCompile Include="winsrc\cfg-winapi.c" />
+ <ClCompile Include="winsrc\winmain.c">
+ <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ </ClCompile>
+ </ItemGroup>
+ <ItemGroup>
+ <ClInclude Include="..\..\..\plugins\bladesio1\connection.h" />
+ <ClInclude Include="..\..\..\plugins\bladesio1\fifo.h" />
+ <ClInclude Include="..\..\..\plugins\bladesio1\sio1.h" />
+ <ClInclude Include="..\..\..\plugins\bladesio1\typedefs.h" />
+ <ClInclude Include="resource.h" />
+ <ClInclude Include="winsrc\cfg-winapi.h" />
+ <ClInclude Include="winsrc\stdafx.h" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="bladesio1.def" />
+ </ItemGroup>
+ <ItemGroup>
+ <ResourceCompile Include="bladesio1.rc">
+ <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ </ResourceCompile>
+ </ItemGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+ <ImportGroup Label="ExtensionTargets">
+ </ImportGroup>
+</Project> \ No newline at end of file
diff --git a/win32/plugins/bladesio1/bladesio1.vcxproj.filters b/win32/plugins/bladesio1/bladesio1.vcxproj.filters
new file mode 100755
index 00000000..5e5a1067
--- /dev/null
+++ b/win32/plugins/bladesio1/bladesio1.vcxproj.filters
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup>
+ <Filter Include="winsrc">
+ <UniqueIdentifier>{b54538cc-5b42-4480-adf8-44c08f01d6c6}</UniqueIdentifier>
+ </Filter>
+ <Filter Include="bladesio1">
+ <UniqueIdentifier>{394ea6fd-453d-4665-ac08-c0c5d867918b}</UniqueIdentifier>
+ </Filter>
+ </ItemGroup>
+ <ItemGroup>
+ <ClCompile Include="winsrc\winmain.c">
+ <Filter>winsrc</Filter>
+ </ClCompile>
+ <ClCompile Include="..\..\..\plugins\bladesio1\connection.c">
+ <Filter>bladesio1</Filter>
+ </ClCompile>
+ <ClCompile Include="..\..\..\plugins\bladesio1\fifo.c">
+ <Filter>bladesio1</Filter>
+ </ClCompile>
+ <ClCompile Include="..\..\..\plugins\bladesio1\sio1.c">
+ <Filter>bladesio1</Filter>
+ </ClCompile>
+ <ClCompile Include="winsrc\cfg-winapi.c">
+ <Filter>winsrc</Filter>
+ </ClCompile>
+ </ItemGroup>
+ <ItemGroup>
+ <ClInclude Include="resource.h" />
+ <ClInclude Include="..\..\..\plugins\bladesio1\fifo.h">
+ <Filter>bladesio1</Filter>
+ </ClInclude>
+ <ClInclude Include="..\..\..\plugins\bladesio1\sio1.h">
+ <Filter>bladesio1</Filter>
+ </ClInclude>
+ <ClInclude Include="..\..\..\plugins\bladesio1\connection.h">
+ <Filter>bladesio1</Filter>
+ </ClInclude>
+ <ClInclude Include="winsrc\stdafx.h">
+ <Filter>winsrc</Filter>
+ </ClInclude>
+ <ClInclude Include="..\..\..\plugins\bladesio1\typedefs.h">
+ <Filter>bladesio1</Filter>
+ </ClInclude>
+ <ClInclude Include="winsrc\cfg-winapi.h">
+ <Filter>winsrc</Filter>
+ </ClInclude>
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="bladesio1.def" />
+ </ItemGroup>
+ <ItemGroup>
+ <ResourceCompile Include="bladesio1.rc" />
+ </ItemGroup>
+</Project> \ No newline at end of file
diff --git a/win32/plugins/bladesio1/bladesio1.vcxproj.user b/win32/plugins/bladesio1/bladesio1.vcxproj.user
new file mode 100755
index 00000000..695b5c78
--- /dev/null
+++ b/win32/plugins/bladesio1/bladesio1.vcxproj.user
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+</Project> \ No newline at end of file
diff --git a/win32/plugins/bladesio1/resource.h b/win32/plugins/bladesio1/resource.h
new file mode 100644
index 00000000..73292d77
--- /dev/null
+++ b/win32/plugins/bladesio1/resource.h
@@ -0,0 +1,57 @@
+//{{NO_DEPENDENCIES}}
+// Microsoft Visual C++ generated include file.
+// Used by bladesio1.rc
+//
+#define IDC_SETS1 3
+#define IDC_SETS2 4
+#define IDOK2 5
+#define IDD_DIALOG1 130
+#define IDD_ABOUT 130
+#define IDD_CFGDLG 131
+#define IDC_XAVOLUME 1004
+#define IDC_ENABXA 1005
+#define IDC_XAPITCH 1006
+#define IDC_XABLOCK 1007
+#define IDC_USETIMER 1007
+#define IDC_CMIXRATE 1008
+#define IDC_USEIRQ 1008
+#define IDC_USEREVERB 1008
+#define IDC_CMODE 1009
+#define IDC_VOLUME 1009
+#define IDC_CFILTER 1010
+#define IDC_IRQWAIT 1010
+#define IDC_CQUALITY 1011
+#define IDC_DEBUGMODE 1011
+#define IDC_CDSOUND 1012
+#define IDC_INTERPOL 1012
+#define IDC_PLAYALWAYS 1013
+#define IDC_RECORDMODE 1013
+#define IDC_IGNOREPITCH 1014
+#define IDC_DISSTEREO 1014
+#define IDC_AMPLIF 1015
+#define IDC_IRQDECODE 1015
+#define IDC_VENVELOPE 1016
+#define IDC_VOL1 1016
+#define IDC_REVERB 1017
+#define IDC_VOL2 1017
+#define IDC_VOL3 1018
+#define IDC_VOL4 1019
+#define IDC_XA 1133
+#define IDC_FREQRESPONSE 1136
+#define IDC_DISABLED 1137
+#define IDC_SERVER 1138
+#define IDC_CLIENT 1139
+#define IDC_IP 1141
+#define IDC_EDIT2 1145
+#define IDC_PORT 1145
+
+// Next default values for new objects
+//
+#ifdef APSTUDIO_INVOKED
+#ifndef APSTUDIO_READONLY_SYMBOLS
+#define _APS_NEXT_RESOURCE_VALUE 144
+#define _APS_NEXT_COMMAND_VALUE 32771
+#define _APS_NEXT_CONTROL_VALUE 1146
+#define _APS_NEXT_SYMED_VALUE 101
+#endif
+#endif
diff --git a/win32/plugins/bladesio1/winsrc/cfg-winapi.c b/win32/plugins/bladesio1/winsrc/cfg-winapi.c
new file mode 100755
index 00000000..73b0ebb6
--- /dev/null
+++ b/win32/plugins/bladesio1/winsrc/cfg-winapi.c
@@ -0,0 +1,138 @@
+/***************************************************************************
+ * Copyright (C) 2013 by Blade_Arma <edgbla@yandex.ru> *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *
+ ***************************************************************************/
+
+#include "stdafx.h"
+#include "typedefs.h"
+#include "cfg-winapi.h"
+#include "sio1.h"
+
+/***************************************************************************/
+
+void settingsRead() {
+ HKEY myKey;
+ DWORD temp;
+ DWORD type;
+ DWORD size;
+
+ settings.player = PLAYER_DISABLED;
+ strcpy(settings.ip, "127.0.0.1");
+ settings.port = 33307;
+
+ if(RegOpenKeyEx(HKEY_CURRENT_USER,"Software\\Vision Thing\\PSEmu Pro\\SIO1\\bladesio1",0,KEY_ALL_ACCESS,&myKey) == ERROR_SUCCESS) {
+ size = 4;
+ if(RegQueryValueEx(myKey, "player", 0, &type, (LPBYTE)&temp, &size) == ERROR_SUCCESS)
+ settings.player = (int)temp;
+ size = sizeof(settings.ip);
+ RegQueryValueEx(myKey, "ip", 0, &type, (LPBYTE)settings.ip, &size);
+ size = 4;
+ if(RegQueryValueEx(myKey, "port", 0, &type, (LPBYTE)&temp, &size) == ERROR_SUCCESS)
+ settings.port = (int)temp;
+
+ RegCloseKey(myKey);
+ }
+}
+
+void settingsWrite() {
+ HKEY myKey;
+ DWORD myDisp;
+ DWORD temp;
+
+ RegCreateKeyEx(HKEY_CURRENT_USER, "Software\\Vision Thing\\PSEmu Pro\\SIO1\\bladesio1", 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &myKey, &myDisp);
+ temp = settings.player;
+ RegSetValueEx(myKey, "player", 0, REG_DWORD, (LPBYTE)&temp, sizeof(temp));
+ RegCreateKeyEx(HKEY_CURRENT_USER,"Software\\Vision Thing\\PSEmu Pro\\SIO1\\bladesio1", 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &myKey, &myDisp);
+ RegSetValueEx(myKey, "ip", 0, REG_SZ, (BYTE*)settings.ip, strlen(settings.ip));
+ RegCreateKeyEx(HKEY_CURRENT_USER,"Software\\Vision Thing\\PSEmu Pro\\SIO1\\bladesio1", 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &myKey, &myDisp);
+ temp = settings.port;
+ RegSetValueEx(myKey, "port", 0, REG_DWORD,(LPBYTE) &temp,sizeof(temp));
+
+ RegCloseKey(myKey);
+}
+
+/***************************************************************************/
+
+BOOL OnInitSio1Dialog(HWND hW) {
+ char str[32];
+
+ settingsRead();
+
+ CheckRadioButton(hW, IDC_DISABLED, IDC_CLIENT, IDC_DISABLED + settings.player);
+ SetDlgItemText(hW, IDC_IP, settings.ip);
+ sprintf(str, "%i", settings.port);
+ SetDlgItemText(hW, IDC_PORT, str);
+
+ return TRUE;
+}
+
+void OnSio1OK(HWND hW) {
+ char str[32];
+
+ if(IsDlgButtonChecked(hW,IDC_DISABLED))
+ settings.player = 0;
+ if(IsDlgButtonChecked(hW,IDC_SERVER))
+ settings.player = 1;
+ if(IsDlgButtonChecked(hW,IDC_CLIENT))
+ settings.player = 2;
+ GetDlgItemText(hW,IDC_IP, settings.ip, sizeof(settings.ip));
+ GetDlgItemText(hW,IDC_PORT, str, sizeof(str));
+ settings.port = atoi(str);
+
+ settingsWrite();
+
+ EndDialog(hW,TRUE);
+}
+
+void OnSio1Cancel(HWND hW) {
+ EndDialog(hW,FALSE);
+}
+
+BOOL CALLBACK Sio1DlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lParam) {
+ switch(uMsg) {
+ case WM_INITDIALOG:
+ return OnInitSio1Dialog(hW);
+ case WM_COMMAND: {
+ switch(LOWORD(wParam)) {
+ case IDCANCEL:
+ OnSio1Cancel(hW);
+ return TRUE;
+ case IDOK:
+ OnSio1OK(hW);
+ return TRUE;
+ }
+ }
+ }
+
+ return FALSE;
+}
+
+BOOL CALLBACK AboutDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lParam) {
+ switch(uMsg) {
+ case WM_COMMAND: {
+ switch(LOWORD(wParam)) {
+ case IDOK:
+ EndDialog(hW,TRUE);
+ return TRUE;
+ }
+ }
+ }
+
+ return FALSE;
+}
+
+/***************************************************************************/
diff --git a/win32/plugins/bladesio1/winsrc/cfg-winapi.h b/win32/plugins/bladesio1/winsrc/cfg-winapi.h
new file mode 100644
index 00000000..25dec104
--- /dev/null
+++ b/win32/plugins/bladesio1/winsrc/cfg-winapi.h
@@ -0,0 +1,32 @@
+/***************************************************************************
+ * Copyright (C) 2013 by Blade_Arma <edgbla@yandex.ru> *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *
+ ***************************************************************************/
+
+#ifndef _CFG_H_
+#define _CFG_H_
+
+#include <windows.h>
+
+/***************************************************************************/
+
+extern BOOL CALLBACK Sio1DlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lParam);
+extern BOOL CALLBACK AboutDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lParam);
+
+/***************************************************************************/
+
+#endif // _CFG_H_
diff --git a/win32/plugins/bladesio1/winsrc/stdafx.h b/win32/plugins/bladesio1/winsrc/stdafx.h
new file mode 100755
index 00000000..55399437
--- /dev/null
+++ b/win32/plugins/bladesio1/winsrc/stdafx.h
@@ -0,0 +1,32 @@
+/***************************************************************************
+ * Copyright (C) 2013 by Blade_Arma <edgbla@yandex.ru> *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *
+ ***************************************************************************/
+
+#ifndef _STDAFX_H_
+#define _STDAFX_H_
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <stdint.h>
+
+#include <windows.h>
+#include "resource.h"
+
+extern HINSTANCE hInst;
+
+#endif // _STDAFX_H_
diff --git a/win32/plugins/bladesio1/winsrc/winmain.c b/win32/plugins/bladesio1/winsrc/winmain.c
new file mode 100755
index 00000000..4cccb159
--- /dev/null
+++ b/win32/plugins/bladesio1/winsrc/winmain.c
@@ -0,0 +1,27 @@
+/***************************************************************************
+ * Copyright (C) 2013 by Blade_Arma <edgbla@yandex.ru> *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *
+ ***************************************************************************/
+
+#include <stdafx.h>
+
+HINSTANCE hInst = NULL;
+
+BOOL APIENTRY DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) {
+ hInst = (HINSTANCE)hModule;
+ return TRUE;
+}