Commit Graph

198 Commits

Author SHA1 Message Date
jdgleaver 75b3b5350c Add 'Notification Visibility' menu 2020-07-16 16:32:01 +01:00
jdgleaver 84a71ea133 Rewrite 'task_autodetect.c': Ensure thread safety + clean-ups/rationalisation 2020-07-14 17:46:58 +01:00
twinaphex fded8ab357 Fix issues pointed out by static code analysis 2020-06-29 19:15:07 +02:00
jdgleaver b6364407fd Optimise parsing of configuration files 2020-06-25 15:15:08 +01:00
twinaphex f5940ed188 Use malloc instead of calloc where possible 2020-06-24 19:27:02 +02:00
twinaphex d714520c64 (Autodetect) Cleanups 2020-06-11 02:29:32 +02:00
twinaphex 00167caf54 Use localized strings 2020-05-29 12:54:09 +02:00
twinaphex a50fd86f3e Add global state warnings 2020-05-29 06:11:07 +02:00
jdgleaver fb7b1ec1a0 Use correct port index in input device configured/disconnected notifications 2020-03-24 11:18:54 +00:00
twinaphex cc50cefd30 Cleanups 2020-03-01 21:58:09 +01:00
twinaphex 7c7d0f596a HAVE_MENU_WIDGETS now decoupled from HAVE_MENU 2020-02-17 21:28:42 +01:00
twinaphex de604a79ab dir_list_new_special - no more dependency on settings_t 2020-02-14 12:12:59 +01:00
twinaphex cfcce71392 - Add HAVE_BLISSBOX
- Do not use logging functions inside internal task functions - should
always be done outside at end handler function
2020-01-25 17:17:53 +01:00
twinaphex 7748ac207c Split up blissbox code into separate file
tasks/task_autodetect_blissbox.c
2020-01-19 06:40:07 +01:00
twinaphex b94b9e2adb Go back to plain strlcpy/strlcat - probably best to look at
opportunities to reduce these calls vs. replacing them with
unsafe macros
2019-09-23 00:19:01 +02:00
twinaphex 3b057d9605 Start using STRLCAT_CONST_INCR and STRLCPY_CONST 2019-09-20 23:33:17 +02:00
twinaphex db624a7c99 Start cleaning up the rather messy manual assignment 2019-09-20 02:03:26 +02:00
twinaphex 8fa6230426 Cleanups 2019-09-18 02:16:47 +02:00
twinaphex 7d58bb9799 Avoid more snprintf usage 2019-09-17 06:34:00 +02:00
Tatsuya79 924a898e1d
typo 2019-08-05 01:24:50 +02:00
twinaphex c82693037f Cleanups 2019-08-02 21:15:54 +02:00
orbea e13ec54dc6 Fix --disable-overlay. 2019-07-21 10:26:42 -07:00
twinaphex c2c7c106a1 Add conf->path for config_file_new_from_path_to_string 2019-07-20 00:39:55 +02:00
twinaphex 41a2fabb4e Create config_file_new_from_path_to_string 2019-07-18 12:03:50 +02:00
twinaphex 319e708738 core_info_list_iterate - use config_file_from_string 2019-07-16 19:01:43 +02:00
twinaphex f73e4e9af8 (Autoconfig) Try to avoid implicit fgets calls which are slow (inside
config_file_new and filestream_getline) - instead, read the entire
file into a memory buffer once and then pass it to
config_file_new_from_string - went from 14000 ticks to 9000 ticks
on an NVME M2 SSD, so big gains
2019-07-16 18:35:44 +02:00
twinaphex 0257e01bee Refactor input_autoconfigure_connect - don't return
value - set input device name upon failure implicitly
2019-07-16 15:28:22 +02:00
twinaphex 195b016293 (Autoconfig task) Store 'best config' so that we don't have to
call config_file_new again once we have queried all the autoconfig
profiles
2019-07-16 09:55:35 +02:00
radius d865c5e4a6 add some copyright on files I contributed considerably just in case 2019-06-20 05:45:17 +02:00
radius 1704ef8410 autoconf cleanups, fix swap ok/cancel in ozone 2019-05-28 16:29:54 +02:00
twinaphex 9bc0478e9d (tasks) Cleanups 2019-05-23 13:05:15 +02:00
twinaphex 06cfdfdcbb Make some log messages uniform 2019-04-30 13:43:01 +02:00
twinaphex bc2bdd5734 config_file_read not needed anymore 2019-04-30 13:37:10 +02:00
twinaphex 16e2db25c4 Prefer config_file_read instead of config_file_new when we are
sure the path cannot be a directory path
2019-04-22 01:23:50 +02:00
twinaphex 270e95bc97 Turn a lot of input_config_parse functions static 2019-04-21 06:42:13 +02:00
twinaphex 3619fae2d9 (LGTM) Silence some warnings 2019-04-13 02:15:26 +02:00
Brad Parker 10df615d14 add "Send Debug Info" option under Help 2019-03-07 19:17:54 -05:00
Brad Parker 4f0d61a2ac update copyright 2019-02-22 19:13:36 -05:00
natinusala c20ab3864d First version of menu widgets (gl only) 2019-02-06 20:48:24 +01:00
orbea 28ff4b391a Clean up white space. 2019-02-03 16:00:50 -08:00
orbea bfc366decc Squeeze extra blank lines with cat(1).
Example:

