Skip to content

Commit 20d51c3

Browse files
committed
Adding libusb-posix skeleton.
1 parent 67e333c commit 20d51c3

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

src/ftdi/abstract-libusb-posix.cc

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/***************************************************************************
2+
* Copyright (C) 2019 PCSX-Redux authors *
3+
* *
4+
* This program is free software; you can redistribute it and/or modify *
5+
* it under the terms of the GNU General Public License as published by *
6+
* the Free Software Foundation; either version 2 of the License, or *
7+
* (at your option) any later version. *
8+
* *
9+
* This program is distributed in the hope that it will be useful, *
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12+
* GNU General Public License for more details. *
13+
* *
14+
* You should have received a copy of the GNU General Public License *
15+
* along with this program; if not, write to the *
16+
* Free Software Foundation, Inc., *
17+
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *
18+
***************************************************************************/
19+
20+
#ifndef _WIN32
21+
22+
#include "ftdi/abstract.h"
23+
24+
static std::vector<PCSX::FTDI::Device> s_devices;
25+
26+
void PCSX::FTDI::DeviceList::scan() { abort(); }
27+
28+
const std::vector<PCSX::FTDI::Device>& PCSX::FTDI::DeviceList::get() { return s_devices; }
29+
30+
#endif

vsprojects/ftdi/ftdi.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@
149149
</ItemGroup>
150150
<ItemGroup>
151151
<ClCompile Include="..\..\src\ftdi\abstract-ftd2xx-win32.cc" />
152+
<ClCompile Include="..\..\src\ftdi\abstract-libusb-posix.cc" />
152153
</ItemGroup>
153154
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
154155
<ImportGroup Label="ExtensionTargets">

vsprojects/ftdi/ftdi.vcxproj.filters

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,8 @@
2626
<ClCompile Include="..\..\src\ftdi\abstract-ftd2xx-win32.cc">
2727
<Filter>Source Files</Filter>
2828
</ClCompile>
29+
<ClCompile Include="..\..\src\ftdi\abstract-libusb-posix.cc">
30+
<Filter>Source Files</Filter>
31+
</ClCompile>
2932
</ItemGroup>
3033
</Project>

0 commit comments

Comments
 (0)