Skip to content

Commit

Permalink
wdi-simple: setup for GC adapters
Browse files Browse the repository at this point in the history
make wdi-simple not silent

run wdi-simple as admin

update installing drivers log
  • Loading branch information
NikhilNarayana committed Mar 5, 2023
1 parent 7cabaa2 commit 159cca2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
1 change: 1 addition & 0 deletions examples/.msvc/wdi-simple.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@
<OptimizeReferences>true</OptimizeReferences>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<TargetMachine>MachineX64</TargetMachine>
<UACExecutionLevel>RequireAdministrator</UACExecutionLevel>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
Expand Down
21 changes: 7 additions & 14 deletions examples/wdi-simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,26 +40,18 @@
* Change these values according to your device if
* you don't want to provide parameters
*/
#define DESC "Microsoft XBox Controller Type S"
#define VID 0x045E
#define PID 0x0289
#define INF_NAME "usb_device.inf"
#define DEFAULT_DIR "usb_driver"
#define DESC "GameCube Controller Adapter"
#define VID 0x057E
#define PID 0x0337
#define INF_NAME "gc_adapter.inf"
#define DEFAULT_DIR "gc_adapter"


void usage(void)
{
printf("\n");
printf("-n, --name <name> set the device name\n");
printf("-f, --inf <name> set the inf name\n");
printf("-m, --manufacturer <name> set the manufacturer name\n");
printf("-v, --vid <id> set the vendor ID (VID, use 0x prefix for hex)\n");
printf("-p, --pid <id> set the product ID (PID, use 0x prefix for hex)\n");
printf("-i, --iid <id> set the interface ID (MI)\n");
printf("-t, --type <driver_type> set the driver to install\n");
printf(" (0=WinUSB, 1=libusb-win32, 2=libusbK, 3=usbser, 4=custom)\n");
printf("-w, --wcid use a WCID driver instead of a device-specific\n");
printf(" one (WinUSB, libusb-win32 or libusbK only)\n");
printf(" --filter use the libusb-win32 filter driver (requires -t1)\n");
printf("-d, --dest <dir> set the extraction directory\n");
printf("-e, --external <path> use the external inf specified by <path> as source\n");
Expand Down Expand Up @@ -223,7 +215,8 @@ int __cdecl main(int argc, char** argv)
oprintf(" %s\n", wdi_strerror(r));
}

oprintf("Installing driver(s)...\n");
oprintf("\nInstalling the necessary drivers for using a GameCube Controller Adapter in Wii U mode.\nThis window will automatically close once the installation finishes.\n\n");
oprintf("This may take a few minutes\n");

// Try to match against a plugged device to avoid device manager prompts
matching_device_found = FALSE;
Expand Down

0 comments on commit 159cca2

Please sign in to comment.