find . -type f -iname '*.c' | while read -r i; do
  cat -s "$i" > "$i.new"
  mv "$i.new" "$i"
done
2019-01-08 11:04:58 -08:00
twinaphex 1c6602e35d Add thread safety note 2018-11-28 11:02:36 +01:00
M4xw 03ad3b5c30 [LIBNX] Remove task_autodetect workaround 2018-09-29 19:36:12 +02:00
M4xw 3a6e410833 [LIBNX] Add pthreads wrapper 2018-09-15 02:28:52 +02:00
twinaphex 9dd33b9797 More CXX_BUILD linking error fixing 2018-02-04 20:57:30 +01:00
aliaspider 700fce3bd2 various fixes for CXX_BUILD. 2018-02-04 20:03:27 +01:00
bparker06 3d2c579bc7
Change Bliss-Box feature report size per ulao 2018-01-28 20:26:47 -05:00
twinaphex 8e3b3762ad More compatibility fixes for CXX_BUILD 2018-01-25 16:33:28 +01:00
aliaspider 5db96f35fa (WIN32) various build fixes. 2018-01-20 20:05:32 +01:00
radius d1dba26565 fix display name for builtin autoconfs again 2018-01-16 22:18:28 -05:00
twinaphex 61ff51be2f Start using string_is_equal predominantly 2018-01-16 22:53:38 +01:00
radius 2e210b6bb4 fix my last PR for builtin autoconfs 2018-01-12 10:29:35 -05:00
radius 3b334b60d6 add display name and config name to autoconf 2018-01-11 17:06:14 -05:00
twinaphex d09e0f7da2 (task_autodetect.c) Too much verbose spam 2017-12-31 04:24:42 +01:00
gblues 704cc61fd8 Fix bug in autodetect macro, gamepad now works properly
== DETAILS
The gamepad didn't work because I had tried to rename the pad from
'WIIU Gamepad' to 'WiiU Gamepad'.

I added some debug logging and (to cut out a lot of trial-and-error)
discovered that the reason it didn't work was because a bug in a macro
was  using the define literally instead of substituting it (so e.g.
the autodetect handler was trying to match 'WiiU Gamepad' against the
literal string 'PAD_NAME_WIIU_GAMEPAD').

- Fixed the macro bug
- Left a minimal amount of the debug logging in place; may come in
  handy for someone else.
- Updated wpad/kpad/hidpad to use the define constants

