Commit Graph

315 Commits

Author SHA1 Message Date
orbea e1db3e7a6d C89_BUILD: Fix some clang compiler errors.
Fixes these two compile errors with C89_BUILD=1

configuration.c:2028:9: error: ISO C90 forbids mixing declarations and code [-Werror,-Wdeclaration-after-statement]
   bool has_application_data =
        ^
1 error generated.
make: *** [Makefile:164: obj-unix/configuration.o] Error 1

In file included from menu/widgets/menu_osk.c:42:
menu/widgets/menu_osk_utf8_pages.h:62:94: error: no newline at end of file [-Werror,-Wnewline-eof]
                          "ヤ","ユ","ヨ","ワ","ヲ","ァ","ィ","ゥ","ェ","ォ","⊕"};
                                                                                 ^
1 error generated.
make: *** [Makefile:163: obj-unix/menu/widgets/menu_osk.o] Error 1
2018-01-03 12:19:16 -08:00
twinaphex a6afddae04 current_input_data and current_input are no longer globals 2017-12-29 23:03:25 +01:00
gblues 6904101c44 Clean up trailing whitespace
== DETAILS

Really simple code cleanup, because my editor flags trailing whitespaces
and it's pretty annoying.
2017-12-12 00:24:18 -08:00
Brad Parker 224b581881 C89 buildfix 2017-11-28 11:43:32 -05:00
David Walters c733f96a16 listen for mouse buttons/wheel when binding input 2017-11-26 15:42:47 +00:00
twinaphex 9875bbbd7d Silence some Coverity warnings 2017-11-26 01:06:48 +01:00
Twinaphex d36d3e2c89
Update menu_dialog.c 2017-11-21 04:38:38 +01:00
Rob Loach 9e3d6adf6e
Fix coding standard 2017-11-20 18:47:27 -05:00
Rob Loach 25c116e192
Fix strdup() memory leak 2017-11-20 18:46:07 -05:00
Rob Loach dd6ec31f3d
Fix for pressing ENTER on cheats 2017-11-15 22:19:29 -05:00
twinaphex e9708be756 Prevent Coverity warning 2017-10-19 23:02:18 +02:00
Brad Parker 338723bc31 fix some null pointer accesses with empty strings 2017-10-15 00:39:55 -04:00
twinaphex 856fccd65c Update 2017-10-05 05:27:43 +02:00
twinaphex 489acabdf4 Update 2017-10-05 05:26:46 +02:00
twinaphex 9829019306 Update 2017-10-05 05:23:54 +02:00
twinaphex 032109512a Fix more Coverity errors 2017-10-04 08:37:21 +02:00
twinaphex 8238545bef Cleanups 2017-10-04 06:53:47 +02:00
twinaphex 8d850dc0bd CXX_BUILD fixes 2017-10-02 07:07:18 +02:00
twinaphex cc988cf559 Trying to prevent Coverity error 2017-10-01 18:28:07 +02:00
twinaphex 2b55e5858e Remove menu_entries_get_actiondata_at_offset 2017-10-01 17:25:41 +02:00
twinaphex df15a67c71 Remove menu_entries_get_last 2017-10-01 17:20:01 +02:00
twinaphex e376bd75c0 Fix crash with savestate thumbnails 2017-09-30 07:10:58 +02:00
twinaphex 1156d6cec5 Simplify conditionals 2017-09-30 06:18:38 +02:00
twinaphex 4fd00ac146 Be safer with this 2017-09-29 21:22:01 +02:00
Twinaphex 66de49c987 Fix memory leaks and crashes 2017-09-29 21:19:07 +02:00
twinaphex 01099d526c Fix the other leaks in menu_entry_get 2017-09-29 21:10:03 +02:00
twinaphex 3551ac825c Rewrite rich label allocation 2017-09-29 21:05:23 +02:00
twinaphex 4639b2547d Rewrite another function 2017-09-29 19:09:11 +02:00
twinaphex 1c477ca007 Rewrite menu_entry_get_sublabel 2017-09-29 18:52:15 +02:00
twinaphex efde859e17 Rewrite menu_entry_get_rich_label 2017-09-29 18:46:53 +02:00
twinaphex 9c90f97792 No longer use menu_entry_alloc 2017-09-29 18:37:04 +02:00
twinaphex 08f9e4aaf9 Refactor menu_entry 2017-09-29 18:22:11 +02:00
twinaphex 8bf741257c (XMB) Reduce stack usage 2017-09-29 16:47:30 +02:00
twinaphex 5379b12e7c FIx some new Coverity errors 2017-09-29 05:39:06 +02:00
twinaphex 6dcbf0eab8 (menu_list.c) Use malloc 2017-09-29 04:49:59 +02:00
twinaphex dfe6035ade Put menu_entry_t on heap inside xmb_draw_items 2017-09-28 07:26:43 +02:00
twinaphex f914a91944 Use menu_entry_get_type_new 2017-09-28 07:15:29 +02:00
twinaphex decea56c03 Rewrite menu_entry_get_path 2017-09-28 06:51:48 +02:00
twinaphex 7adf4ca854 Simplify menu_entry_get_spacing 2017-09-28 06:44:04 +02:00
twinaphex 76277a12b0 Rewrite menu_entry_get_label 2017-09-28 06:40:15 +02:00
twinaphex db7e1a4fdf Simplify menu_entry_get_sublabel 2017-09-28 06:37:48 +02:00
twinaphex b8e900cd32 Rewrite menu_entry_get_value 2017-09-28 06:32:49 +02:00
twinaphex c5255b1bff Simplify menu_entry_get_rich_label 2017-09-28 06:19:34 +02:00
twinaphex 2f10fd14d6 Create menu_entry_init/menu_entry_free 2017-09-28 06:02:14 +02:00
twinaphex 8b5f8d8c64 menu_displaylist_info - rewrite path 2017-09-28 03:06:54 +02:00
twinaphex 08ecfc74ec Rewrite info.label 2017-09-28 02:45:03 +02:00
twinaphex 72087d1749 Rewrite path_b and path_c 2017-09-28 02:30:31 +02:00
twinaphex 72f42b602f menu_displaylist_info - reduce stack usage - exts no longer
a fixed size path
2017-09-28 01:38:05 +02:00
twinaphex 155d6a23b9 Start using menu_displaylist_info_free 2017-09-10 22:57:26 +02:00
twinaphex 08e3bb2122 (MSVC) Buildfixes 2017-09-10 22:38:03 +02:00
twinaphex 36e0ff8268 Rearrange variables 2017-09-09 01:10:00 +02:00
twinaphex ce6c11c16b Reduce size of label 2017-09-09 00:23:24 +02:00
twinaphex ad579e5cc4 Revert "Cleanups"
This reverts commit 3eeae957f6.
2017-09-09 00:17:14 +02:00
twinaphex 3eeae957f6 Cleanups 2017-09-09 00:12:40 +02:00
twinaphex e16371b8a5 Merge input_config.c and input_driver.c 2017-08-31 02:25:04 +02:00
twinaphex 366c73f429 Fix 'Append Disk Image' 2017-08-17 19:07:38 +02:00
twinaphex 5909d72a09 Fix 'Scan File' 2017-08-17 18:53:55 +02:00
twinaphex 07dd7c8ccb Cleanups 2017-08-15 05:15:45 +02:00
twinaphex db24e4da42 Try to avoid countless string_is_equal function calls
being called multiple times per frame render - prebake
these decisions instead inside list_insert
2017-08-15 04:33:36 +02:00
twinaphex 7ea86f2b16 Get rid of logging 2017-08-04 21:08:42 +02:00
twinaphex 93eb7b349a Add mod/s3m/xm support to audio mixer in GUI 2017-08-04 21:08:02 +02:00
twinaphex 060753258a Combine input_driver.c and input_keyboard.c 2017-06-11 17:51:12 +02:00
twinaphex 68516cf74c (input_keyboard.c) cleanups 2017-06-11 17:35:48 +02:00
twinaphex 9438545bca Add music tab for non-ffmpeg enabled builds now; add 'Run'
and 'Add to mixer' options when selecting Ogg/WAV files
2017-05-27 23:56:10 +02:00
twinaphex 74f202bbda (Menu) Cleanups 2017-05-26 20:12:52 +02:00
twinaphex 59fb7700b8 Combine menu_driver.c and menu_display.c 2017-05-19 15:25:14 +02:00
twinaphex 2fb5e821cf Update Font Path menu option 2017-05-19 04:44:10 +02:00
twinaphex fa9fe88547 Fix filebrowser issues 2017-05-19 02:39:33 +02:00
twinaphex 236f5b3514 Fix selecting image with Menu Wallpaper 2017-05-19 01:50:15 +02:00
twinaphex 6d20fa96e0 Revert "Fix #4920"
This reverts commit f341f70705.
2017-05-19 01:37:45 +02:00
Jean-André Santoni f341f70705 Fix #4920 2017-05-19 00:38:20 +02:00
twinaphex 204f0183e1 Header cleanups 2017-05-17 05:06:52 +02:00
twinaphex 529349019d Combine menu_navigation_ctl and menu_driver_ctl 2017-05-17 04:57:43 +02:00
twinaphex ee8dc151a3 Combine menu_driver.c and menu_navigation.c 2017-05-17 03:00:32 +02:00
twinaphex 8eca08c6ac Start using string_is_equal_fast/string_is_not_equal_fast macros
instead of straight memcmp
2017-05-16 03:20:59 +02:00
twinaphex 15142be8ee Cleanups 2017-05-15 20:30:37 +02:00
twinaphex 1fef134f04 Create menu_driver_navigation_set 2017-05-15 07:56:22 +02:00
twinaphex 0185f71bab Cleanups 2017-05-13 23:47:25 +02:00
twinaphex 2906bec7a8 Create input_driver_get_uint 2017-05-11 07:36:21 +02:00
Andre Leiradella 844d1475e6 Reverted cheevos changes in preparation for conversion to task; fixed 4884 2017-05-07 19:06:03 +01:00
twinaphex 33f2fe8029 Move cheevos.c to tasks/task_cheevos.c and add TODO/FIXME note 2017-05-06 05:50:46 +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 ae1c26cbc4 Restructure settings struct 2017-04-28 00:00:43 +02:00
twinaphex e179108080 Cleanups 2017-04-26 00:24:59 +02:00
Twinaphex 840034d4a0 remove unused variables 2017-04-25 18:54:41 +02:00
twinaphex 8d0e3d7777 Wrap settings->input.binds 2017-04-25 18:27:18 +02:00
twinaphex d66aff8fbd Start wrapping settings->input.binds 2017-04-25 18:12:13 +02:00
twinaphex 7ea0528c6b Turn MENU_NAVIGATION_CTL_{SET|GET}_SELECTION into separate
functions
2017-04-23 14:31:49 +02:00
twinaphex 6ebd4e139e Rewrite more string_is_equal call invocations as memcmp 2017-04-22 08:51:16 +02:00
Jean-André Santoni e587264b3d (OSK) Ascii symbol page 2017-03-05 11:54:08 +01:00
Twinaphex b7b3b2cb5f Try to prevent truckload of warnings on iOS 2017-02-26 10:33:03 +01:00
Andre Leiradella 0c8ee93e3e Moved cheevos files to their own folder in preparation for the changes to support leaderboards 2017-02-03 10:03:57 +00:00
twinaphex 07cd36e27c Create Filebrowser settings 2017-02-02 04:00:55 +01:00
Brad Parker 1a7263196e fix OSK backspace 2017-01-31 12:45:57 -05:00
Brad Parker 4c06f039af forgot to add utf8 pages header 2017-01-31 12:33:54 -05:00
Brad Parker d8fb3d937c UTF8 fixes for MSVC, don't include any files with a UTF8 BOM if HAVE_LANGEXTRA isn't defined 2017-01-31 12:20:16 -05:00
twinaphex ccf1f35f39 Fix rule for MSVC 2017-01-31 03:40:31 +01:00
twinaphex 78b31955aa Put this around BOM 2017-01-31 03:37:53 +01:00
twinaphex c2c2521b12 Add HAVE_LANGEXTRA to menu_osk.c 2017-01-29 20:01:26 +01:00
twinaphex 96c8ca5a09 Header update #1 2017-01-22 13:40:32 +01:00
twinaphex 0b1a204949 Roll this back 2017-01-16 22:32:39 +01:00
Brad Parker fc5afa3122 add UTF8 BOM to fix MSVC build 2017-01-16 12:50:08 -05:00
twinaphex 0968bcc173 (menu_input_bind_dialog) Prevent warning 2017-01-16 09:57:21 +01:00
twinaphex ef974086aa Split up menu OSK code to separate file - menu/widgets/menu_osk.c 2017-01-12 11:31:24 +01:00
twinaphex 03ba5b21df (menu_input_bind_dialog.c) Hackier but dispenses with the 1-second
delay which was annoying
2017-01-11 10:37:37 +01:00
twinaphex 365564b0ed When we bind a single key, introduce a 1-second delay to
get around input latching issue that can occur when pressing
OK/Cancel buttons for binding - which would immediately
leave the screen or enter the input binding again (workaround
for now until we fix these latching issues in the menu)
2017-01-11 10:21:34 +01:00
twinaphex d48141041d Pass joypad_info to input_state function callback - less
settings pointer grabbing
2017-01-10 17:40:21 +01:00
twinaphex 9d9a5e71ab (XMB) Set fullpath dir for each node entry 2017-01-07 18:32:55 +01:00
twinaphex 689eb71795 Rename FILEBROWSER_SELECT_IMAGE to FILEBROWSER_SELECT_FILE 2017-01-07 18:10:17 +01:00
twinaphex 61168a442f (Filebrowser) Fix 'Menu Wallpaper' setting 2017-01-07 09:53:39 +01:00
twinaphex f1acb16401 Add filebrowser_get_type and filebrowser_clear_type 2017-01-07 09:40:07 +01:00
twinaphex 3b4c50b19e filebrowser_clear_type - get rid of it 2017-01-01 06:19:07 +01:00
twinaphex bed1db78aa (Directory settings) We go back one level to Directory Settings 2017-01-01 01:31:10 +01:00
twinaphex 74e224abf0 (menu_input_bind_dialog.c) Use timer code 2016-12-23 19:17:38 +01:00
twinaphex ab2ee3c690 Simplify menu_dialog.c 2016-12-23 16:32:21 +01:00
twinaphex f6ec61b15c Create rarch_timer functions and have menu_dialog.c use them 2016-12-23 15:36:47 +01:00
twinaphex c3a9ade051 (menu_filebrowser.c) Cleanup 2016-12-16 13:56:53 +01:00
twinaphex adcc89012c Cleanups 2016-12-16 13:55:33 +01:00
twinaphex c9482e07d6 Change filebrowser_parse 2016-12-16 13:44:09 +01:00
twinaphex 454d3eba08 (menu_filebrowser.c) Cleanups 2016-12-16 12:15:00 +01:00
twinaphex 879049da70 (menu_filebrowser.c) Remove unneeded header includes 2016-12-16 09:18:39 +01:00
twinaphex f186583728 Move filebrowser-dependent code to menu_filebrowser.c 2016-12-16 09:07:03 +01:00
twinaphex 17a66067b0 Add menu_filebrowser.c 2016-12-16 08:59:17 +01:00
twinaphex d3c22cb0e4 Move input/input_autodetect.c to tasks/task_autodetect.c 2016-12-01 20:38:20 +01:00
twinaphex bd53c33069 Move input_get_auto_bind to input_config.c 2016-12-01 03:43:51 +01:00
twinaphex 0a046eaaf7 Turn menu_dialog_current_id into static variable again 2016-11-06 11:55:07 +01:00
twinaphex f190909aae Fix cheevos messages 2016-11-05 21:55:32 +01:00
twinaphex 49479937d4 Reintroduce setting_get_type 2016-10-31 15:01:40 +01:00
Brad Parker d1d5584d18 update copyright 2016-10-27 11:47:10 -04:00
twinaphex c1b59df7ae Reduce size of char variables 2016-10-27 09:32:07 +02:00
twinaphex eb416ce478 Prevent null representation entries 2016-10-27 02:23:21 +02:00
twinaphex 7a09ffe6bc Values start changing now upon language switch 2016-10-26 09:03:56 +02:00
twinaphex 8cc5b09428 Get rid of slow wrapper function input_driver_state 2016-10-23 04:38:08 +02:00
twinaphex 984c0e8141 Get rid of more small menu wrapper functions 2016-10-23 03:25:27 +02:00
twinaphex 594b36488b Get rid of more small and slow menu wrapper functions 2016-10-23 03:13:49 +02:00
twinaphex 2b4d87a983 Remove setting_get_type 2016-10-23 02:28:22 +02:00
twinaphex 0a295998a2 Hook up sublabels 2016-10-20 16:10:20 +02:00
twinaphex c9c7aea184 Create sublabel callbacks 2016-10-20 15:57:35 +02:00
twinaphex fa8e59c1ff Create menu_entry_get_sublabel 2016-10-20 15:49:00 +02:00
twinaphex 5f552253c4 Add sublabel to menu_entry_t 2016-10-20 15:47:02 +02:00
twinaphex 6a4d375e1d menu_dialog_push - prevent implicit memset 2016-10-19 04:16:25 +02:00
twinaphex ab3d3b1e3a menu_dialog.c - prevent implicit memset 2016-10-16 01:03:17 +02:00
twinaphex 70a7835b94 menu_entry.c - prevent implicit memsets 2016-10-16 00:53:51 +02:00
twinaphex 1388220866 (tasks) Don't do implicit memsets in crucial performance-oriented code 2016-10-08 18:31:43 +02:00
Jean-André Santoni def77b5d34 Wi-Fi menu, pass over the entry index to know which network we're trying to connect 2016-09-23 14:45:07 +02:00
twinaphex cea2ac6766 (menu_list) Use string_is_equal 2016-09-19 02:12:25 +02:00
twinaphex a55feae619 CXX_BUILD fixes 2016-09-16 13:38:06 +02:00
twinaphex 9726de615b Fix stray icon 2016-09-16 13:03:26 +02:00
twinaphex 8de734b702 Header include cleanups 2016-09-16 01:27:59 +02:00
twinaphex 06cc175311 Cleanups 2016-09-15 21:01:11 +02:00
twinaphex 3ed0aa5eb6 Cleanups 2016-09-15 20:55:20 +02:00
twinaphex e602f534c7 menu_input_bind_dialog.c - more refactors 2016-09-15 20:52:08 +02:00
twinaphex a9b8114109 Reafctor input_bind_dialog code 2016-09-15 20:45:00 +02:00
twinaphex a21674881c Add menu_input_bind_dialog 2016-09-15 20:35:39 +02:00
twinaphex 68f695b196 Buildfix 2016-09-15 19:46:23 +02:00
twinaphex 8fd5c5817a Create menu_input_dialog 2016-09-15 19:23:32 +02:00
twinaphex d9e631de69 Create menu_input_dialog_start_search 2016-09-15 17:18:24 +02:00
twinaphex 84f81acba5 Header include cleanups 2016-09-15 16:36:36 +02:00
twinaphex f648ea8602 Cleanups 2016-09-15 16:07:20 +02:00
twinaphex 233925bea6 Rename widgets/menu_popup to widgets/menu_dialog 2016-09-15 15:57:25 +02:00
twinaphex 93eff04e54 Move code to widgets/menu_list.c 2016-09-15 15:51:53 +02:00
twinaphex 02e01e0b0a Create menu/widgets/menu_entry 2016-09-15 00:20:43 +02:00
twinaphex 892c0a6f52 Create menu/widgets/menu_list 2016-09-15 00:10:37 +02:00
twinaphex 056cc8ece8 Move menu_popu.c to menu/widgets 2016-09-11 21:03:31 +02:00