== TESTING
Did a test build and confirmed the gamepad responded.
2017-12-30 04:43:33 +01:00
Brad Parker b0445e1e21 Bliss-Box: Work around Windows sharing violation bug by trying to open device as read/write if read-only fails. Show OSD message if it still fails. 2017-12-07 17:47:20 -05:00
David Walters 609bcb4dc2 fix device indexing 2017-12-05 22:03:56 +00:00
Brad Parker 4efc8453c2 buildfix for certain mingw environments 2017-12-02 15:59:42 -05:00
twinaphex 2608fd1550 (task_autodetect.c) Cleanups 2017-12-02 11:36:22 +01:00
Brad Parker 067f5bcd16 blissbox: add 4-Play to overridden hid name 2017-12-01 22:40:17 -05:00
Brad Parker 0eb8c47166 try to fix lack of GUID type on buildbot that I cannot reproduce 2017-12-01 14:38:13 -05:00
Brad Parker b9394846dc blissbox: use win32 HID API to get pad type on windows, libusb seems broken there 2017-12-01 14:07:40 -05:00
Brad Parker 5a2dff0ff1 only use libusb code if we have support for it 2017-11-28 22:32:41 -05:00
Brad Parker def24ef8eb blissbox: print message if detecting update mode or old firmware versions, override vid/pid check for autoconfig profiles, misc comments 2017-11-28 21:25:54 -05:00
Brad Parker 2dd64d9c11 Initial blissbox support, requires firmware 2.0. Currently limited to platforms with libusb support. 2017-11-28 18:25:12 -05:00
Brad Parker 7a6d2cb5e6 set list to NULL after free in case autoconfig directory is empty 2017-09-30 19:03:39 -04:00
twinaphex de6b1bcbf0 Fix another Coverity error 2017-09-30 17:11:51 +02:00
twinaphex 73d1539bb0 Fix another Coverity error 2017-09-30 17:08:42 +02:00
twinaphex 2a8b74eeb9 Fix some Coverity errors 2017-09-30 16:52:41 +02:00
twinaphex f61b9e1747 Cleanup 2017-09-30 08:24:01 +02:00
twinaphex 063343e538 Simplify this 2017-09-30 07:29:19 +02:00
Brad Parker c856a36a58 more null checks 2017-09-30 01:18:40 -04:00
twinaphex 00ea9be8fc Be safer 2017-09-30 06:38:53 +02:00
twinaphex ff926439ac Fix this up 2017-09-30 06:29:07 +02:00
twinaphex 5fd05c6b56 There were some unused variables 2017-09-30 06:25:41 +02:00
twinaphex f323168251 Simplify conditionals 2017-09-30 06:08:09 +02:00
twinaphex 819e3fb02a Initialize struct 2017-09-29 17:06:38 +02:00
Twinaphex f713a30705 Update task_autodetect.c 2017-09-29 15:08:09 +02:00
twinaphex 5951bed07d Make stdin an option 2017-09-29 06:16:35 +02:00
twinaphex fcf6228dce Turn into char pointer array 2017-09-27 20:11:44 +02:00
twinaphex b79f95668b Turn it into char pointer array 2017-09-27 20:08:37 +02:00
twinaphex e16371b8a5 Merge input_config.c and input_driver.c 2017-08-31 02:25:04 +02:00
radius 3a3d9cd41e if swap override is not specified it should be false 2017-08-04 01:37:16 -05:00
radius 0a7968761f improve logging 2017-06-30 20:05:30 -05:00
twinaphex 1bf0175da4 Try to prevent string message leaking in tasks 2017-05-16 04:50:20 +02:00
twinaphex 126a5bf121 Use string_is_equal_fast/string_is_not_equal_fast 2017-05-16 04:00:37 +02:00
twinaphex 80d9d1f143 Rewrite task_queue 2017-05-14 20:43:48 +02:00
twinaphex 6dd3a84bc9 Cleanup 2017-05-13 23:41:13 +02:00
twinaphex 484fff5e28 Cleanups 2017-05-13 22:30:45 +02:00
twinaphex 2906bec7a8 Create input_driver_get_uint 2017-05-11 07:36:21 +02:00
twinaphex 36375cecf8 input_swap_override - Get rid of dependency on settings 2017-05-06 06:01:15 +02:00
twinaphex 75a5af26c6 Revert "(task_autodetect.c) Set input_swap_override later on"
This reverts commit 582573f324.
2017-05-06 05:42:11 +02:00
twinaphex 582573f324 (task_autodetect.c) Set input_swap_override later on 2017-05-06 05:32:46 +02:00
twinaphex 969403fadb Header include cleanups 2017-04-29 13:20:50 +02:00
twinaphex e6ab06a701 Move path variables 2017-04-29 00:39:29 +02:00
twinaphex 05e4ec733e Move uint variables 2017-04-28 21:03:04 +02:00
twinaphex ed53be7c81 Move all bool settings 2017-04-28 14:11:34 +02:00
twinaphex 0c6ba894fd task_autodetect.c - cleanups 2017-04-26 18:48:28 +02:00
twinaphex 3087ceb482 Don't go through all these slow wrapper functions 2017-04-25 20:47:21 +02:00
twinaphex f4e5f896a2 Move input.device_name_index to task_autodetect and move it
outside of settings struct
2017-04-25 16:57:44 +02:00