Compare commits

...
4650 Commits
Author SHA1 Message Date
twinaphex 218d6f5262 Bump up to 1.3.6 2016-07-17 01:05:18 +02:00
twinaphex efd16e8b72 Correctly place '..' more entry for RGUI 2016-07-17 01:00:57 +02:00
twinaphex 0b474b3d26 Dehardcore 'more' string 2016-07-17 00:52:56 +02:00
twinaphex 73fa327305 Rename Parent Directory label 2016-07-17 00:42:36 +02:00
twinaphex 184e99defa Include back 'parent directory' 2016-07-17 00:41:13 +02:00
twinaphex a8de87576e (windows) Fixes drag and drop - we have to call this
function directly since the UI companion driver interface at
this point has not yet been initialized
2016-07-16 23:49:44 +02:00
twinaphex c6e6e300b9 CLeanup 2016-07-16 23:16:30 +02:00
twinaphex 8b4dd98d4b (drag and drop) Try to make some code more understandable 2016-07-16 23:13:24 +02:00
twinaphex 8b29ad1fee Add early return in case this is NULL 2016-07-16 23:00:35 +02:00
twinaphex f308997465 DragFinish releases memory allocations - so always call it at the end 2016-07-16 22:39:21 +02:00
twinaphex 6ac8b64e3d Put this around a HAVE_CG ifdef 2016-07-16 22:32:33 +02:00
twinaphex 8983126c23 Should finally remove Cg from unwanted targets 2016-07-16 22:31:55 +02:00
twinaphex 3f3486336b (MSVC) Updated solution again 2016-07-16 22:22:57 +02:00
twinaphex 5a6e3f7968 Remove some more CG parts 2016-07-16 22:21:02 +02:00
twinaphex 7a17e9ccc2 (MSVC 2010) Add non-Cg targets - Release and Debug 2016-07-16 22:03:21 +02:00
Twinaphex a55199afb9 Unused variable 2016-07-16 19:58:22 +02:00
twinaphex e1e2e83c0f Set default mouse enable 2016-07-16 19:57:16 +02:00
twinaphex 092ca463d2 Only use extern C for C++ builds 2016-07-16 19:43:07 +02:00
twinaphex 10f3a63cec Fix more entries 2016-07-16 19:09:47 +02:00
Alcaro a5098f19a1 Good point. Close #3224 again. 2016-07-16 18:46:38 +02:00
Alcaro 1e1f2cfee0 @yurivict: It's supposed to come from RetroArch itself, we refactored the signals recently and didn't really test it on the more unusual platforms. Close #3224. 2016-07-16 18:36:30 +02:00
twinaphex eb77f99e1e (Windows) Finally properly 'swallows' event when doubleclicking on titlebar 2016-07-16 18:09:21 +02:00
twinaphex ce6f3f955c Doubleclick on titlebar should no longer trigger button press
in RA window
2016-07-16 17:56:07 +02:00
twinaphex 616b9f7471 (Win32) Test 2016-07-16 17:44:21 +02:00
twinaphex 9fe2ae4a0a Don't show 'Filter by supported extensions' for anything other than
'Load Content'-type file browser instances
2016-07-16 17:17:58 +02:00
twinaphex 4044185eaf Remove some more unneeded code here 2016-07-16 17:13:52 +02:00
twinaphex 93eaa54430 Create menu_displaylist_parse_cores - should not be affected
by 'filter by supported extensions' option
2016-07-16 17:11:00 +02:00
Alcaro 0fd53504ee Maybe this fixes that weirdo bug. 2016-07-16 17:01:56 +02:00
Alcaro d7dbc45c6b That's a weird way to check versions. Won't even work for 7.0. 2016-07-16 16:51:28 +02:00
twinaphex a55fe0eb6b Don't show Achievement settings if HAVE_CHEEVOS not defined 2016-07-16 16:35:51 +02:00
twinaphex c582a9776a (Menu) Fix crash on Windows when entering menu settings 2016-07-16 16:33:47 +02:00
Twinaphex a9ea1372d9 Don't enable mouse by default until it no longer responds to titlebar manipulation 2016-07-16 16:23:54 +02:00
Twinaphex 1586214876 (OSX) Fix text title inside window 2016-07-16 15:01:06 +02:00
twinaphex 53a0d6a5b7 Add separate iOS10 solution files 2016-07-15 22:24:15 +02:00
Twinaphex dc9fc004ae Merge pull request #3221 from Themaister/master
Vulkan: Update SPIRV-Cross.
2016-07-15 22:17:53 +02:00
Hans-Kristian Arntzen 1e9e1fc885 Vulkan: Update SPIRV-Cross.
Fixes reflection issues which have been fixed in recent spirv-cross.
2016-07-15 22:12:57 +02:00
twinaphex 398f0c8e17 Shouldn't push this for horizontal lists 2016-07-15 22:06:54 +02:00
twinaphex 0d2962afef Add HAVE_LIBRETRODB ifdefs around it 2016-07-15 21:51:18 +02:00
twinaphex a3c2cbda55 Change 'No items' label in playlists tab to 'No playlists 2016-07-15 21:50:01 +02:00
twinaphex aad8e3581c (MaterialUI) Add Scan Directory setting to playlist tab 2016-07-15 21:47:49 +02:00
twinaphex 6d277de62b Simplifications 2016-07-15 21:45:07 +02:00
twinaphex eab8890ecf Show message again for undid load state 2016-07-15 20:48:07 +02:00
Twinaphex f816829d99 Merge pull request #3220 from Themaister/master
Vulkan: Use manual memory management for cached/incoherent devices.
2016-07-15 19:18:41 +02:00
radius 33315d4b66 bump up version everywhere 2016-07-15 12:09:50 -05:00
Hans-Kristian Arntzen 8569028189 Vulkan: Use manual memory management for cached/incoherent devices. 2016-07-15 16:12:30 +00:00
Alcaro 6239635eba Don't block make clean if we need to reconfigure 2016-07-15 15:42:26 +02:00
Alcaro 979c6d003e C90 sets C89 and should not be used 2016-07-15 15:40:52 +02:00
Alcaro 6af35e8739 Expand those tabs 2016-07-15 15:40:06 +02:00
twinaphex 66e54f86bb Remove Menu File Browser settings - now a part of the file browser
itself
2016-07-15 02:16:05 +02:00
twinaphex 5d678a626f (Privacy screen)Only show 'no settings available' when one of the two entries
fails
2016-07-15 00:22:18 +02:00
twinaphex d38e8544b8 Localize strings 2016-07-15 00:11:16 +02:00
twinaphex 44f4ccc054 Localize some strings 2016-07-15 00:00:57 +02:00
Twinaphex 4478ff62c0 Merge pull request #3218 from Themaister/master
Vulkan: Don't query layout if we have optimal tiling.
2016-07-14 23:34:46 +02:00
twinaphex 67c0bc25f4 Hide away Retropad remote core for now 2016-07-14 23:29:15 +02:00
Hans-Kristian Arntzen f5bddd45e8 Vulkan: Don't query layout if we have optimal tiling. 2016-07-14 23:15:39 +02:00
twinaphex 0cb2bbd420 Change XMB Theme Wallpaper string to 'Plain' 2016-07-14 22:56:59 +02:00
twinaphex 16b6ff7f9b Set default icon theme to proper one here too 2016-07-14 22:53:11 +02:00
twinaphex 4df71207ff reset filebrowser to avoid stray entries being left in when we
go from one filebrowser entry to the next
2016-07-14 22:36:18 +02:00
twinaphex 194eaf3053 Use menu_displaylist_reset_filebrowser 2016-07-14 22:18:36 +02:00
twinaphex 010fe1bb1b Add Filter by Supported Extension setting entry to file browser 2016-07-14 22:10:56 +02:00
twinaphex fabf68e441 Set XMB icon theme by default to Monochrome, and fix hardcoding 2016-07-14 21:24:33 +02:00
twinaphex 1035029a89 if this returns -1, add an empty entry anyway 2016-07-14 21:18:40 +02:00
twinaphex 5c55c098f6 Privacy Settings - should push an empty entry in case nothing
was found
2016-07-14 21:14:59 +02:00
twinaphex d6ac759e97 Should add an 'go immediately to core updater' if no cores were found 2016-07-14 20:48:03 +02:00
twinaphex e8ff596177 (XMB) xmb_draw_bg - color theme gradient themes can now be selected
when shader pipeline is turned off, and will colorize the wallpaper
2016-07-14 20:28:47 +02:00
twinaphex 745bc1eb0d Dehardcode shader pipeline enums 2016-07-14 18:40:57 +02:00
twinaphex 664f90b023 Add 'Wallpaper' color theme for XMB too 2016-07-14 18:29:05 +02:00
twinaphex 401eb7bc7a One more dehardcode 2016-07-14 18:20:36 +02:00
twinaphex 14797ae18e Dehardcode enums for XMB themes 2016-07-14 18:19:59 +02:00
twinaphex 68a5cdb984 Update glsm 2016-07-14 17:29:50 +02:00
twinaphex 922eddcfb5 (MSVC) Build fix 2016-07-14 02:40:51 +02:00
twinaphex ce36860be2 DISPLAYLIST_CORE_CONTENT_DIRS_SUBDIR - Fix potential crash here 2016-07-13 04:38:29 +02:00
twinaphex 164b28a4fa Fix MENU_ENUM_LABEL_CB_CORE_CONTENT_DOWNLOADS - we need to take
only the first element and use this as the initial base path
2016-07-13 04:25:09 +02:00
twinaphex ad5db2f8cf Revert "Should fix subdir issues"
This reverts commit a9d801a5fc.
2016-07-13 02:00:16 +02:00
twinaphex a9d801a5fc Should fix subdir issues 2016-07-13 01:54:43 +02:00
twinaphex 22ad4e98b6 Subdirs in URL listings now get correctly prepended to the top
- still some minuscule display bug with XMB, but not with MaterialUI/RGUI
2016-07-13 01:23:59 +02:00
twinaphex ea175fd26f Rename menu_entries_add_enum to menu_entries_append_enum 2016-07-13 01:17:09 +02:00
twinaphex 6d870129c6 Rename menu_entries_add to menu_entries_append 2016-07-13 01:13:20 +02:00
twinaphex b03e3791b5 Merge print_buf_lines and print_buf_lines_extended into one 2016-07-13 01:03:06 +02:00
twinaphex 41651fa772 Don't suppress all download messages
:W
:Q!
;#
2016-07-12 23:33:51 +02:00
twinaphex d4b3fa30df Fix 'Cancel' for FILE_TYPE_DOWNLOAD_CORE 2016-07-12 23:24:21 +02:00
Twinaphex 91771f8b7c Merge pull request #3213 from lakkatv/master
(Menu) Prevent adding a NO_ITEM entry in the horizontal menu
2016-07-12 23:20:22 +02:00
Jean-André Santoni 16df630035 (Menu) Prevent adding a NO_ITEM entry in the horizontal menu 2016-07-12 23:19:19 +02:00
twinaphex 4c9245b7d9 (record_ffmpeg.c) Prevent 'explicit NULL dereferenced') 2016-07-12 23:17:43 +02:00
twinaphex 9bf63a7809 Prevent 'dereference after NULL check' 2016-07-12 23:14:51 +02:00
twinaphex d4051fcc27 Fix 'logically dead code' 2016-07-12 23:10:25 +02:00
twinaphex 99d450673e Try to silence coverity warnings by doing retro_assert checks
a different way
2016-07-12 23:08:00 +02:00
twinaphex d0818e6e62 Not sure if/when we will be needing this 'ancient' codepath 2016-07-12 21:10:49 +02:00
twinaphex aa9dcc2a8e (dynamic.c) Prevent null pointer dereferences 2016-07-12 21:03:24 +02:00
twinaphex e3c4388f76 Missing break in switch case 2016-07-12 21:00:06 +02:00
twinaphex 2d6f0f194b (MaterialUI) prevent unused value warnings - assinging value from 'Z' to 'header_bg_color' but that stored value is overwritten before it can be used 2016-07-12 20:57:15 +02:00
twinaphex 36a8c96e29 (menu_cbs_ok.c) Constant variable guards dead code 2016-07-12 20:54:18 +02:00
twinaphex 296c869b4c Prevent null pointer dereference 2016-07-12 20:51:45 +02:00
twinaphex 9ecf04a999 (cheevos.c) Fix 'value can never be lesser than 0' warning 2016-07-12 20:50:22 +02:00
twinaphex f5cedc6129 FIx Cancel action for subdir 2016-07-12 19:37:15 +02:00
twinaphex bc71585714 Fix title with subdir URL 2016-07-12 18:43:00 +02:00
twinaphex d903ad2b97 First working implementation of subdirs for URL lists 2016-07-12 18:29:31 +02:00
twinaphex 490af3cb3e Cleanup 2016-07-12 17:23:08 +02:00
Arzed Five a13b07551c (glui) Make the bottom icon inactive color be customizeable (currently
it's the same color as the scrollbar)
2016-07-12 17:22:45 +02:00
twinaphex cc40d68e8b Don't suppress messages 2016-07-12 05:22:24 +02:00
twinaphex f91a44cbc7 Update vulkan_symbol_wrapper.c 2016-07-11 23:40:24 +02:00
twinaphex d4fb4ba87d (libretro-test-vulkan-async-compute) Change header incldue 2016-07-11 23:38:56 +02:00
twinaphex 40e2103640 Try to fetch .index-dirs for every download entry, WIP 2016-07-11 20:38:57 +02:00
twinaphex 16727bc85a Cleanups - dehardcode some strings 2016-07-11 19:40:30 +02:00
twinaphex ca527de877 Start preparing code for fetching index dirs too 2016-07-11 19:39:26 +02:00
twinaphex 3d52f5e19c Pass userdata to cb_net_generic 2016-07-11 19:33:07 +02:00
twinaphex 60d3b22bb6 Create Menu Header Opacity setting 2016-07-11 17:41:06 +02:00
twinaphex b78fcb3e21 Change opacity of bg_footer_real 2016-07-11 17:29:06 +02:00
twinaphex b4dbc16024 Add Menu Footer Opacity setting 2016-07-11 17:27:36 +02:00
twinaphex 0a216caf66 Start preparing code for being able to change footer opacity 2016-07-11 17:17:16 +02:00
twinaphex 8fc3d36a73 Cleanups 2016-07-11 16:59:21 +02:00
twinaphex 72ad824a15 Cleanup some comments 2016-07-11 16:50:15 +02:00
twinaphex bf68611929 Opacity change to green theme 2016-07-11 16:46:39 +02:00
twinaphex 99b1ffd406 Cleanup 2016-07-11 16:43:06 +02:00
twinaphex 321e62c867 (MaterialUI) Cleanup 2016-07-11 16:37:31 +02:00
twinaphex 3f29e731e2 Set HAVE_PLAIN_DRM to no by default 2016-07-11 15:57:52 +02:00
twinaphex defe51ff69 Remove call to PENDING_QUIT 2016-07-11 15:29:11 +02:00
twinaphex f596d1f99d Get rid of duplicate entry 2016-07-11 15:04:54 +02:00
Twinaphex daee8afa19 Merge pull request #3209 from lakkatv/master
(Menu) Don't push the quick menu on playlists
2016-07-11 15:03:12 +02:00
Jean-André Santoni 94a67fe28b (Menu) Don't push the quick menu on playlists 2016-07-11 15:00:30 +02:00
twinaphex 3db30a9440 (cheevos.c) Cleanups 2016-07-11 14:56:23 +02:00
twinaphex ecb69ad938 (cheevos.c) Cosmetic cleanups 2016-07-11 14:51:47 +02:00
twinaphex 050e29140b Should fix these issues 2016-07-11 14:44:12 +02:00
twinaphex db43a86b01 (cheevos.c) Cleanups 2016-07-11 14:43:05 +02:00
Arzed Five ebeba581da Highlight the switch textures when they're on with the
active_tab_marker_color
2016-07-11 13:59:38 +02:00
Arzed Five 33c5fa6ade White and black text are now pure white/black with varying degrees of
opacity/alpha, as per the material design spec.
Corrected some font color bugs.
No longer using the 'active' icons variants.
2016-07-11 13:59:33 +02:00
twinaphex 34fd48c961 Refactor runloop_iterate_menu 2016-07-11 02:47:46 +02:00
twinaphex 38005a4b0a Create runloop_iterate_menu 2016-07-11 02:46:16 +02:00
twinaphex 486ac44b71 Better way of setting the active tab icons 2016-07-11 01:45:16 +02:00
twinaphex 5be5b98d26 Change opacity of color_nv_accent 2016-07-11 01:36:24 +02:00
twinaphex ed14b37899 (GLUI/MaterialUI) Adjust color of tab icons based on theme 2016-07-11 01:30:45 +02:00
twinaphex 70b8af4a6c Prevent some potentially costly operations being always performed
even when not needed
2016-07-11 01:01:38 +02:00
twinaphex 4381c606d8 (MaterialUI) Backport r5 nvidia shield theme 2016-07-11 00:55:07 +02:00
twinaphex 2285797ef8 Move Dark Blue below Blue Grey 2016-07-11 00:48:23 +02:00
twinaphex 9c91885301 Set default MaterialUI theme to Blue 2016-07-11 00:47:25 +02:00
twinaphex 3966979043 (MaterialUI) Yellow - set header text color to black 2016-07-10 21:40:42 +02:00
twinaphex 9a54657a77 (MaterialUI) Update 2016-07-10 21:31:19 +02:00
twinaphex c451b94bd9 (MaterialUI) Create Blue Grey theme 2016-07-10 21:23:57 +02:00
Twinaphex 0fef69a678 Merge pull request #3207 from yoshisuga/ios10_cores_in_app_bundle
iOS 10 support
2016-07-10 21:08:36 +02:00
twinaphex 346e3af66c Cleanup warnings 2016-07-10 21:06:29 +02:00
Yoshi Sugawara d0bced56c2 Merge branch 'master' into ios10_cores_in_app_bundle 2016-07-10 09:03:17 -10:00
Yoshi Sugawara 9173397f08 iOS 10 support: cores need to be in the modules directory of app bundle, added script to code sign cores in modules directory 2016-07-10 09:02:40 -10:00
twinaphex 840ff59dd0 Remove SL_FLAG_ALLOW_EMPTY_LIST 2016-07-10 19:35:01 +02:00
twinaphex 66df62938c Prevent some unused variable warnings 2016-07-10 19:29:52 +02:00
twinaphex 7d518bd4a8 Add menu_wallpaper_opacity 2016-07-10 17:13:19 +02:00
twinaphex 37aee162c9 Backport/add MaterialUI color themes by rz5 2016-07-10 17:06:43 +02:00
twinaphex de21d31352 Update 2016-07-10 16:11:03 +02:00
twinaphex acc0a6261d Move enum to menu_display.h 2016-07-10 16:08:38 +02:00
twinaphex ec7db6b4b6 (MaterialUI) Use enum 2016-07-10 16:07:22 +02:00
twinaphex c9f2ad1b5e (Achievements) Push empty entry if no achievements found 2016-07-10 15:28:54 +02:00
twinaphex db74b7cbbc (cheevos.c) Cleanups 2016-07-10 15:24:57 +02:00
twinaphex 9f4c08caee Cleanups 2016-07-10 15:20:21 +02:00
twinaphex c37e610f10 Cleanups 2016-07-10 15:04:01 +02:00
twinaphex 167c83b6e6 Dehardcode some strings 2016-07-10 14:59:59 +02:00
twinaphex fbd3b4898f Use enums for hotkey binds list 2016-07-10 14:49:41 +02:00
twinaphex 34c6b1f306 Dehardcode strings 2016-07-10 14:35:27 +02:00
twinaphex 71d25c779a Fix left/right presses 2016-07-10 13:51:40 +02:00
twinaphex eb37e95cca (menu_cbs_get_value.c) Get rid of label_hash 2016-07-10 13:47:19 +02:00
twinaphex c53bb5c7be Remove all these labels 2016-07-10 13:44:44 +02:00
twinaphex 730f02c7e9 Get rid of hash labels 2016-07-10 13:40:08 +02:00
twinaphex ad36b8ba76 Revert "menu_cbs_get_value - get rid of hashes"
This reverts commit 9d55e3dc84.
2016-07-10 04:08:11 +02:00
twinaphex 9d55e3dc84 menu_cbs_get_value - get rid of hashes 2016-07-10 04:02:13 +02:00
twinaphex 7bae0a3170 Cleanup 2016-07-10 03:52:20 +02:00
twinaphex c938f86235 Get rid of one of the last remaining hash dependencies in menu_displaylist.c 2016-07-10 03:08:18 +02:00
twinaphex 4e347d96b8 reset filebrowser settings when selecting 'Select From Collection' 2016-07-10 02:47:13 +02:00
twinaphex f95b42011f Cleanups 2016-07-10 02:33:44 +02:00
twinaphex 91a946e447 Generic action_ok_display_list - cleanups 2016-07-10 02:30:07 +02:00
twinaphex a922a14191 Cleanups 2016-07-10 02:26:20 +02:00
twinaphex 4237590bfc Cleanups 2016-07-10 02:21:26 +02:00
twinaphex 44800c1205 Cleanups 2016-07-10 00:46:47 +02:00
twinaphex 976d52e7c9 Cleanups 2016-07-10 00:45:12 +02:00
Alcaro 2dc4f87995 Fix build fail derp 2016-07-10 00:43:52 +02:00
twinaphex b9f0cb1116 Cleanups 2016-07-10 00:39:25 +02:00
twinaphex 19c93cb58e Cleanups 2016-07-10 00:38:14 +02:00
twinaphex 9d10c3ff16 Fix Overlays setting 2016-07-10 00:32:19 +02:00
twinaphex b211f8b76a Fix Database Manager 2016-07-10 00:27:52 +02:00
Twinaphex 20d7987d27 Cleanup unused variables 2016-07-10 00:08:54 +02:00
twinaphex 97fb56b334 Cleanups 2016-07-09 23:30:34 +02:00
twinaphex 06bf29ba4c Create menu_input_mouse_check_vector_inside_hitbox 2016-07-09 23:23:23 +02:00
twinaphex 0ba2bac778 Fix another bug 2016-07-09 22:15:24 +02:00
twinaphex 89db0793b4 Fix action_ok_playlist_entry_collection 2016-07-09 22:09:50 +02:00
twinaphex 519e4e038a Update core_info_find 2016-07-09 21:51:16 +02:00
Alcaro 158e4614dd Fill in this thing. 2016-07-09 20:39:38 +02:00
twinaphex 0bc4248084 Simplify this code 2016-07-09 18:12:35 +02:00
twinaphex 1fc3f2b057 Add parameter to generic_action_ok_displaylist_push 2016-07-09 18:06:50 +02:00
twinaphex 093e05c411 Stub out 'scan' case for some content files for now 2016-07-09 17:28:33 +02:00
twinaphex 01541d3108 Fix menu wallpaper setting 2016-07-09 17:23:34 +02:00
twinaphex 5e665045e4 hash_label only used for one instance now 2016-07-09 17:17:55 +02:00
twinaphex 97dfcbc4b4 Create menu_driver_ident 2016-07-09 16:45:36 +02:00
twinaphex 9cdfad3fd4 Refactor menu_driver_ctl 2016-07-09 16:42:31 +02:00
twinaphex 26f5970ffb Correct menu_display_shader_pipeline_active 2016-07-09 16:37:51 +02:00
twinaphex 5be5409431 - Create menu_display_shader_pipeline_active ; don't make menu wallpaper
opacity active when shader pipeline is activated in xMB
- reduce dependency on hash_label
2016-07-09 16:33:55 +02:00
twinaphex f8d844e150 Make sure thumbnail is always drawn with full opacity 2016-07-09 15:21:57 +02:00
twinaphex 2fce2f4045 Add menu wallpaper opacity setting 2016-07-09 15:13:06 +02:00
twinaphex f94a8743a1 (MaterialUI) Allow for more themes later on 2016-07-09 13:57:19 +02:00
twinaphex 7d73e17b6f (MaterialUI) Make grey_bg more translucent for dark theme 2016-07-09 13:56:16 +02:00
twinaphex 6c2856926c Don't need hash_label for wallpaper instance anymore 2016-07-09 13:54:07 +02:00
twinaphex df5d46594b Pass type to 'parse_generic' 2016-07-09 13:52:46 +02:00
twinaphex a8d4d3cc35 Remove unused hash_label 2016-07-09 13:51:57 +02:00
twinaphex c8415e9194 Horizontal Playlists tab now shows playlist names without '.lpl'
extension
2016-07-09 13:49:31 +02:00
twinaphex 180c0c87c1 Add MaterialUI menu color theme setting 2016-07-09 13:17:29 +02:00
twinaphex e0504bfc62 Reorganize xmb/MaterialUI settings 2016-07-09 13:05:58 +02:00
twinaphex 968dcf4d39 Rename settings 2016-07-09 12:59:56 +02:00
twinaphex 2965d89707 Rename MENU_ENUM_LABEL_XMB_GRADIENT to 'Menu Color Theme' 2016-07-09 12:57:55 +02:00
twinaphex 0d1f92bf16 (MaterialUI) Cleanups 2016-07-09 12:55:46 +02:00
twinaphex 499c531d08 Cleanups 2016-07-09 12:32:47 +02:00
twinaphex d203ec2244 (GLUI/MaterialUI) Fix horizontal playlist 2016-07-09 12:26:39 +02:00
twinaphex d0dd77ae42 Split up horizontal playlists code 2016-07-09 12:20:22 +02:00
twinaphex b580599710 (X11) Fix 'quit' button not working 2016-07-09 12:09:39 +02:00
twinaphex fffd104c0d Can now scroll left/right on playlists tab 2016-07-09 02:22:25 +02:00
Arzed Five 1b28ff59ba If a core was loaded, GLUI would get a white color. This fixes it. 2016-07-09 01:39:02 +02:00
Arzed Five dfeb46f0f2 Make the footer be the same color as the main background color. Add some
comments.
2016-07-09 01:38:41 +02:00
Arzed Five b57a203557 Preliminary dark theme. De-harcoded some colors, refactored some names
to be clearer to me,
created a new color.
2016-07-09 01:37:29 +02:00
twinaphex 2dac910964 Add DISPLAYLIST_FILE_BROWSER_SELECT_COLLECTION 2016-07-08 23:20:48 +02:00
twinaphex 6cb11da46b Move variables around 2016-07-08 23:16:03 +02:00
twinaphex 0b3f45a58a Refactor 'Load Core' code to no longer need hash 2016-07-08 23:14:22 +02:00
twinaphex 0cda65967d Use BIT32_CLEAR_ALL 2016-07-08 22:54:16 +02:00
twinaphex 60eb15bf0b Fix 'Use this directory' for directory settings 2016-07-08 22:51:47 +02:00
twinaphex 5cefbbfc57 Add DISPLAYLIST_FILE_BROWSER_SELECT_DIR/SELECT_FILE 2016-07-08 22:26:28 +02:00
twinaphex e5bde97a2d Cleanups 2016-07-08 20:47:17 +02:00
twinaphex b774fda697 Remove bind_info.menu_label_hash 2016-07-08 19:15:24 +02:00
twinaphex 97be5b164f Cleanups 2016-07-08 19:14:29 +02:00
twinaphex 7aaa39a5db Improve Achievements list 2016-07-08 18:39:34 +02:00
Twinaphex bfe472af09 Merge pull request #3202 from amspady20/patch-1
Update xegl_ctx.c
2016-07-08 18:32:07 +02:00
amspady20 9adc8e34c0 Update xegl_ctx.c
Fixed include statment for frontend_driver.h
2016-07-08 12:30:53 -04:00
twinaphex a8004dee3d (Cheevos) Add label representation 2016-07-08 18:19:10 +02:00
twinaphex f107af6b55 Add MENU_ENUM_LABEL_CHEEVOS_ENTRY 2016-07-08 18:16:51 +02:00
twinaphex 7d16016d96 (Cheevos.c) Cleanups 2016-07-08 17:19:43 +02:00
twinaphex 555c54bdb8 Should show 'rich' labels for Android filesystem choices 2016-07-08 17:11:15 +02:00
twinaphex 8430697116 Add menu_entry_get_rich_label 2016-07-08 16:55:21 +02:00
twinaphex a1e517470c Start adding new values 2016-07-08 16:42:40 +02:00
twinaphex 14a7f2b442 Need to instrument menu_entry_get_path instead 2016-07-08 16:28:49 +02:00
twinaphex efc0371a4e menu_entry_get_label - prepare for being able to show custom labels 2016-07-08 16:27:16 +02:00
twinaphex b78dbf7453 Start preparing groundwork for custom labels 2016-07-08 16:25:53 +02:00
twinaphex bcf74d9685 Start adding menu_cbs_label.c 2016-07-08 16:24:05 +02:00
twinaphex c66ada4e90 (FBDev) Cleanups 2016-07-08 14:43:13 +02:00
twinaphex e1a5379886 (FBDev) Cleanups/unifications 2016-07-08 14:29:16 +02:00
twinaphex 80e3170e93 (BSD) Add frontend/drivers/platform_bsd.c 2016-07-08 13:30:05 +02:00
Twinaphex 3f6623fa6e Avoid warning 2016-07-08 13:04:51 +02:00
Twinaphex c746f4dbbc Don't build in BSD support for OSX 2016-07-08 13:01:16 +02:00
twinaphex bddd93bcaa (EGL) Don't use g_egl_quit and egl_install_sighandler 2016-07-08 12:58:06 +02:00
twinaphex d953be6397 (Wayland) Use signal handler code from frontend driver 2016-07-08 12:52:46 +02:00
twinaphex e9dc729503 Create set_signal_handler_state 2016-07-08 12:48:01 +02:00
twinaphex 8d5f34eeb9 Move signal handler code to frontend driver interface 2016-07-08 02:43:55 +02:00
twinaphex 76cc6fd8ec Start implementing signal handler code once in frontend driver code 2016-07-08 02:38:33 +02:00
twinaphex 24bfad033f Update platform_bsd.c 2016-07-08 02:25:23 +02:00
twinaphex 05467443a2 Add destroy_signal_handler_state 2016-07-08 02:24:56 +02:00
twinaphex a735114780 Add get_signal_handler_state 2016-07-08 02:20:42 +02:00
twinaphex 260d3634f2 Add platform_bsd.c to Griffin 2016-07-08 02:13:47 +02:00
twinaphex c8b7bc9845 Add platform_bsd.c 2016-07-08 02:13:19 +02:00
twinaphex 6cdc34e891 Add install_signal_handler callback 2016-07-08 02:10:40 +02:00
Twinaphex 1a148da76a Merge pull request #3199 from Themaister/master
Move KHR_display backend behind configure flag.
2016-07-07 22:15:27 +02:00
Hans-Kristian Arntzen cd4ff2eac8 Move KHR_display backend behind configure flag.
Enabled by default since it is technically not platform specific.
2016-07-07 22:05:57 +02:00
Twinaphex 84d656ea67 Add to Griffin 2016-07-07 21:53:16 +02:00
Alcaro 4b75304d15 You missed a spot, maister 2016-07-07 21:03:30 +02:00
Twinaphex 5cf1f9ec61 Merge pull request #3198 from Themaister/master
Vulkan: Don't use sighandling on Win32 in khr_display.
2016-07-07 20:43:31 +02:00
Hans-Kristian Arntzen df7870c2ea Vulkan: Don't use sighandling on Win32 in khr_display.
Lots of the embedded backends do signal-handling like this
which is kinda awkward. This should be moved to frontend runloop or
something similar.
2016-07-07 20:34:42 +02:00
Alcaro a081cf805f Fix typos 2016-07-07 20:05:08 +02:00
Twinaphex eacd59b841 Merge pull request #3197 from Themaister/khr_display
Initial implementation of VK_KHR_display backend.
2016-07-07 19:36:58 +02:00
Hans-Kristian Arntzen c561d8c4e6 Install sighandler for khr_display backend. 2016-07-07 19:32:09 +02:00
Hans-Kristian Arntzen af52f1532f Fix Vulkan test core build with includes. 2016-07-07 19:28:32 +02:00
Hans-Kristian Arntzen d382e1069e Basic VK_KHR_display integration works! :) 2016-07-07 19:28:27 +02:00
twinaphex 07c34accf5 Use MENU_ENUM_LABEL_URL_ENTRY 2016-07-07 03:02:55 +02:00
twinaphex 76b4828105 Add MENU_ENUM_LABEL_FILEBROWSER_ENTRY 2016-07-07 02:58:57 +02:00
twinaphex 035e7889d1 Remove more instances of MSG_UNKNOWN 2016-07-07 02:51:29 +02:00
twinaphex 4511b1c09c Dehardcode more MSG_UNKNOWN instances 2016-07-07 02:21:33 +02:00
twinaphex 3113f51102 Add 'User remote Enable' settings back 2016-07-07 01:52:10 +02:00
Hans-Kristian Arntzen 471d06d133 Fix Wayland refresh rate logging. 2016-07-06 23:22:13 +02:00
Hans-Kristian Arntzen d2fafc5451 Sketch out vulkan_create_display_surface. 2016-07-06 20:27:39 +02:00
Hans-Kristian Arntzen e9046dd06f Begin implementing VK_KHR_display. 2016-07-06 19:37:47 +02:00
Twinaphex a2c435ab2c Reintroduce deinit and get rid of slock_unlock at bottom of threaded_worker function 2016-07-06 16:35:00 +02:00
twinaphex 51e2da2cbd Revert this back - reintroduce the leak but should hopefully
solve issues on newer Intel CPUs
2016-07-06 13:21:08 +02:00
Twinaphex 599385de87 Merge pull request #3194 from orbea/aliasing
glm: Use aliasing patch from opensuse to silence warnings
2016-07-06 12:57:22 +02:00
orbea 3e859da48b glm: Use aliasing patch from opensuse to silence warnings 2016-07-06 00:28:57 -07:00
twinaphex 6a9fb1186d Should hopefully fix issues 2016-07-06 00:32:41 +02:00
twinaphex c8349862e1 Lower libdrm requirements to 2.4.65 2016-07-04 21:51:06 +02:00
Twinaphex 6d667b5250 Merge pull request #3189 from loganmc10/master
Fix library dirs on Raspberry Pi
2016-07-04 21:49:33 +02:00
Logan McNaughton a9750e0232 Fix library dirs on Raspberry Pi 2016-07-04 12:25:17 -06:00
twinaphex 170f8da759 Create MENU_ENUM_LABEL_PLAYLIST_ENTRY 2016-07-04 17:35:59 +02:00
twinaphex 58c6590dca Don't use MSG_UNKNOWN for system information entries 2016-07-04 17:07:34 +02:00
twinaphex 1ecdc1e8b7 Create MENU_ENUM_LABEL_NETWORK_INFO_ENTRY 2016-07-04 16:59:29 +02:00
twinaphex 39c50094da Create MENU_ENUM_LABEL_DEBUG_INFO_ENTRY 2016-07-04 16:57:24 +02:00
twinaphex c6d4dce410 Add MENU_ENUM_LABEL_CORE_INFO_ENTRY 2016-07-04 16:50:58 +02:00
twinaphex 0346cf70d5 Seems to come from here - add license text to it -
https://sourceforge.net/p/android-x86/external_libdrm/ci/1ec3c44bdd38051d870f64d0b2cc7dbd59760386/tree/tests/util/format.c
2016-07-04 15:05:50 +02:00
twinaphex b0ea1e09ac thread_wrapp - improve this a bit 2016-07-04 11:39:20 +02:00
twinaphex b2bc4cd300 Check if data->func is NULL and if so, early return 2016-07-04 11:32:43 +02:00
twinaphex 5d70242dee Check against libdrm version 2.4.68 in order to enable/disable
plain DRM video driver
2016-07-03 22:08:56 +02:00
twinaphex cdc7c1283b Fix Onscreen Overlay settings 2016-07-03 19:41:55 +02:00
Alcaro 6c18c17703 Cleanup 2016-07-03 12:47:55 +02:00
twinaphex 27c0702919 Cleanups 2016-07-03 11:30:03 +02:00
twinaphex 26afec3b08 Cleanups/CXX_BUILD fix 2016-07-03 11:29:09 +02:00
twinaphex abebc88195 Cleanups 2016-07-03 11:27:09 +02:00
twinaphex fa2d1c25a2 FILE_TYPE_PLAIN - add enum_idx fallback 2016-07-03 10:56:41 +02:00
twinaphex 54e137d9f7 Cleanups 2016-07-03 10:47:09 +02:00
twinaphex fe1dc51889 Add missing file 2016-07-03 10:44:53 +02:00
twinaphex a8bba31429 Cleanups 2016-07-03 10:44:34 +02:00
twinaphex d53cbfbdfb Backport DRM video driver 2016-07-03 10:37:07 +02:00
twinaphex 0775687008 Cleanups 2016-07-02 21:37:22 +02:00
twinaphex 97de8a35ec Cleanups 2016-07-02 20:49:38 +02:00
twinaphex 3c81b2597d Refactor remaining setting screens 2016-07-02 20:40:27 +02:00
twinaphex abe2a14b16 Refactor 'Onscreen Display'/'Onscreen Overlay' settings 2016-07-02 13:49:05 +02:00
twinaphex 84d9a58ec8 Refactor "Frame Throttle" and "Rewind" settings lists 2016-07-02 13:17:24 +02:00
twinaphex 1b76f42b00 Fix back for settings - goes back to correct index 2016-07-02 12:22:53 +02:00
twinaphex f011c4c9d6 Refactor 'Saving settings' and 'Logging settings' lists 2016-07-02 12:03:50 +02:00
twinaphex 662497d897 Refactor Configuration Settings 2016-07-02 10:17:09 +02:00
twinaphex 951686ba59 Cleanups 2016-07-02 07:29:14 +02:00
twinaphex 40998967c3 CLeanups 2016-07-02 07:27:18 +02:00
twinaphex e4d89b4b11 Cleanups 2016-07-02 07:26:03 +02:00
twinaphex d9bf45d2e7 Cleanups 2016-07-02 07:22:06 +02:00
twinaphex 18e3843db7 Cleanups 2016-07-02 07:05:43 +02:00
twinaphex 370c4cb6a7 Cleanups 2016-07-02 06:59:49 +02:00
twinaphex 03f7bd5e7b Cleanups 2016-07-02 06:57:47 +02:00
twinaphex eadae793c6 Cleanups 2016-07-01 22:33:37 +02:00
twinaphex fe70f766f1 Cleanups 2016-07-01 20:59:51 +02:00
twinaphex 9596c7b3c4 Cleanups 2016-07-01 20:57:23 +02:00
twinaphex f513e1fac2 (menu_cbs.c) Cleanups 2016-07-01 20:23:22 +02:00
twinaphex 9d3251a54b Cleanups 2016-07-01 20:18:51 +02:00
twinaphex 9f53ad9c45 (menu_cbs.c) Remove arguments 2016-07-01 19:59:47 +02:00
twinaphex e68d2c656f (menu_cbs) Remove unneeded arguments 2016-07-01 19:58:08 +02:00
twinaphex 1cc2ae692b Cleanups 2016-07-01 19:26:27 +02:00
twinaphex f469f40381 CLeanups 2016-07-01 19:24:26 +02:00
twinaphex f7648bc95c Remove arguments 2016-07-01 19:22:07 +02:00
twinaphex 688cad2593 Get rid of arguments 2016-07-01 19:20:59 +02:00
twinaphex 550b3e5633 (menu_cbs.c) Get rid of some unneeded variable arguments 2016-07-01 19:13:25 +02:00
twinaphex 129a3463f5 Don't use MSG_UNKNOWN for this 2016-07-01 19:06:33 +02:00
twinaphex 79761446c8 Cut down on label hash dependencies 2016-07-01 19:01:25 +02:00
twinaphex 5039d7a444 action_ok_playlist - no longer dependent upon msg_hash_calculate 2016-07-01 18:28:27 +02:00
twinaphex 37f64d39a3 Use FILE_PATH_PNG_EXTENSION 2016-07-01 17:04:11 +02:00
twinaphex 947ef60a0f Cleanups 2016-07-01 16:36:57 +02:00
twinaphex 71c20c9650 Cleanup 2016-07-01 16:34:19 +02:00
twinaphex 02f8d54c31 Translatable strings 2016-07-01 16:33:43 +02:00
twinaphex a697e2507e Cleanup 2016-07-01 16:21:16 +02:00
Twinaphex 0ff36406ee unused variable fix 2016-07-01 16:15:11 +02:00
twinaphex 56ef899946 Move code to menu_content.c 2016-07-01 15:55:36 +02:00
twinaphex 14329b0656 Make function static 2016-07-01 15:46:55 +02:00
twinaphex 6f241e80a0 config.features.h - add HAVE_OPENGLES_3_1 / HAVE_OPENGLES_3_2 2016-07-01 12:43:48 +02:00
twinaphex cddb0a3b48 Hide 'Start Core' if we cannot directly start the core 2016-07-01 12:18:38 +02:00
twinaphex 0ecb2379ff config_get_default_video - add VIDEO_VULKAN 2016-07-01 12:14:06 +02:00
twinaphex 20fa4499d2 Cleanup 2016-07-01 12:12:06 +02:00
twinaphex 45e3c60d22 Cleanups 2016-07-01 12:10:59 +02:00
twinaphex 474430b043 Expand file_path_str 2016-07-01 11:16:56 +02:00
twinaphex 45c33c7acf Create fill_pathname_base_ext 2016-07-01 11:12:24 +02:00
twinaphex e36107530e deferred_push - don't use menu_setting_find 2016-07-01 10:40:31 +02:00
twinaphex dc7a225f8d Don't use menu_setting_find anymore in action_ok_file_load 2016-07-01 10:35:50 +02:00
twinaphex 5953b63b4f Cleanup 2016-07-01 10:26:31 +02:00
twinaphex 8408b753af CLeanups 2016-07-01 10:16:41 +02:00
twinaphex f4bacc7afd (menu_cbs_ok.c) Get rid of hash_label code 2016-07-01 10:15:26 +02:00
twinaphex 928eb582f6 Cleanup some strings 2016-07-01 10:01:58 +02:00
twinaphex 303897924c More translatable strings 2016-07-01 09:45:04 +02:00
twinaphex 2009c72baa config_replace - do early return if global is NULL 2016-07-01 08:54:31 +02:00
twinaphex 2520a8a5f6 Indenting nits 2016-07-01 08:53:27 +02:00
twinaphex 2f04b7035a Add more translatable strings 2016-07-01 08:35:12 +02:00
twinaphex 41459fc1d4 Rename 'Add Tab' 2016-07-01 07:47:47 +02:00
twinaphex 0eb467e04d Dehardcode more strings, can get rid of some TODOS/FIXMEs 2016-07-01 07:28:46 +02:00
twinaphex dcbd68b11b Create FILE_PATH_AUTO_EXTENSION 2016-07-01 07:07:18 +02:00
Twinaphex 1e9300be68 Prevent crash inside command_event_save_auto_state 2016-07-01 07:03:44 +02:00
twinaphex dc4275b673 Should autosave state now at exit 2016-07-01 06:55:44 +02:00
twinaphex 241670cec2 Dehardcode some more strings 2016-07-01 06:02:57 +02:00
twinaphex 86fa52a2ea Add FILE_PATH_BSV_EXTENSION 2016-07-01 05:59:36 +02:00
twinaphex 394cbbef59 Improve message 2016-07-01 05:56:41 +02:00
twinaphex 13cadc6c1d Add FILE_PATH_7Z_EXTENSION/FILE_PATH_ZIP_EXTENSION 2016-07-01 05:53:55 +02:00
twinaphex a38675a562 Style nits 2016-07-01 05:51:27 +02:00
twinaphex 94735f9034 Replace some snprintf usage 2016-07-01 05:49:18 +02:00
twinaphex b88e117d0b Replace snprintf usage with strlcpy 2016-07-01 05:46:12 +02:00
twinaphex 0ddb064314 Make strings translatable 2016-07-01 05:42:53 +02:00
twinaphex 36223d551d Cleanups 2016-07-01 05:17:04 +02:00
twinaphex 6d531f1892 Dehardcode 'DETECT' 2016-07-01 04:58:56 +02:00
Alcaro f5881c17ef Use the same format as in the autoconfigs 2016-06-30 22:06:51 +02:00
Twinaphex 10d9e2a261 Merge pull request #3179 from lakkatv/master
Forgot to add a break here
2016-06-30 19:21:36 +02:00
Jean-André Santoni 8c442985cb Forgot to add a break here 2016-06-30 19:17:06 +02:00
twinaphex bb15d50ff9 Dehardcode some constants 2016-06-30 19:09:22 +02:00
twinaphex bd8a7d030e Cleanups 2016-06-30 19:05:55 +02:00
twinaphex 4970aacc68 Remove header 2016-06-30 18:34:59 +02:00
twinaphex 3d27895adf Cleanups 2016-06-30 18:34:11 +02:00
twinaphex 31056286e8 Simplify menu_cbs_ok.c 2016-06-30 18:31:45 +02:00
twinaphex b8f40af467 Simplify generic_action_ok_file_laod 2016-06-30 18:29:27 +02:00
twinaphex 471ffc53fd Refactor menu_content_load_from_playlist 2016-06-30 18:25:19 +02:00
twinaphex 9836b97554 Dehardcode some strings 2016-06-30 17:53:54 +02:00
twinaphex 2119e4559d C89_BUILD fix 2016-06-30 17:43:36 +02:00
twinaphex 82a77279f3 Prevent more null pointer dereferences 2016-06-30 17:40:19 +02:00
twinaphex 01ab13f62c Prevent null pointer dereferences 2016-06-30 17:38:16 +02:00
Alcaro e321d34d08 That should be the last of the new Coverity issues... 2016-06-30 16:10:58 +02:00
Alcaro 10e0411b21 Thanks Coverity, but no, this one cannot be null. 2016-06-30 16:10:58 +02:00
twinaphex 22ac73ba26 Prevent null pointer dereference 2016-06-30 16:10:09 +02:00
twinaphex 9ee55cf7cc Fix performance counter representation 2016-06-30 16:05:41 +02:00
twinaphex ebb75f99fc Get rid of DONT_HAVE_STRING_LIST ifdefs 2016-06-30 07:42:01 +02:00
twinaphex 9fab75c4b5 Cleanups; 80-char width limit 2016-06-30 07:40:25 +02:00
twinaphex f51dfa1de9 Cleanups 2016-06-30 06:11:55 +02:00
twinaphex 21134eb28c Create FILE_PATH_DETECT 2016-06-30 06:07:44 +02:00
twinaphex 0547a71a52 Cleanups 2016-06-30 06:02:30 +02:00
twinaphex fbc83640b6 More translatable strings 2016-06-30 05:58:05 +02:00
twinaphex acd68519de Create MSG_FRAMES 2016-06-30 05:41:53 +02:00
twinaphex e4be1f53a3 Add more translatable strings 2016-06-30 05:35:45 +02:00
twinaphex 52db4d226a Cleanups 2016-06-30 05:28:41 +02:00
twinaphex 4ea5fe4169 Create MSG_ERROR 2016-06-30 05:23:22 +02:00
twinaphex 6756501dac Create FILE_PATH_LUTRO_PLAYLIST 2016-06-30 05:19:25 +02:00
twinaphex e61593d80c Cleanups 2016-06-30 05:16:28 +02:00
twinaphex eb4d8678e9 (XMB) Cleanups 2016-06-30 05:14:12 +02:00
twinaphex 83bafe1b19 Cleanups 2016-06-30 05:04:27 +02:00
twinaphex 543c188da6 Create fill_pathname_join_special_ext 2016-06-30 05:02:45 +02:00
twinaphex 5f71ecc1d1 Create fill_pathname_join_special_ext 2016-06-30 04:59:57 +02:00
twinaphex 5d7367e89a Create vec2_t/vec3_t typedefs 2016-06-29 19:42:41 +02:00
radius a1cf6f29f4 fix map and remove stray printf 2016-06-29 12:23:26 -05:00
radius 24ec6928dc sleep for 4ms 2016-06-29 12:23:25 -05:00
twinaphex 3f8b1d04ed Reuse code 2016-06-29 18:54:40 +02:00
twinaphex 08f26fafbd Create FILE_PATH_OPT_EXTENSION 2016-06-29 18:45:12 +02:00
twinaphex c83477cb62 Create FILE_PATH_REMAP_EXTENSION 2016-06-29 18:43:00 +02:00
twinaphex a301562149 Dehardcode .cfg extension 2016-06-29 18:40:36 +02:00
twinaphex 668b4b5d26 Remove duplicate fill_string_concat 2016-06-29 18:14:42 +02:00
twinaphex 1226c71b98 Use fill_string_concat 2016-06-29 18:14:42 +02:00
Alcaro 2bd3e94e5e Apparently Coverity doesn't like this either. 2016-06-29 18:01:34 +02:00
twinaphex a7e8707f7d Create fill_pathname_join_delim_concat 2016-06-29 17:51:25 +02:00
twinaphex c38c28a0f5 Create fill_pathname_join_concat 2016-06-29 17:46:50 +02:00
twinaphex eafce41a16 menu_setting.c - use fill_string_concat 2016-06-29 17:43:36 +02:00
twinaphex f4ef5e82c2 Create and use fill_string_concat 2016-06-29 17:41:32 +02:00
twinaphex 037633cf33 Cleanups 2016-06-29 17:07:31 +02:00
radius 298b753e41 fix button map 2016-06-29 09:58:27 -05:00
Twinaphex f53783dfe8 Merge pull request #3178 from lakkatv/master
Add .lutro scanning
2016-06-29 16:09:31 +02:00
twinaphex 4168e541c9 Bump up to 1.3.5, but don't yet tag 2016-06-29 15:10:08 +02:00
Jean-André Santoni 0f18ade02a Add .lutro scanning
When a file wih the .lutro extension is found, the ROM is added to Lutro.lpl. The name of the game is the name of the file without the extension.
2016-06-29 15:07:12 +02:00
Twinaphex 900fc57773 Merge pull request #3177 from natinusala/master
(gl_raster_font) Fixed the viewport issue
2016-06-29 14:51:20 +02:00
Nathan S d79da7fc1f (gl_raster_font) Fixed the viewport issue 2016-06-29 14:22:30 +02:00
twinaphex b8ac629fbf Get rid of dereference before null check warning 2016-06-29 12:19:23 +02:00
Twinaphex 397c8acd51 Merge pull request #3175 from lakkatv/master
Add start+select to the list of gamepad combos
2016-06-29 12:14:17 +02:00
twinaphex 3c7dc0a62e Try to silence more Coverity warnings 2016-06-29 12:13:40 +02:00
Jean-André Santoni b409ced5ad Add start+select to the list of gamepad combos 2016-06-29 10:46:07 +02:00
Twinaphex 39778066dd Merge pull request #3174 from sronsse/fixes_for_team
command: Load dummy core on close only if core has not been initialized yet
2016-06-29 09:30:55 +02:00
Sebastien Ronsse 087e26bd2d command: Load dummy core on close only if core has not been initialized yet 2016-06-29 17:24:55 +10:00
radius 88784aa702 retropad cleanups and avoid sending 0s 2016-06-29 02:06:09 -05:00
twinaphex 8d7540c449 Move some variables around 2016-06-29 07:12:54 +02:00
twinaphex 7e55d0da17 (Net retropad) Prefix core option nams 2016-06-29 06:47:42 +02:00
twinaphex 417f3afdb0 retropad_update_input returns a value instead - get rid
of static global
2016-06-29 06:34:16 +02:00
twinaphex 982dd47f01 Translate a bunch of log strings 2016-06-29 03:06:15 +02:00
twinaphex 96bb85fb41 Replace more hardcoded strings 2016-06-29 02:44:27 +02:00
twinaphex 2a9bf91e0d Use MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE 2016-06-29 02:40:05 +02:00
Twinaphex 5d89bf970f Merge pull request #3172 from libretro/revert-3169-master
Revert "(gl_raster) Added fullscreen to restore_viewport"
2016-06-29 02:30:11 +02:00
Twinaphex 08dbbe1a55 Revert "(gl_raster) Added fullscreen to restore_viewport" 2016-06-29 02:30:05 +02:00
Twinaphex d9a33dfe04 Merge pull request #3170 from leiradel/master
honor the tasks 'mute' property again
2016-06-29 02:16:00 +02:00
Andre Leiradella 50f538dc9e honor the tasks 'mute' property again 2016-06-28 17:02:01 -03:00
twinaphex 099be6ed2d Use noext versions of fill_path* functions 2016-06-28 13:13:36 +02:00
twinaphex b593e73896 Use fill_pathname_base_noext 2016-06-28 13:10:34 +02:00
twinaphex 7647c9be59 Add noext versions 2016-06-28 13:08:03 +02:00
twinaphex ca3eecf5c0 Create fill_pathname_join_noext 2016-06-28 13:05:46 +02:00
Twinaphex 51b2e920fe Merge pull request #3169 from natinusala/master
(gl_raster) Added fullscreen to restore_viewport
2016-06-28 12:56:14 +02:00
twinaphex c03e566eba Create filL_short_pathname_representation_noext 2016-06-28 12:49:37 +02:00
twinaphex 0709f2b11b (libretro-common) (file_path.c) Cleanups 2016-06-28 12:43:50 +02:00
twinaphex d94098cca1 Rename menu_file_type to msg_file_type 2016-06-28 12:19:18 +02:00
twinaphex 13dd8e4905 Add translations 2016-06-28 12:08:30 +02:00
Nathan S b0584a950d (gl_raster) Added fullscreen to restore_viewport 2016-06-28 11:56:19 +02:00
twinaphex e75a586ead Can scroll now left/right in System Information 2016-06-28 11:34:17 +02:00
twinaphex 0a0f9cdec3 Add more translatable strings 2016-06-28 11:30:17 +02:00
twinaphex e03a6284d1 Add FILE_PATH_RDB_EXTENSIOn 2016-06-28 11:22:44 +02:00
twinaphex d589dd5d8f Update string 2016-06-28 11:16:08 +02:00
twinaphex fa7eb9d8c8 Create file_path_str FILE_PATH_NUL 2016-06-28 11:10:30 +02:00
twinaphex 5ba74302b2 Cleanups 2016-06-28 11:04:59 +02:00
twinaphex 7a745c3f70 Use string_is_empty 2016-06-28 11:02:51 +02:00
twinaphex 58b95752e8 (task_content.c) Use string_is_empty 2016-06-28 10:50:00 +02:00
twinaphex e162882406 (core_info.c) Use file_path_str 2016-06-28 08:57:01 +02:00
twinaphex 481e7d2f34 (libretro-common) Move STRING_REP_UINT64 to retro_common_api.h 2016-06-28 08:50:22 +02:00
twinaphex 7aff07f6ac (verbosity.c) Cleanups 2016-06-28 08:44:49 +02:00
twinaphex 97fd53cd5f Create more file_path_str enums 2016-06-28 08:42:50 +02:00
twinaphex 342bcebc59 Set current core type almost immediately after loading new core 2016-06-28 07:51:49 +02:00
twinaphex 1661fa552f Revert "Cleanup"
This reverts commit 43426df4f6.
2016-06-28 04:58:29 +02:00
twinaphex 5045a0faff Add optional logging 2016-06-28 04:23:57 +02:00
twinaphex 43426df4f6 Cleanup 2016-06-28 04:21:13 +02:00
twinaphex d600075012 Cleanup 2016-06-28 04:08:36 +02:00
twinaphex 52a9a465df Add file_path_str for Salamander 2016-06-28 03:21:30 +02:00
twinaphex 64c85771b2 Create FILE_PATH_STR extensions 2016-06-28 01:10:58 +02:00
twinaphex 35605f43fa Remove part of comment 2016-06-28 01:02:27 +02:00
twinaphex 24ead80e8b menu_driver_toggle - always set 'flush' 2016-06-28 01:02:04 +02:00
twinaphex 218c9b4487 Add more msg enums 2016-06-28 00:51:47 +02:00
twinaphex 7eefeddea9 Fix preliminary 'Download Core' option when no cores are found 2016-06-28 00:30:20 +02:00
twinaphex 1c1c1fa32c Don't return false for this symbol lookup so that MESA Intel Ivy Bridge Vulkan drivers will still work 2016-06-27 23:57:57 +02:00
Twinaphex 0f1b18d2e5 Merge pull request #3166 from Themaister/master
Vulkan: Create command pool for correct queue family.
2016-06-27 23:44:50 +02:00
twinaphex a24d43c8fd Add GFX_CTX_FLAGS_CUSTOMIZABLE_SWAPCHAIN_IMAGES display flag 2016-06-27 23:43:57 +02:00
Hans-Kristian Arntzen d00ae6b66b Vulkan: Create command pool for correct queue family. 2016-06-27 23:43:26 +02:00
Twinaphex 4d089a7fba Merge pull request #3165 from Ezio-PS/master
Add Italian messages
2016-06-27 22:52:56 +02:00
Ezio-PS 53faa0c92d Add missing encoding checkers 2016-06-27 22:50:56 +02:00
Alcaro d431f77960 Add missing encoding checkers 2016-06-27 22:46:33 +02:00
Ezio-PS 2cc765b27c fix typo 2016-06-27 22:20:27 +02:00
Ezio-PS 7bca682549 Add Italian messages 2016-06-27 22:16:25 +02:00
twinaphex 9574a929bc Use builtin headers 2016-06-27 22:05:07 +02:00
Twinaphex 030841756b Merge pull request #3164 from Themaister/master
Revert incorrect submodule revert.
2016-06-27 21:58:44 +02:00
Hans-Kristian Arntzen 90e8bb3f52 Revert incorrect submodule revert.
Commit 996f9a59b7 randomly
decided to change submodules back.
2016-06-27 21:55:23 +02:00
Alcaro 792008d558 apparently 0 isn't O. I've been lied to for years. 2016-06-27 21:44:14 +02:00
Alcaro 996f9a59b7 Whoops, apparently this one is shared the ugly way... 2016-06-27 21:36:59 +02:00
Alcaro 18978c5f01 More Coverity cleanups 2016-06-27 21:34:21 +02:00
twinaphex b40c31384e Can scroll left/right now at FILE_TYPE_DOWNLOAD_URL settings 2016-06-27 21:29:38 +02:00
Alcaro 5b388d8c92 Fix some Coverity errors 2016-06-27 21:16:49 +02:00
Twinaphex 2a860abcfd Merge pull request #3163 from Themaister/master
Vulkan: Add async compute test core
2016-06-27 21:06:31 +02:00
Hans-Kristian Arntzen c80127d29d Vulkan: Hook up async compute test more properly.
Supports multiple queues and queues from different families.
2016-06-27 20:54:53 +02:00
Hans-Kristian Arntzen 4abb0ef331 Vulkan: Cache destroy device callback. 2016-06-27 20:54:53 +02:00
Hans-Kristian Arntzen 58703de05c Vulkan: Add initial async compute.
Still not really async. Need to use multiple queues.
2016-06-27 20:54:53 +02:00
Hans-Kristian Arntzen 6841b5ad00 Vulkan: Keep dylib around if caching instance. 2016-06-27 20:54:53 +02:00
Hans-Kristian Arntzen 4729ec9e1b Add support for signalling semaphores from frontend.
Useful for conserving framebuffer memory.
2016-06-27 20:54:53 +02:00
twinaphex 36c235556a Fix some coverity warnings 2016-06-27 20:54:05 +02:00
twinaphex 097b02a8a1 Add compilation of vector_2/vector_3 2016-06-27 10:56:30 +02:00
twinaphex aefcca125a Fix TGA color conversion 2016-06-27 09:23:01 +02:00
Twinaphex 21bb5331f9 Merge pull request #3161 from sronsse/fixes_for_team
image transfer: Add TGA support to image_transfer_new function
2016-06-27 09:19:52 +02:00
Sebastien Ronsse 62b1c5a7af image transfer: Add TGA support to image_transfer_new function 2016-06-27 17:17:35 +10:00
twinaphex a51a259e58 Add STRING_REP_INT64 2016-06-27 08:24:28 +02:00
twinaphex 728249fa61 Add more strings 2016-06-27 08:19:39 +02:00
twinaphex f5bfbdeebe Rewrite strcpy usage 2016-06-27 08:09:34 +02:00
twinaphex 946de514dc Don't use strcpy 2016-06-27 08:07:19 +02:00
twinaphex d411bfa5de (cheevos.c) Cleanup 2016-06-27 08:05:33 +02:00
twinaphex 6e3d3d94d4 Cleanups 2016-06-27 08:04:20 +02:00
twinaphex 582bd50719 (cheevos.c) Cleanup 2016-06-27 08:00:49 +02:00
twinaphex 07ce0eabd9 Cleanup 2016-06-27 07:57:14 +02:00
twinaphex 5dd4c88011 Cleanup 2016-06-27 07:55:32 +02:00
twinaphex 5a77baf185 verbosity.c - cleanups 2016-06-27 07:52:48 +02:00
twinaphex fd5d19eaab Cleanup 2016-06-27 07:48:37 +02:00
twinaphex a6a0960f77 Cleanup 2016-06-27 07:48:22 +02:00
twinaphex 4ddeda2511 Add additions to file_path_str 2016-06-27 07:47:15 +02:00
twinaphex d6975325d9 Create more menu message string translations 2016-06-27 07:28:07 +02:00
twinaphex f017c64220 Add FILE_PATH_CORE_INFO_EXTENSION 2016-06-27 07:18:02 +02:00
twinaphex 3cd76a6849 Cleanup 2016-06-27 07:02:22 +02:00
Twinaphex a68a33c559 Remove unused variable 2016-06-27 06:43:47 +02:00
twinaphex 280ea0535f (OSX) Bake in HAVE_NETWORKGAMEPAD 2016-06-27 06:42:03 +02:00
twinaphex b990f34054 (iOS) Add network gamepad 2016-06-27 06:40:25 +02:00
twinaphex 465ac5707c Add HAVE_NETWORKGAMEPAD 2016-06-27 06:38:47 +02:00
twinaphex 05fb0a1eeb Push Quick Menu for net retropad core 2016-06-27 06:27:57 +02:00
Twinaphex 22331b5821 Merge pull request #3160 from sronsse/fixes_for_team
retroarch: Fix core type detection when cores are excplicitely set
2016-06-27 06:22:05 +02:00
Sebastien Ronsse 95ad02e742 retroarch: Fix core type detection when cores are excplicitely set 2016-06-27 14:13:09 +10:00
twinaphex eea287d156 (BTStack HID) Create HAVE_DYNAMIC ifdefs 2016-06-27 01:11:49 +02:00
twinaphex 1a60d257ee Remove menu_driver_toggle_binds 2016-06-27 00:46:05 +02:00
twinaphex 3a4a00ffe6 Comment this out for now until it works without breaking hotkey binds 2016-06-27 00:05:59 +02:00
twinaphex 7b460c14b7 Create menu_driver_toggle_binds 2016-06-26 22:50:00 +02:00
twinaphex 00ff63e0bb Add NEED_CXX_LINKER 2016-06-26 21:26:21 +02:00
Twinaphex 3b9b54ba2d Merge pull request #3156 from Themaister/master
Vulkan: Replace handcoded symbol loader
2016-06-26 18:06:39 +02:00
Hans-Kristian Arntzen 54c1759f45 Vulkan: Make a more general purpose symbol loader.
Avoids painful manual loading and wrapping function pointers everywhere
...

Reusable for cores, so move to libretro-common.
Also update built-in Vulkan headers.
2016-06-26 13:10:58 +02:00
twinaphex 7330f96946 Cleanup 2016-06-26 11:08:38 +02:00
Hans-Kristian Arntzen 1da2e2dbab Vulkan: Hook up negotiation interface device creation. 2016-06-26 10:40:07 +02:00
Twinaphex 178b479072 Prevent crash at exit due to dereference of pointer 2016-06-26 10:39:27 +02:00
twinaphex f6bbe69096 Use string_is_empty 2016-06-26 10:33:46 +02:00
twinaphex 961daf8067 Cleanup 2016-06-26 10:27:44 +02:00
twinaphex 020d7cec0a Cleanup 2016-06-26 10:20:22 +02:00
Twinaphex 88cc0ce8bb Remove unused variables 2016-06-26 10:17:25 +02:00
twinaphex 016983c9eb Add FILE_PATH_RTC_EXTENSION 2016-06-26 10:15:25 +02:00
twinaphex 2dddc3fc88 Add FILE_PATH_LPL_EXTENSION 2016-06-26 10:12:28 +02:00
Hans-Kristian Arntzen 87d36489a1 Vulkan: Update test core shader build to glslc. 2016-06-26 10:03:33 +02:00
twinaphex e9b39cc17f Cleanups 2016-06-26 09:58:10 +02:00
Hans-Kristian Arntzen 6424f8efcf Vulkan: Add get_application_info to Vulkan test core. 2016-06-26 09:57:37 +02:00
twinaphex fcc238d310 Expand file_path_str 2016-06-26 09:56:55 +02:00
twinaphex 251f9021ad (Menu) Implement page up / page down controls 2016-06-26 09:12:40 +02:00
twinaphex f9b535ea91 Create Input Bind Timeout setting 2016-06-26 08:22:40 +02:00
twinaphex 9a5b13cccf Remove menu_block_main_input 2016-06-26 08:13:22 +02:00
twinaphex 9f8b57baca Remove PENDING_ACTION code - not used 2016-06-26 08:05:42 +02:00
twinaphex e91136017e Create retro_keybinds_menu - and change settings binds to this
when we toggle the menu
2016-06-26 08:02:29 +02:00
twinaphex 0d3955196d Take out crappy hacks - if users want this they will just have to change
the default keybinds then
2016-06-26 07:50:16 +02:00
Hans-Kristian Arntzen 10a6d7a458 Vulkan: Begin hooking up negotiation interface. 2016-06-25 21:01:36 +02:00
Twinaphex 6ab368811f Merge pull request #3152 from FIX94/master
some small code corrections for the video settings
2016-06-25 17:19:24 +02:00
Twinaphex c794d89bcf Merge pull request #3151 from Themaister/master
Vulkan maintenance and bug fixes.
2016-06-25 17:18:44 +02:00
FIX94 dc127f1555 fixed a typo in the video settings setup and added back display of the driver specific video settings
(GX) removed a compiler warning
2016-06-25 17:14:31 +02:00
Hans-Kristian Arntzen b013a9c863 Vulkan: Replace prebaked shaders with glslc -mfmt=c.
Far more clean and avoids illegal punning.
2016-06-25 14:55:03 +02:00
Hans-Kristian Arntzen 596cd320c6 Vulkan: Update SPIRV-Cross and glslang. 2016-06-25 14:44:56 +02:00
Hans-Kristian Arntzen 3ee172c410 Fix memory leak with white texture. 2016-06-25 14:25:44 +02:00
Hans-Kristian Arntzen 89a5983c3c Vulkan: Fix descriptor set layout leak. 2016-06-25 14:20:41 +02:00
Hans-Kristian Arntzen 972a5db7ae Vulkan: Fix shader module leak. 2016-06-25 14:06:14 +02:00
Hans-Kristian Arntzen de36f572d1 Vulkan: Fix more validation issues. 2016-06-25 14:01:10 +02:00
Hans-Kristian Arntzen 07880e3f45 Vulkan: Begin hooking up validation layers.
Found lots of regressions due to bad reformatting.
2016-06-25 13:52:33 +02:00
Hans-Kristian Arntzen 2293bce616 Vulkan: Sketch out context negotiation interface. 2016-06-25 12:14:56 +02:00
Hans-Kristian Arntzen d043123f71 Vulkan: Add support for queue transfers in HW rendering. 2016-06-25 11:39:52 +02:00
Hans-Kristian Arntzen 82c7aa0e6f Use max swapchain image setting when creating swapchain. 2016-06-25 09:52:46 +02:00
twinaphex e0114e08ba Add type to retro_input_t 2016-06-25 09:05:56 +02:00
twinaphex 3dff698644 Turn retro_input_t into struct 2016-06-25 09:04:00 +02:00
twinaphex 5b1347a788 Add block main input mechanism 2016-06-25 08:48:39 +02:00
twinaphex b86274aa95 Cleanup 2016-06-25 07:41:10 +02:00
twinaphex 49e8baa61d Use tmp_str variable for config_get_path usage 2016-06-25 07:17:48 +02:00
twinaphex c6e835685f Be prudent with config_get_path 2016-06-25 07:12:37 +02:00
twinaphex 65ecec9391 Use sting_is_empty 2016-06-25 02:30:54 +02:00
twinaphex f0f9847647 (Android) Warning fixes 2016-06-25 00:20:24 +02:00
twinaphex 485d646e90 Revert "(Roar) Add is_paused variable"
This reverts commit 3e0184201e.
2016-06-25 00:13:23 +02:00
twinaphex 3e0184201e (Roar) Add is_paused variable 2016-06-25 00:12:52 +02:00
Alcaro 4ae6cda6b1 Fix #3147 2016-06-24 23:59:55 +02:00
Twinaphex fcb324e272 Merge pull request #3146 from FIX94/master
corrected core info removal
2016-06-24 23:34:24 +02:00
FIX94 528b2b9b00 only remove core info on close content if the current platform is either dynamic or can fork to other cores, would get stuck on no core otherwise 2016-06-24 20:10:11 +02:00
Twinaphex 3afd1c1e07 Merge pull request #3144 from FIX94/master
corrected a switch case, makes ngc build (and probably others) boot up again
2016-06-24 18:11:12 +02:00
FIX94 3f7ca00e6d corrected a switch case, makes ngc build (and probably others) boot up again 2016-06-24 18:03:51 +02:00
Twinaphex 55f2019517 Merge pull request #3142 from rz5/patch-1
Update msg_hash_us.c
2016-06-23 20:29:04 +02:00
rz5 d8d0fdd11f Update msg_hash_us.c
rafiki on IRC spotted this bug. I initially edited this string while creating the feature and never returned to it since. We have now found each other and we lived happily ever after.
2016-06-23 18:55:13 +01:00
twinaphex b434f0863a CXX_BUILD buildfix 2016-06-23 07:44:56 +02:00
twinaphex a6bfc6240f C89_BUILD fixes 2016-06-23 07:40:51 +02:00
twinaphex dee7533d65 (libretro-common) Start creating STRING_REP_ULONG 2016-06-23 07:37:02 +02:00
twinaphex f177d22007 (Cheevos) Try to prevent message issue 2016-06-23 07:26:33 +02:00
twinaphex 9d6086813b Use RARCH_LOG 2016-06-23 07:23:17 +02:00
twinaphex 197ce259f1 Remove internal_buffer 2016-06-23 03:47:10 +02:00
Twinaphex 11819e2d47 Merge pull request #3098 from rz5/master
Reworked Undo options
2016-06-23 03:45:26 +02:00
Arzed Five 1f028395d2 Merge remote-tracking branch 'upstream/master' 2016-06-22 22:40:17 +01:00
twinaphex 549bc8dc5e get_mem_used should now report more accurate values 2016-06-22 23:32:11 +02:00
Twinaphex 1e91689919 (iOS) Fix FPS reporting 2016-06-22 17:42:32 +02:00
Twinaphex 4b96bfe46e (iOS) Buildfix 2016-06-22 17:19:01 +02:00
twinaphex 02ad99048d Get rid of menu_entry_go_back 2016-06-22 06:55:11 +02:00
twinaphex ee9cb593c5 Fix mouse back button by calling into MENU_ACTION_CANCEL action 2016-06-22 06:51:46 +02:00
twinaphex f5fcd45a3f Fix touch back button code 2016-06-22 06:48:35 +02:00
twinaphex 735dc822ca Refactor some code - use menu_entry_go_back 2016-06-22 01:26:19 +02:00
twinaphex 8a8fadc5b2 Implement max swapchain images setting, implement it first for DRM/KMS context 2016-06-21 21:36:58 +02:00
Alcaro ecf88d0114 Test commit 2016-06-21 20:05:42 +02:00
twinaphex 8afdfdf7af Fix header include 2016-06-21 16:59:56 +02:00
Twinaphex e854691e87 Merge pull request #3135 from gouchi/master
libretro_vulkan.h is now in libretro-common include
2016-06-21 16:59:04 +02:00
gouchi 60669c84c9 libretro_vulkan.h is now in libretro-common include 2016-06-21 16:53:25 +02:00
twinaphex f7bd9a7843 HAVE_IMAGEVIEWER no longer has to be excluded for the C89/C90 build 2016-06-21 06:59:31 +02:00
twinaphex 80f2e11799 Imageviewer no longer uses stb_image by default 2016-06-21 06:53:25 +02:00
Twinaphex 712fb03341 Merge pull request #3133 from sronsse/fixes_for_team
image texture: Add length argument to image_transfer_process
2016-06-21 06:44:54 +02:00
Sebastien Ronsse e77599be32 image texture: Add length argument to image_transfer_process 2016-06-21 14:34:34 +10:00
Twinaphex 27070dcb57 Remove unused variables 2016-06-21 06:13:06 +02:00
twinaphex 0f813e1dea Dehardcode MENU_ENUM_LABEL_CB_CORE_CONTENT_DOWNLOAD 2016-06-21 05:21:19 +02:00
twinaphex 97b0211880 Dehardcode CB_CORE_CONTENT_LIST 2016-06-21 05:13:43 +02:00
twinaphex 982330ef86 Use new 'Download Content' option 2016-06-21 04:21:18 +02:00
twinaphex 4eaf718a6e Start preparing download URL code 2016-06-21 04:09:26 +02:00
Twinaphex f423564895 Merge pull request #3132 from sronsse/fixes_for_team
playlist: Fix memory leak due to unallocated playlist entry strings
2016-06-21 03:04:29 +02:00
Sebastien Ronsse 2b3718a86c playlist: Fix memory leak due to unallocated playlist entry strings 2016-06-21 10:53:33 +10:00
twinaphex 2cb1636ea4 Start logging cancel callback 2016-06-21 02:36:56 +02:00
twinaphex ffdf6eae8e Start preparing new 'add content' option 2016-06-21 02:24:10 +02:00
twinaphex 4b91a6b121 More preparatory work 2016-06-21 01:40:55 +02:00
twinaphex 00ec3e7846 Implement debug log warning us of not-implemented enums 2016-06-21 00:58:13 +02:00
twinaphex c14e8ba6ca More work on DOWNLOAD_CORE_CONTENT_DIRS 2016-06-21 00:54:14 +02:00
twinaphex a302d78989 Start adding CORE_CONTENT_DIRS_LIST 2016-06-21 00:46:55 +02:00
twinaphex 4e534fec6f Update GLSM 2016-06-21 00:35:57 +02:00
twinaphex 1bb8ae4a1d Add FILE_PATH_INDEX_DIRS_URL 2016-06-20 23:39:40 +02:00
twinaphex 36db065495 Reorder callbacks 2016-06-20 22:57:11 +02:00
twinaphex 974231ee72 move entries up 2016-06-20 22:51:48 +02:00
twinaphex 20e86afbf2 Cleanup 2016-06-20 22:27:44 +02:00
twinaphex 1fb2144a48 Refactor video_shader_parse_type 2016-06-20 22:17:03 +02:00
twinaphex f9d9070de8 command.c - cleanups 2016-06-20 22:04:59 +02:00
twinaphex 7ca00fafc0 Cleanup 2016-06-20 21:58:19 +02:00
twinaphex 9aa29d9fc5 runloop_check_shader_dir - cleanups 2016-06-20 21:54:06 +02:00
twinaphex c9f047edd3 Dehardcode more strings 2016-06-20 21:47:11 +02:00
twinaphex e3fa9ae5ee Update GLSM 2016-06-20 21:34:26 +02:00
twinaphex e35ecd5eb7 Correct title 2016-06-20 21:32:01 +02:00
twinaphex 10157c302b Dehardcode more strings 2016-06-20 21:29:27 +02:00
twinaphex d9651023c4 Fix action_get_title_input_binds_list 2016-06-20 21:17:28 +02:00
twinaphex 1bdf3d395d (menu_cbs_title.c) Dehardcode strings 2016-06-20 21:13:24 +02:00
twinaphex 6024eda7f9 Add more constant strings 2016-06-20 21:03:54 +02:00
Twinaphex 9bcf3fef44 Cleanup 2016-06-20 19:56:41 +02:00
twinaphex e7821f34ee Use generic_action_ok_file_load 2016-06-20 19:55:59 +02:00
twinaphex 67d98dbbea Use generic_action_ok_file_load 2016-06-20 19:54:04 +02:00
twinaphex 7e067aa000 Cleanups 2016-06-20 18:53:55 +02:00
twinaphex 8a7b73761d Cleanups 2016-06-20 18:48:30 +02:00
twinaphex 35ea096db7 Move hash around 2016-06-20 18:30:45 +02:00
twinaphex e892bf6e8b Add file_path_str.c to PSP Salamander 2016-06-20 18:14:13 +02:00
twinaphex c3eda56561 Move hashes over to msg_hash.c 2016-06-20 17:55:34 +02:00
twinaphex 003f1ba913 (PSP) Buildfix 2016-06-20 17:49:20 +02:00
twinaphex 68bf755fe7 Remove two unused hashes 2016-06-20 16:19:30 +02:00
twinaphex 07c218ad51 Remove two hashes 2016-06-20 16:18:04 +02:00
twinaphex d2c9c280fe No longer use CB_ hashes 2016-06-20 16:14:59 +02:00
twinaphex c2c59e8e16 Buildfix for consoles 2016-06-20 16:02:06 +02:00
twinaphex 9fafac8b60 Move hashes to C file 2016-06-20 15:53:57 +02:00
twinaphex a585017208 Rename MENU_FILE_ to FILE_TYPE_ 2016-06-20 15:50:37 +02:00
twinaphex f22755f31b Move enums around 2016-06-20 15:42:05 +02:00
twinaphex 450e1f4746 Rename menu_hash_to_file_type 2016-06-20 15:33:22 +02:00
twinaphex e59fb6c0d9 Bugfix 2016-06-20 15:22:31 +02:00
twinaphex 7d3780e09f Refactor some code in task_push_decompress 2016-06-20 15:21:42 +02:00
twinaphex 7d93f63e6a Move menu_hash_to_file_type to msg_hash 2016-06-20 06:44:05 +02:00
twinaphex 2ebd6e6f49 Header cleanups 2016-06-20 06:34:30 +02:00
twinaphex 4622d46ad3 Should silence Clang warning 2016-06-20 06:25:08 +02:00
twinaphex fa08613637 Indenting nits 2016-06-20 06:21:12 +02:00
twinaphex 390a7d76c6 (task_queue/RetroArch) Add ugly kludge so that we print progress 2016-06-20 06:16:46 +02:00
twinaphex 560f8dda60 Remove tasks_internal.c - no longer needed 2016-06-20 06:02:50 +02:00
twinaphex d2eeb6fab0 Create FILE_PATH_CORE_OPTIONS_CONFIG 2016-06-20 05:29:53 +02:00
twinaphex 35b078857d Create file_path_str.c 2016-06-20 05:20:14 +02:00
twinaphex b3188195a8 Create file_path_str 2016-06-20 05:11:01 +02:00
twinaphex c448beafa8 indent nits 2016-06-20 05:03:41 +02:00
twinaphex f764980eb8 Indenting nits 2016-06-20 04:51:36 +02:00
twinaphex ef4753dc05 Indenting nits 2016-06-20 04:41:43 +02:00
twinaphex 32c4f74f7d More translatable strings 2016-06-20 04:23:00 +02:00
twinaphex 59b8b3b9ed Add more translatable strings 2016-06-20 04:17:03 +02:00
twinaphex 3bf5a89901 Add more translatable strings 2016-06-20 04:07:49 +02:00
twinaphex cfd7b9c6c1 Add more translatable strings 2016-06-20 04:01:58 +02:00
twinaphex 46cdea48c2 Add more translatable strings 2016-06-20 03:54:42 +02:00
twinaphex e064207a59 Add missing files 2016-06-20 03:36:25 +02:00
twinaphex 284f8cfd23 Remove menu_hash_ files 2016-06-20 03:35:09 +02:00
twinaphex 69c82da160 (menu_hash) Prevent dereferences when settings is NULL 2016-06-20 03:10:26 +02:00
twinaphex 75b9a1312d (ui_win32.c) Buildfix 2016-06-20 02:46:25 +02:00
twinaphex 114cc081aa Avoid warning 'variable may be used uninitialized' 2016-06-20 02:45:07 +02:00
twinaphex 1fa36689d8 Remove hashes 2016-06-20 02:07:56 +02:00
twinaphex dce009ae78 Remove more hashes 2016-06-20 02:01:03 +02:00
twinaphex f442d8235f Remove more hashes 2016-06-20 01:54:54 +02:00
twinaphex f69f57c566 Get rid of more hashes 2016-06-20 01:49:22 +02:00
Twinaphex ed75a83e6a Remove unused variable 2016-06-20 01:30:12 +02:00
twinaphex 5075712cac Get rid of menu_hash_calculate - use msg_hash_calculate instead 2016-06-20 00:37:38 +02:00
twinaphex 65dff0a03a menu_hash_to_str_enum has now become msg_hash_to_str 2016-06-20 00:31:13 +02:00
twinaphex a741dadf20 Prevent dereference before null check 2016-06-19 23:09:19 +02:00
Alcaro 77d0745f38 Kill some warnings 2016-06-19 22:43:52 +02:00
twinaphex 43c25383e3 Take out CXX_BUILD for now - prevents compilation 2016-06-19 22:39:35 +02:00
twinaphex 462dda944c (menu_cbs_ok.c) Try to fix second memory leak 2016-06-19 22:30:57 +02:00
twinaphex 8644e8e26b (menu/cbs/menu_cbs_ok.c) Try to fix memory leak 2016-06-19 22:28:55 +02:00
twinaphex 096ca1851b Silence unitialized scalar variable 2016-06-19 22:24:16 +02:00
Alcaro 90dd86a66a Fix #3129 again 2016-06-19 22:09:52 +02:00
Alcaro 6949cfde68 C++ use means we use the C++ linker. Fixes #3129 2016-06-19 21:41:00 +02:00
twinaphex 31c1f31299 Improve MENU_NAVIGATION_CTL_ASCEND_ALPHABET - can no longer
get out of bounds, will now properly scroll down to end of
list if it can not jump alphabetically to the next letter and
there is still space to go to the end of the list
2016-06-19 00:25:52 +02:00
twinaphex b82f4daae9 Reimplement frontend_linux_get_mem_used 2016-06-19 00:15:04 +02:00
twinaphex 0d9b345ae0 Simplify frontend_linux_get_mem_total - get_mem_used still
wrong
2016-06-19 00:08:16 +02:00
twinaphex df57b3062a Correct frontend_linux_get_mem_total 2016-06-18 23:45:43 +02:00
Twinaphex 6c045ab24e Merge pull request #3127 from libretro/revert-3126-fix-snprintf-overlap
Revert "Fix overlap of source and destination buffers in snprintf call"
2016-06-18 23:14:28 +02:00
Twinaphex a52e55e909 Revert "Fix overlap of source and destination buffers in snprintf call" 2016-06-18 23:14:22 +02:00
Twinaphex d0697236f0 Merge pull request #3126 from nikola-kocic/fix-snprintf-overlap
Fix overlap of source and destination buffers in snprintf call
2016-06-18 23:14:07 +02:00
Nikola Kocić ebfb7652b0 Fix overlap of source and destination buffers in snprintf call 2016-06-18 22:53:49 +02:00
twinaphex b510b2fe26 Add menu_setting_get_enum_idx 2016-06-18 22:45:32 +02:00
twinaphex 442ebf2acf Create separate 'Core settings' 2016-06-18 22:17:50 +02:00
Twinaphex f4772f07f3 Buildfix to features_cpu.h 2016-06-18 19:42:04 +02:00
twinaphex 761ddc6f9c Cleanup 2016-06-18 19:31:25 +02:00
twinaphex 3a031c3b48 Cleanup 2016-06-18 19:07:51 +02:00
twinaphex 01f5d854e3 Cleanups 2016-06-18 19:02:51 +02:00
twinaphex cb848b9711 Remove unused variable 2016-06-18 18:46:43 +02:00
twinaphex b55c17e7c5 Cleanups 2016-06-18 18:45:11 +02:00
twinaphex 3b0983cf97 Create MENU_ENUM_LABEL_CB_MENU_WALLPAPER 2016-06-18 18:41:18 +02:00
twinaphex 3573050d28 Cleanups 2016-06-18 18:38:46 +02:00
twinaphex de8d2f2417 Remove a ton of callback string hashes 2016-06-18 18:30:50 +02:00
twinaphex 94cbeb754e Rewrite online updater code to no longer use hashes 2016-06-18 18:29:55 +02:00
twinaphex 94325f9466 Refactor action_ok_download_generic 2016-06-18 18:23:09 +02:00
twinaphex 7841427848 Add cb enums 2016-06-18 17:37:52 +02:00
twinaphex 7ef67f5a0f move hashes to menu_hash.h 2016-06-18 17:29:36 +02:00
twinaphex 177d1852b8 Add labels 2016-06-18 17:27:34 +02:00
twinaphex db7258d682 Move enums around 2016-06-18 17:24:15 +02:00
twinaphex 89b0b62429 Cleanups 2016-06-18 17:19:30 +02:00
twinaphex f207b1be2b Cleanups 2016-06-18 17:16:14 +02:00
twinaphex 2de1857ca6 Cleanups 2016-06-18 17:14:01 +02:00
twinaphex a77a8e0200 Remove hashes 2016-06-18 17:05:53 +02:00
twinaphex ab57f4b400 Cleanups 2016-06-18 17:03:52 +02:00
twinaphex 86b54d66ac Remove hashes 2016-06-18 16:59:42 +02:00
twinaphex 1c2548062f Remove more hashes 2016-06-18 16:55:02 +02:00
twinaphex b9b4c09212 Remove hashes 2016-06-18 16:54:06 +02:00
twinaphex 381ff665cd Remove hashes 2016-06-18 16:52:11 +02:00
twinaphex 40a73b3265 Cleanups 2016-06-18 16:50:03 +02:00
twinaphex 3c755d7cff Remove hash 2016-06-18 16:45:48 +02:00
twinaphex bcaebd2b76 Backport lollo78 Italian translation updates 2016-06-18 16:43:18 +02:00
twinaphex 05b64b8081 Move enums around 2016-06-18 16:05:46 +02:00
twinaphex 5429d3874c Cleanups 2016-06-18 15:56:26 +02:00
twinaphex c6f1fdb552 Reorganize enums 2016-06-18 15:53:50 +02:00
twinaphex 10bdcbff17 Order enums and hashes around 2016-06-18 15:44:53 +02:00
twinaphex 66ed9f46f0 Move hashes around 2016-06-18 15:17:46 +02:00
twinaphex 2a01112406 Remove hashes 2016-06-18 15:13:02 +02:00
twinaphex 02f8ba9393 Remove hashes 2016-06-18 15:11:47 +02:00
twinaphex 8556a4c5f0 Remove hashes 2016-06-18 15:04:22 +02:00
twinaphex 0845852806 remove hash 2016-06-18 15:00:51 +02:00
twinaphex a6ececc063 Remove hashes 2016-06-18 14:59:27 +02:00
twinaphex 57fd346492 Get rid of hash #2 2016-06-18 14:57:51 +02:00
twinaphex 6d79f1bab9 Get rid of hash 2016-06-18 14:57:27 +02:00
twinaphex 40476efc59 Cleanups 2016-06-18 14:47:23 +02:00
twinaphex ab5b90d3cd Cleanups 2016-06-18 14:46:32 +02:00
twinaphex c82387c747 Cleanups 2016-06-18 14:45:47 +02:00
Twinaphex bfd30161de Merge pull request #3124 from lakkatv/master
(Menu) Better key binding for the arcade joypad typing
2016-06-18 14:43:43 +02:00
Jean-André Santoni 49c4f45dc4 (Menu) Better key binding for the arcade joypad typing 2016-06-18 14:30:34 +02:00
Twinaphex c025f7a8c8 Merge pull request #3123 from lakkatv/master
(Menu) arcade like joypad typing
2016-06-18 12:30:16 +02:00
Jean-André Santoni 204f5cddfc (Menu) Update french translation 2016-06-18 11:55:43 +02:00
Jean-André Santoni f0ec4ea7de (Menu) arcade like joypad typing 2016-06-18 11:11:55 +02:00
twinaphex cb2d93b8fb Cleanup 2016-06-18 04:41:13 +02:00
twinaphex b5c63869ee CLeanups 2016-06-18 04:39:33 +02:00
twinaphex 8a06bd4104 Cleanups 2016-06-18 04:37:01 +02:00
twinaphex f28f364ec3 Cleanups 2016-06-18 04:35:31 +02:00
twinaphex 8ac995197a Cleanups 2016-06-18 04:33:44 +02:00
twinaphex 9c085512eb Remove dead hash 2016-06-18 04:23:26 +02:00
twinaphex ba94acc631 Cleanups 2016-06-18 04:22:03 +02:00
twinaphex 9feffb4f89 Remove dead hashes 2016-06-18 04:20:59 +02:00
twinaphex 1be6453450 Cleanups 2016-06-18 04:19:33 +02:00
twinaphex 766ad7fe3e Remove more dead code 2016-06-18 04:18:30 +02:00
twinaphex 1186cf645e Remove hashes 2016-06-18 04:17:30 +02:00
twinaphex 433186c2b0 Remove hashes 2016-06-18 04:15:21 +02:00
twinaphex 4b8ca83567 Remove hash 2016-06-18 04:15:01 +02:00
twinaphex 51356fb293 Cleanups 2016-06-18 04:12:56 +02:00
twinaphex 5b849a82b0 Remove hash 2016-06-18 04:11:08 +02:00
twinaphex 28538b95a7 Use MENU_ENUM_LABEL_CONTENT_ACTIONS 2016-06-18 04:09:07 +02:00
twinaphex 054781c3f3 Cleanups 2016-06-18 04:06:32 +02:00
twinaphex 7e675b4f8a Cleanups 2016-06-18 03:51:54 +02:00
twinaphex 3ee6a64b8c Remove hash 2016-06-18 03:28:26 +02:00
twinaphex 66c09aa7e8 Cleanup labels 2016-06-18 03:26:22 +02:00
twinaphex 87b9e1310d Remove MENU_LABEL_VALUE_* 2016-06-18 03:13:23 +02:00
twinaphex 04d46957cc Fix core updater list 2016-06-18 03:12:32 +02:00
twinaphex 63a4bea997 Remove hash 2016-06-18 03:06:53 +02:00
twinaphex 8e0ad1b1fd Add translatable strings 2016-06-18 03:05:44 +02:00
Twinaphex 69c148f9a3 Merge pull request #3119 from fr500/master
android platform driver improvements
2016-06-18 02:45:43 +02:00
twinaphex 6831b51649 Remove hashes 2016-06-18 02:40:02 +02:00
twinaphex 3328d88c68 Remove hashes 2016-06-18 02:30:12 +02:00
twinaphex 8c75bc7618 Cleanups 2016-06-18 02:20:13 +02:00
twinaphex 9456f05991 Move menu hashes to menu_hash.h 2016-06-18 02:13:28 +02:00
twinaphex 7297ced92a Set menu_displaylist_info_t's enum_idx 2016-06-17 23:47:23 +02:00
twinaphex f76e7549ce Move more code over to menu_hash_to_file_type 2016-06-17 23:27:17 +02:00
twinaphex 14b0b75fe9 Move more code over to menu_hash_to_file_type 2016-06-17 23:24:15 +02:00
twinaphex 99f1d6123e Create menu_hash_to_file_type 2016-06-17 23:16:59 +02:00
twinaphex e122fd95dd Fix savestate options 2016-06-17 22:36:13 +02:00
twinaphex c25eca9d10 Add another debug log for menu_cbs 2016-06-17 22:23:55 +02:00
twinaphex ff36aa94e5 (Android) Buildfixes 2016-06-17 22:12:06 +02:00
twinaphex 643557d9d6 (menu_cbs_start.c) Remove #if 0 2016-06-17 21:07:02 +02:00
twinaphex ca2c2feda5 Start using entry.enum_idx 2016-06-17 21:05:28 +02:00
twinaphex 60cfc95c1c menu_entry_get - add enum_idx to member struct 2016-06-17 21:03:00 +02:00
twinaphex 4700ff55a1 Start getting rid of MENU_LABEL_ dependencies 2016-06-17 20:58:38 +02:00
twinaphex b3d7a2cb6f Add enum_idx to menu_displaylist_info 2016-06-17 20:53:59 +02:00
twinaphex 79bd87e12a Reduce further dependence on MENU_VALUE_ 2016-06-17 20:50:36 +02:00
twinaphex 41c7d76017 Reduce dependence on MENU_VALUE_ 2016-06-17 20:43:42 +02:00
twinaphex 84e3a8c717 Kill dependence on MENU_VALUE_* values 2016-06-17 20:31:53 +02:00
twinaphex fd40636f76 Don't rely on MAIN_VALUE 2016-06-17 20:27:52 +02:00
twinaphex 7358b598ed Get rid of some dead code 2016-06-17 20:18:46 +02:00
twinaphex bc5194fe6f Remove obsolete code 2016-06-17 20:17:18 +02:00
twinaphex b606d47622 Don't rely on 'value' setting 2016-06-17 20:15:35 +02:00
twinaphex f7f56edffd Make 'Add tab' translatable 2016-06-17 20:11:47 +02:00
twinaphex c480e940ef Add ability to translate Playlists tab 2016-06-17 20:07:00 +02:00
twinaphex 4ef5b42cab Can now translate 'Settings tab' 2016-06-17 20:01:48 +02:00
twinaphex 1acc59b598 We can translate the History Tab label now 2016-06-17 19:57:48 +02:00
twinaphex e3954eda54 Fix titles when Settings / History tab are selected 2016-06-17 19:00:43 +02:00
Alcaro a2947da8ec Fix command_read_ram if core doesn't use the mem map envs. 2016-06-17 18:50:59 +02:00
twinaphex 07b655f03d Add new enum values 2016-06-17 18:26:13 +02:00
twinaphex 0eb847e9b1 We can translate 'Main Menu' now 2016-06-17 18:11:52 +02:00
twinaphex f190d2ebbc Start using MENU_ENUM_LABEL_VALUE_SETTINGS 2016-06-17 18:02:30 +02:00
twinaphex bc8cf99ddd Start using MENU_ENUM_LABEL_MAIN_MENU 2016-06-17 17:59:12 +02:00
twinaphex 8e9adba956 Start not using LABEL_VALUE_ for querying settings groups 2016-06-17 17:55:25 +02:00
twinaphex ee90fa3015 Remove entry 2016-06-17 17:45:42 +02:00
twinaphex a94b2a47f1 Remove #if 0 ifdefs 2016-06-17 17:43:53 +02:00
twinaphex ac26746106 Cleanup 2016-06-17 17:30:10 +02:00
radius 929f26742f respect 80 character limit 2016-06-17 09:43:51 -05:00
radius eb0ea9d738 logger is not available at this stage, use android logging here instead 2016-06-17 09:31:44 -05:00
radius b0932af025 fix internal storage messages 2016-06-17 09:27:39 -05:00
twinaphex 796c06e01e Cleanup 2016-06-17 16:19:48 +02:00
twinaphex 3b3e822d78 Expand menu_entries_get_last_stack so we can grab enum_idx 2016-06-17 16:08:47 +02:00
twinaphex 03b93b224c Fix setting directories/paths 2016-06-17 15:54:31 +02:00
twinaphex e94873727e generic_action_ok - cleanup 2016-06-17 15:36:06 +02:00
Twinaphex a48ea15497 Buildfix #1 2016-06-17 15:33:42 +02:00
twinaphex 13bbf9d18f Cleanups 2016-06-17 15:17:20 +02:00
twinaphex 8357467937 (menu_cbs.c) Turn off debug log 2016-06-17 15:13:50 +02:00
twinaphex 1000c08a7f Get rid of menu_entry_pathdir_set_value 2016-06-17 15:10:49 +02:00
twinaphex 4ec1a9e337 Update menu_entries_prepend 2016-06-17 14:54:29 +02:00
twinaphex b872260bf3 Update menu_entry_pathdir_set_value 2016-06-17 14:34:28 +02:00
twinaphex 96073cf057 Revert "playlist: Fix memory leak due to unallocated playlist entry strings"
This reverts commit 0adee8b775.
2016-06-17 14:24:35 +02:00
Twinaphex eee57a77ad Merge pull request #3117 from sronsse/fixes_for_team
playlist: Fix memory leak due to unallocated playlist entry strings
2016-06-17 13:31:38 +02:00
Sebastien Ronsse 0adee8b775 playlist: Fix memory leak due to unallocated playlist entry strings 2016-06-17 13:37:46 +10:00
twinaphex 3d784d41d3 Turn back to 0 2016-06-17 04:40:19 +02:00
Twinaphex c3e2052ac3 (OSX) Silence warnings 2016-06-17 04:07:00 +02:00
twinaphex 0305770f4b Create separate video / audio menu code 2016-06-17 04:02:26 +02:00
twinaphex cd35bfaecb Cleanups 2016-06-17 02:52:08 +02:00
twinaphex e01668701f Add enum_idx for main menu 2016-06-17 02:46:17 +02:00
twinaphex 6f405da27d Use menu_hash_to_str_enum for code 2016-06-17 02:37:22 +02:00
twinaphex 59fd4b30d9 Cleanup 2016-06-17 02:34:22 +02:00
twinaphex 7e822f8126 Update 2016-06-17 02:25:27 +02:00
twinaphex 39742dae1f Update GLSM 2016-06-17 02:18:17 +02:00
twinaphex 4676d16f8d CXX_BUILD linker fixes 2016-06-17 01:20:14 +02:00
twinaphex 6131dde4d8 Cleanup 2016-06-17 01:07:52 +02:00
twinaphex 795bdd351b Cleanups 2016-06-17 01:04:54 +02:00
twinaphex d88b6c9921 Cleanup 2016-06-17 00:57:35 +02:00
twinaphex 313e2f12b9 Cleanups 2016-06-17 00:55:39 +02:00
twinaphex 5a9daac855 Cleanups 2016-06-17 00:48:51 +02:00
twinaphex 9d1f35e901 Cleanup 2016-06-17 00:17:14 +02:00
twinaphex 7a1705c4e0 Cleanups 2016-06-17 00:11:16 +02:00
twinaphex 9222aa3cd2 Add more strings 2016-06-16 23:21:51 +02:00
twinaphex b3858c5173 Add extra labels 2016-06-16 22:49:41 +02:00
twinaphex b436200887 It should be possible now to select input settings when user
language is not English
2016-06-16 22:43:45 +02:00
twinaphex 8545a58c41 Refactor input user binds settings 2016-06-16 22:32:27 +02:00
twinaphex f80adc7eba Unroll lists 2016-06-16 22:20:26 +02:00
twinaphex a12ebdaf5b Add PARSE_ONLY_STRING 2016-06-16 22:14:31 +02:00
twinaphex ae2be8b53b Replace most menu_entries_add function calls 2016-06-16 22:03:12 +02:00
twinaphex 844656255c Use menu_entries_add_enum 2016-06-16 21:55:40 +02:00
twinaphex a9ccc00216 Use menu_entries_add_enum 2016-06-16 21:45:11 +02:00
twinaphex a7ced34810 Create title for separate driver settings list 2016-06-16 21:42:31 +02:00
twinaphex fef0d968cd Create DEFERRED_DRIVER_SETTINGS_LIST 2016-06-16 21:40:13 +02:00
twinaphex 8fb7285577 Change to parse_settings_enum 2016-06-16 21:11:38 +02:00
twinaphex 0f37ee5fef Start using enum function 2016-06-16 21:08:49 +02:00
twinaphex 18b5ab2265 Create menu_displaylist_parse_settings_internal_enum 2016-06-16 21:01:55 +02:00
twinaphex 395c601159 Change more menu_entries_add calls into menu_entries_add_enum 2016-06-16 20:43:02 +02:00
twinaphex 697a753ecc Convert more to menu_entries_add_enum 2016-06-16 20:29:44 +02:00
twinaphex 0ab069d9fd Use menu_entries_add_enum 2016-06-16 20:22:53 +02:00
twinaphex bba9610199 Add alternatives for label checking 2016-06-16 20:14:15 +02:00
twinaphex 269faab4ab Update menu_cbs_deferred_push.c 2016-06-16 17:54:06 +02:00
twinaphex 3ecb515307 Update menu_cbs_get_value.c 2016-06-16 17:52:32 +02:00
twinaphex d8e5d9cf42 Start creating code in menu_cbs_ok.c so we will bind action
callbacks depending on enum
2016-06-16 17:50:53 +02:00
twinaphex 2e6b7cf413 Set enum_idx to MENU_ENUM_LABEL_UNKNOWN when using menu_entries_add 2016-06-16 17:41:57 +02:00
twinaphex f56ab959b7 Move fragment_program_blur program to separate file 2016-06-16 17:04:30 +02:00
twinaphex 8e454f7127 Simplify fft_build_params 2016-06-16 16:55:36 +02:00
twinaphex 72355683a3 (GLSM) GLuint64 might not be available depending on which GLES
version we are targeting
2016-06-16 16:34:31 +02:00
twinaphex 4282fd0c21 Cleanups 2016-06-16 16:33:39 +02:00
twinaphex bf708362b4 (XMB/MaterialUI) CLeanups 2016-06-16 16:31:59 +02:00
twinaphex 782f17ec23 Dehardcode some strings 2016-06-16 16:02:16 +02:00
twinaphex 4a552b66ff Use menu_entries_add_enum 2016-06-16 15:43:05 +02:00
twinaphex 64cb4b53df Start using menu_entries_add_enum for cheevos 2016-06-16 15:33:16 +02:00
twinaphex 2d61c6d2ed general_write_handler - use enum_idx and don't use menu_hash_calculate
anymore
2016-06-16 15:00:35 +02:00
twinaphex 992adbc2d4 Rewrite general_read_handler 2016-06-16 14:35:53 +02:00
twinaphex 88112c5732 COrrect typo 2016-06-16 14:30:51 +02:00
twinaphex 63d8020fa0 Remove last remnants of menu_hash_to_str 2016-06-16 13:48:36 +02:00
twinaphex 3320e44329 Get rid of last menu_hash_to_str instance 2016-06-16 13:41:53 +02:00
twinaphex b6972f9926 Cleanup 2016-06-16 13:37:33 +02:00
twinaphex f19d96d3c4 DOn't use MENU_VALUE_DETECT 2016-06-16 13:30:56 +02:00
twinaphex c67c37d641 Get rid of one more menu_hash_to_str instance 2016-06-16 13:28:04 +02:00
twinaphex e2d8a1b961 Use menu_hash_to_str_enum 2016-06-16 13:23:51 +02:00
twinaphex d59f137e69 Use menu_hash_to_str_enum for determining root 2016-06-16 13:18:09 +02:00
twinaphex 2acb04649e Add MENU_ENUM_LABEL_MAIN_MENU 2016-06-16 13:13:43 +02:00
twinaphex 707c56dab3 Start using menu_entries_add_enum 2016-06-16 13:09:35 +02:00
twinaphex 1ae4d9b22a Cleanups 2016-06-16 12:58:52 +02:00
twinaphex fce884775c Use menu_hash_to_str_enum 2016-06-16 12:56:10 +02:00
twinaphex 9b75ec2a77 Use menu_hash_to_str 2016-06-16 12:50:25 +02:00
twinaphex 547e240296 (menu_setting.c) Use menu_hash_to_str_enum for everything but parent_group values now 2016-06-16 12:23:10 +02:00
twinaphex 2afecd8c57 Use menu_hash_to_str_enum 2016-06-16 12:07:49 +02:00
Twinaphex c22c7688a8 Merge pull request #3116 from vanfanel/master
VIDEO/DISPMANX: Make the HW Bilinear Filtering setting work.
2016-06-16 11:38:42 +02:00
vanfanel c097eed755 VIDEO/DISPMANX: Make the HW Bilinear Filtering setting work. 2016-06-16 11:37:02 +02:00
rz5 362f50caf2 Merge pull request #2 from RobLoach/undo
Fix the Merge conflict
2016-06-16 03:42:53 +01:00
Rob Loach 5f41c35190 Merge branch 'master' of github.com:rz5/RetroArch into undo
Conflicts:
	msg_hash.h
2016-06-15 20:33:55 -04:00
twinaphex 4feaeae2a3 Cleanup - use menu_hash_to_str_enum 2016-06-16 02:12:46 +02:00
twinaphex abd1776240 (menu_setting.c) Use menu_hash_to_str_enum 2016-06-16 01:33:11 +02:00
twinaphex e91d9d5637 Don't bake in GLFFT for HAVE_GLES right now 2016-06-16 01:08:11 +02:00
twinaphex f14a97ecf4 Update menu_setting.c 2016-06-16 00:41:58 +02:00
twinaphex 66a116deca Use menu_hash_to_str_enum 2016-06-16 00:29:14 +02:00
twinaphex cfd34334a4 Use menu_hash_to_str_enum 2016-06-16 00:24:19 +02:00
twinaphex a24107b22a Use more menu_hash_to_str_enum 2016-06-16 00:17:46 +02:00
twinaphex 3fac600038 Use menu_hash_to_str_enum 2016-06-16 00:12:51 +02:00
twinaphex d5c2d85fbb Use menu_hash_to_str_enum 2016-06-16 00:10:10 +02:00
twinaphex 65d33f33c9 Buildfix 2016-06-16 00:04:13 +02:00
twinaphex 064aa8f9fa (More) use menu_hash_to_str_enum 2016-06-15 23:50:39 +02:00
twinaphex 6cc02cd400 Use menu_hash_to_str_enum 2016-06-15 23:46:18 +02:00
twinaphex e1316cb7ba Use menu_hash_to_str_enum 2016-06-15 23:43:24 +02:00
twinaphex e92d240f08 Use menu_hash_to_str_enum 2016-06-15 23:39:20 +02:00
twinaphex db679a85f3 (menu/drivers) Use menu_hash_to_str_enum 2016-06-15 23:34:47 +02:00
twinaphex 9aece7b695 Replace more menu_hash_to_str usage 2016-06-15 23:31:05 +02:00
twinaphex c05742c1fc Start using menu_hash_to_str_enum 2016-06-15 23:25:31 +02:00
twinaphex dcbba1a261 Buildfix for enum functions 2016-06-15 23:12:38 +02:00
twinaphex 99d09f779f Create enum function of US pseudo strings 2016-06-15 23:08:19 +02:00
twinaphex 619b8a42e0 Create PT/NL enum functions 2016-06-15 23:05:08 +02:00
twinaphex b0f07a3106 Create IT/FR enum functions 2016-06-15 23:00:18 +02:00
twinaphex 85612fc84f Create menu hash ES enum function 2016-06-15 22:47:30 +02:00
twinaphex 6be45c9392 Create pl enum function 2016-06-15 22:41:23 +02:00
twinaphex 2d55e35201 Create DE/EO enum string functions 2016-06-15 22:38:52 +02:00
twinaphex e3b4a79b1b Indenting nit 2016-06-15 22:29:38 +02:00
twinaphex 455b28eaca Update complex.h 2016-06-15 21:37:03 +02:00
twinaphex 962c52c5ae Move math/complex.h to libretro-common 2016-06-15 21:35:48 +02:00
twinaphex 58dae07212 (GL FFT) Cleanup struct 2016-06-15 21:26:45 +02:00
twinaphex 86e2925cf5 (FFT) Move more shaders to separate files 2016-06-15 21:08:27 +02:00
twinaphex 7e31e71d5b Split up more into files 2016-06-15 20:54:37 +02:00
twinaphex 38ab9c8003 (FFT/GLSL) Start moving shaders to separate files 2016-06-15 20:23:26 +02:00
twinaphex c05f873dff (FFT) Indenting nits 2016-06-15 20:15:21 +02:00
twinaphex 417439ba60 (FFT) Use filters.h from libretro-common 2016-06-15 20:00:01 +02:00
twinaphex c819686ba4 Add FFT for Griffin too 2016-06-15 19:34:23 +02:00
twinaphex 1534ec916b Include GL FFT when GL and ffmpeg builtin core are enabled 2016-06-15 19:32:59 +02:00
twinaphex 69c983a741 Fix libretro-ffmpeg Makefile 2016-06-15 19:21:06 +02:00
twinaphex 2f08e760ff Start adding FFT visualizer for libretro-ffmpeg - unforunately
depends on glm for now and is C++-based, no way around that for now
2016-06-15 19:16:27 +02:00
twinaphex 5ddec4efc2 Create menu_content_load_from_playlist 2016-06-15 18:58:18 +02:00
twinaphex 0e5e45595e Cleanup 2016-06-15 18:55:20 +02:00
twinaphex df9f1585de Simplify menu_content_find_first_core 2016-06-15 18:52:27 +02:00
twinaphex a8042bdc0c Create CONTENT_MODE_LOAD_NOTHING_WITH_NEW_CORE_FROM_MENU 2016-06-15 18:17:01 +02:00
twinaphex 49ceee1206 Rename two callbacks 2016-06-15 18:07:00 +02:00
twinaphex 53e46676f5 Group CONFIG_PATH behavior together 2016-06-15 17:56:15 +02:00
twinaphex f7d3ded79c Start grouping CONFIG_DIR behavior together 2016-06-15 17:52:22 +02:00
twinaphex c6196152e9 Get rid of some unnecessary calls 2016-06-15 17:43:08 +02:00
twinaphex d3d5d80e62 (video_driver.c) Buildfix 2016-06-15 17:40:09 +02:00
twinaphex 5b5cde28ce Add enum setting_flags parameter to CONFIG_BOOL function 2016-06-15 17:38:59 +02:00
twinaphex 61b7d13086 Cleanup to menu_settings_find_internal functions 2016-06-15 17:15:05 +02:00
twinaphex dd04705d25 Turn menu_settings_list_current_add_enum_idx into public scope
function so we can use it in gfx/video_driver.c
2016-06-15 17:13:28 +02:00
Twinaphex 177c96a382 Fix 'value stored to variable 'playlist' is never read' warning 2016-06-15 17:07:10 +02:00
Twinaphex 8e1e20fc5d remove unused variable name 2016-06-15 17:06:20 +02:00
twinaphex f8448dc7f3 Bugfix - should pass exact enum type 2016-06-15 17:04:22 +02:00
twinaphex 8720048b4e menu_entries_prepend - use menu_setting_find_enum if enum_idx
is set
2016-06-15 16:45:27 +02:00
twinaphex 6f3b8c4049 Set cbs->enum_idx when setting a menu entry with menu_entries_add_enum 2016-06-15 16:43:02 +02:00
twinaphex e1002719c0 Use menu_entries_add_enum 2016-06-15 14:59:49 +02:00
twinaphex 3864574541 Remove DISPLAYLIST_SETTING 2016-06-15 14:55:13 +02:00
twinaphex 5f064245c8 xmb_menu_init_list - use menu_entries_add_enum 2016-06-15 14:41:42 +02:00
Twinaphex def3ea9f0a Merge pull request #3113 from vanfanel/master
VIDEO/DISPMANX: Fixed segfault when loading new core and content from…
2016-06-15 14:35:40 +02:00
vanfanel 03dd7d4b51 VIDEO/DISPMANX: Fixed segfault when loading new core and content from RGUI 2016-06-15 14:28:13 +02:00
twinaphex 34d9daf7e3 Start using menu_entries_add_enum for most entries 2016-06-15 14:23:13 +02:00
twinaphex 8adda6e822 Create menu_hash_to_str_us_enum 2016-06-15 13:04:16 +02:00
twinaphex 277e46badc (XMB/MaterialUI) Use DISPLAYLIST_SETTING_ENUM 2016-06-15 10:57:59 +02:00
twinaphex 5435a1ad7d (XMB) Start using DISPLAYLIST_SETTING_ENUM 2016-06-15 01:52:42 +02:00
twinaphex e64b5cc62f Use DISPLAYLIST_SETTING_ENUM 2016-06-15 01:49:34 +02:00
twinaphex ef808b6591 Add DISPLAYLIST_SETTING_ENUM 2016-06-15 01:44:30 +02:00
twinaphex 2071f8eaaf Refactor menu_displaylist_parse_settings 2016-06-15 01:41:31 +02:00
twinaphex 3625158e63 Revert "Create menu_displaylist_parse_settings_enum"
This reverts commit aeffde9b3e.
2016-06-15 01:36:47 +02:00
twinaphex aeffde9b3e Create menu_displaylist_parse_settings_enum 2016-06-15 01:33:43 +02:00
twinaphex 1159ca17ff Start using menu_entries_add_enum 2016-06-15 01:15:37 +02:00
twinaphex fef343ff9e Create menu_setting_find_enum 2016-06-15 01:06:58 +02:00
twinaphex 0ee7eeb450 Cleanup unused variable warning 2016-06-15 00:57:54 +02:00
twinaphex 49a2a61354 (Android) Buildfix 2016-06-15 00:57:09 +02:00
twinaphex fa46693f77 Add enum_idx values 2016-06-15 00:52:15 +02:00
twinaphex 8910e66eb0 Add more enum idxs 2016-06-14 23:47:42 +02:00
twinaphex 91e9b22b02 Add menu_settings_list_current_add_enum_idx 2016-06-14 23:07:10 +02:00
twinaphex 9508730682 Create enum_idx 2016-06-14 23:04:53 +02:00
twinaphex 53dac26509 Get rid of menu_hash_calculate for detecting if a playlist entry
has core_name and core_path set to 'DETECT'
2016-06-14 22:54:43 +02:00
twinaphex 042ebca2ef Create action_ok_playlist_entry_collection 2016-06-14 22:48:25 +02:00
twinaphex 69503880f5 Get rid of menu_hash_calculate dependencies for menu keyboard
callback functions for settings
2016-06-14 22:16:07 +02:00
twinaphex 27ef0cf9c7 Get rid of menu_hash_calculate dependency in find_first_core 2016-06-14 22:11:10 +02:00
twinaphex fcda911a10 Revert "Start breaking up menu_displaylist_push_internal into separate"
This reverts commit 244b147b0c.
2016-06-14 19:09:47 +02:00
twinaphex ca4f719811 Revert "Set callback for action_refresh_playlist"
This reverts commit cb915e2998.
2016-06-14 19:09:37 +02:00
twinaphex cb915e2998 Set callback for action_refresh_playlist 2016-06-14 18:55:24 +02:00
twinaphex 244b147b0c Start breaking up menu_displaylist_push_internal into separate
functions
2016-06-14 18:51:16 +02:00
twinaphex c65fc21bac Add menu-refactor.diff 2016-06-14 17:59:02 +02:00
twinaphex 2bf2131224 Refactor msg_hash 2016-06-14 15:04:49 +02:00
Twinaphex f30aae9c8d Merge pull request #3110 from Themaister/master
Log which present modes are supported.
2016-06-13 22:03:27 +02:00
Hans-Kristian Arntzen 21be54501b Log which present modes are supported. 2016-06-13 22:00:32 +02:00
Twinaphex 118022ae88 Merge pull request #3107 from RobLoach/no-achievement-msg
Remove "This game doesn't feature achievements" message
2016-06-13 20:06:32 +02:00
Twinaphex 6c6cca33a1 Merge pull request #3109 from Themaister/master
Fix various Android Vulkan issues.
2016-06-13 20:05:05 +02:00
Hans-Kristian Arntzen e7b4f4fd4d Fix various Android Vulkan issues.
Was getting bogus swapchain width/height causing weird issues.
Also, create swapchain after swap interval is correctly set.
2016-06-13 19:51:44 +02:00
Rob Loach 9970e9c089 Remove "This game doesn't feature achievements" message 2016-06-13 11:59:11 -04:00
twinaphex 3ca57ddd84 Correct frontend_win32_get_mem_used 2016-06-12 21:51:08 +02:00
Twinaphex c50aa6f088 Merge pull request #3102 from thiolliere/master
resolve deadlink in readme.md
2016-06-12 21:20:08 +02:00
twinaphex 8ddafd0023 Cleanup 2016-06-12 21:00:52 +02:00
twinaphex dae55553b7 Rename memory_free to memory_used 2016-06-12 20:50:03 +02:00
twinaphex 040798cdb9 (GX) Implement get_mem_total/get_mem_free 2016-06-12 20:46:51 +02:00
thiolliere 75cdcf25ad resolve deadlink in readme.md 2016-06-12 20:44:55 +02:00
twinaphex 2b37c92a64 (Win32) Implement get_mem_total/get_mem_free 2016-06-12 20:39:23 +02:00
Twinaphex 3c71f273a1 Merge pull request #3101 from gouchi/master
Add French messages
2016-06-12 20:22:07 +02:00
neville 35b48bca2c (OSX PPC) Buildfix 2016-06-12 19:38:30 +02:00
gouchi e8988e29da Add French messages 2016-06-12 19:35:57 +02:00
Twinaphex b11bfc8a73 Add ui_companion_driver_get_main_window 2016-06-12 19:29:07 +02:00
twinaphex 8431b63235 Exclude this code for OSX PPC for now 2016-06-12 18:52:30 +02:00
Twinaphex a01985273b Implement frontend_darwin_get_mem_free 2016-06-12 18:42:03 +02:00
Twinaphex 19d4498d2c (iOS) Buildfix 2016-06-12 14:17:07 +02:00
twinaphex 6283cb5eef Get rid of warnings 2016-06-12 13:50:29 +02:00
Twinaphex ae894fb015 Implement frontend_darwin_get_mem_total 2016-06-12 13:49:00 +02:00
twinaphex d7c2201385 Show memory information in System Information 2016-06-12 13:20:54 +02:00
twinaphex c3056a0d06 Add free_memory function 2016-06-12 12:45:13 +02:00
twinaphex 9a25826ae9 Create get_mem_free callback 2016-06-12 12:44:28 +02:00
twinaphex f0e05ecbc8 Start adding get_total_mem callback 2016-06-12 02:33:07 +02:00
twinaphex 94545127a6 Ifdef __builtin_ctz to not be used for consoles 2016-06-11 22:21:04 +02:00
twinaphex 0c87175a61 Remove unused variables 2016-06-11 22:19:40 +02:00
twinaphex 7dc6d0f369 Cleanup 2016-06-11 22:00:29 +02:00
twinaphex 6f8b6a22b7 Creat APPLICATION_SPECIAL_DIRECTORY_CONFIG 2016-06-11 21:55:55 +02:00
twinaphex 7c904d47c2 Cleanups 2016-06-11 21:51:28 +02:00
twinaphex 8badf1787d CLeanups 2016-06-11 21:11:57 +02:00
twinaphex 917e3078e9 Cleanups 2016-06-11 21:08:57 +02:00
twinaphex 8990736e66 Cleanups 2016-06-11 20:34:49 +02:00
twinaphex 8cfb5b2922 Cleanups 2016-06-11 20:22:03 +02:00
twinaphex 1e13cb9c69 Cleanups 2016-06-11 20:21:22 +02:00
twinaphex deda6fdf01 Cleanups 2016-06-11 20:16:34 +02:00
twinaphex 3d2cc8b14a Cleanups 2016-06-11 20:11:36 +02:00
twinaphex 5b76402e6b Remove unused variables 2016-06-11 20:03:11 +02:00
twinaphex 7d0cb7c689 More cleanups 2016-06-11 20:01:33 +02:00
twinaphex f3815ed815 Add APPLICATION_SPECIAL_DIRECTORY_ASSETS_MATERIALUI_FONT 2016-06-11 19:57:45 +02:00
twinaphex 5ea923030b Rename functions/enums 2016-06-11 19:55:27 +02:00
twinaphex 538a8d9e18 (XMB) Cleanups 2016-06-11 19:50:44 +02:00
twinaphex c254c69c1a Use fill_pathname_application_path 2016-06-11 19:46:37 +02:00
twinaphex ecb5c1adc0 Cleanups 2016-06-11 19:43:14 +02:00
twinaphex 92bba6e46e (MaterialUI) Use fill_pathname_application_directory 2016-06-11 19:41:26 +02:00
twinaphex 78904911ca Start using fill_pathname_application_directory 2016-06-11 19:37:16 +02:00
twinaphex 6989d60cdc Create fill_pathname_application_directory 2016-06-11 19:21:58 +02:00
Arzed Five 0d3a866356 Corrected a mistake, added some more error checking. 2016-06-11 17:21:09 +01:00
twinaphex 89e3ce381d Make Python optional 2016-06-11 14:09:04 +02:00
Arzed Five 8e20b9e938 Both Undo options now write distinct messages in the OSD when buffers
are empty, when undoing fails and when undoing is successful.

Aside from some TODO/FIXME areas added by this fork, the features in the
fork are now complete.
2016-06-10 20:12:43 +01:00
Arzed Five 8a0b258fcd Merge remote-tracking branch 'upstream/master' 2016-06-10 19:30:03 +01:00
twinaphex cab9e0645c (qt) Add headers 2016-06-10 12:11:28 +02:00
twinaphex e1733697c3 (Qt) window - Start stub-implementing this 2016-06-10 10:22:49 +02:00
twinaphex 43dbbc20e0 (Qt) Add QtWindow class 2016-06-10 10:15:38 +02:00
twinaphex 0f90a3352b Create Qt5 implementation of msg window 2016-06-10 09:47:16 +02:00
twinaphex a66a46ca25 Start implementing ui_qt_application.cpp 2016-06-10 08:38:27 +02:00
twinaphex 6e9a4ef4a0 Revert "use printf here instead"
This reverts commit fec9c0c42b.
2016-06-10 07:54:08 +02:00
radius fec9c0c42b use printf here instead 2016-06-10 00:40:53 -05:00
twinaphex 7fbc9097f6 This can go 2016-06-10 06:17:49 +02:00
radius 53efdc11f0 improve platform driver logging for android 2016-06-09 22:59:36 -05:00
radius 6bd20c5aff try fixing android initialization 2016-06-09 20:02:04 -05:00
radius 490ba62973 log this later 2016-06-09 19:39:57 -05:00
radius 45fa93543c log path too 2016-06-09 19:29:22 -05:00
radius d9ebecb0ea fix indentation 2016-06-09 19:24:36 -05:00
radius 7bab58b4bf use string is empty here too 2016-06-09 19:22:43 -05:00
radius a7ff4da4c5 android platform driver cleanup 2016-06-09 19:21:39 -05:00
twinaphex acf0a74e6d Add ui_qt_application 2016-06-09 20:18:08 +02:00
twinaphex 69f32c3a35 Add qt/ui_qt_window.cpp 2016-06-09 20:11:26 +02:00
twinaphex b4085b6118 Hide Qt wrapper code behind an ifdef - HAVE_QT_WRAPPER, set this to
1 in Makefile.common in order to use it
2016-06-09 19:51:50 +02:00
Arzed Five 83a1d9ac1f Clean up some stuff, add comments, reduce the places where
content_reset_backup_buffers is called, try to make the undo messages
nicer.

* I'm trying to write to differentiate read/write errors from empty
buffer errors. I changed command.c and task_save_state.c so the
content_undo funcs are the ones writting the success messages.

I was told to use runloop_msg_queue_push() to write to the OSD, but that
doesn't seem to be working.
2016-06-09 16:14:40 +01:00
twinaphex c011090ebb ui_application - add initialize 2016-06-09 15:22:03 +02:00
twinaphex f183fab022 (Win32) Cleanups 2016-06-09 12:37:46 +02:00
twinaphex 50a2091cc6 (Win32) Implement browser window 2016-06-09 12:34:39 +02:00
Twinaphex 4481486071 (OSX) openDocument - cleanup 2016-06-09 10:57:02 +02:00
rz5 fa883d62fc Merge pull request #1 from fr500/undo
Undo cleanups
2016-06-09 09:20:29 +01:00
twinaphex e4f25d9984 Add new versions of whitespace trimming functions 2016-06-09 08:01:55 +02:00
radius 4ad2eba602 cleanups 2016-06-08 23:02:19 -05:00
Andrés 035f6ca210 Merge pull request #1 from rz5/master
rz5 implementation of undo
2016-06-08 22:27:21 -05:00
twinaphex a63fcc36aa Remove string functions 2016-06-09 04:35:39 +02:00
Twinaphex 7c92289a96 Buildfix 2016-06-09 03:54:40 +02:00
Arzed Five 9944ec98fd Both undo options print messages now. Undo Load State can now also be
undone ad infinitum. Doing it in succession swaps the current state for
the backed up state.
2016-06-09 00:38:27 +01:00
Arzed Five 8c5238c349 Undo Load State and Undo Save State both seem to be working. 2016-06-08 23:03:49 +01:00
Arzed Five 051cc3fe4d Undo Save State currently seems to be working almost as intended
(missing OSD messages). Undo Load State isn't working yet.
2016-06-08 20:27:54 +01:00
Alcaro b70c5b7529 We're including the ctype headers already, let's use them. 2016-06-08 19:42:09 +02:00
Alcaro 152adc953c Someone forgot something... (why aren't we using normal int here?) 2016-06-08 19:40:57 +02:00
twinaphex a877fc24fb (libretro-common/stdstring) Add string_trim_whitespace_left/string_trim_whitespace_right 2016-06-08 19:12:23 +02:00
Arzed Five 4d529ffbc0 Merge remote-tracking branch 'upstream/master' 2016-06-08 17:07:18 +01:00
Arzed Five c47b58228f Make this compile 2016-06-08 17:07:04 +01:00
twinaphex ac29a2acc2 Free heap variable 2016-06-08 17:56:09 +02:00
Twinaphex 29012aa74f (Cocoa) Cleanups 2016-06-08 17:54:55 +02:00
twinaphex 008e622843 Add capabilities to ui_browser_window_state 2016-06-08 17:53:51 +02:00
Twinaphex 5a746e04c2 (OSX) Refactor document loading code 2016-06-08 17:51:05 +02:00
neville 817b63be99 (OSX) Buildfix for pre-OSX 10.6 2016-06-08 17:39:20 +02:00
Twinaphex 1cd441b125 (Cocoa) Reimplement browser loading code 2016-06-08 17:18:48 +02:00
twinaphex 82ae93e348 Add ui_companion_driver_get_browser_window_ptr 2016-06-08 16:56:45 +02:00
Twinaphex 8088df5f09 Cleanups 2016-06-08 16:39:46 +02:00
Twinaphex 9e5ad14da0 Start implementing untested ui_browser_window_cocoa_open function 2016-06-08 16:11:06 +02:00
twinaphex d9e61e5153 Add missing file 2016-06-08 15:53:59 +02:00
twinaphex 7a3e3ab46b Add to Makefile files 2016-06-08 15:52:58 +02:00
twinaphex 969ef4b88d Add stub browser window implementations for Win32/Cocoa 2016-06-08 15:51:43 +02:00
twinaphex 0e01a3c84b Add ui_browser_window 2016-06-08 15:47:00 +02:00
twinaphex d63442ca3b Implement ui_win32_msg_window 2016-06-08 10:19:37 +02:00
twinaphex 47abc22fe9 ui_win32_window.c needs to become a C++ file for DragAcceptFiles 2016-06-08 10:05:48 +02:00
Twinaphex d178f90cc1 Remove this header 2016-06-08 08:19:06 +02:00
neville f170856374 (OSX) Fixes 2016-06-08 07:41:59 +02:00
twinaphex 0a7bc4d21f Add 'warning' 2016-06-08 07:27:46 +02:00
twinaphex 615fc0432f Free strdup'ed values 2016-06-08 07:24:26 +02:00
twinaphex 047ffe9d30 Remove apple_display_alert 2016-06-08 07:19:19 +02:00
Twinaphex 6cf905508e Reimplement apple_display_alert to use new ui_msg_window implementation 2016-06-08 07:07:10 +02:00
twinaphex 3c7fafe9a3 Create ui_companion_driver_get_msg_window_ptr 2016-06-08 07:02:38 +02:00
Twinaphex aa81c1d82f Start implementing ui_cocoa_msg_window.m 2016-06-08 06:56:42 +02:00
twinaphex 1fc0009cdc ui_msg_window_state - turn title and text into pointers 2016-06-08 06:37:00 +02:00
Twinaphex a6406a57ca Add ui_cocoa_msg_window.m to Cocoa 2016-06-08 06:35:04 +02:00
twinaphex 10a25209da (Msg window) Add backends for Win32/Cocoa 2016-06-08 06:33:15 +02:00
twinaphex a247b16164 Add ui_null_msg_window 2016-06-08 06:29:52 +02:00
twinaphex c35e75a0bd Create ui_msg_window_t 2016-06-08 06:24:15 +02:00
twinaphex 793d0de45c Add ui_message_window_buttons/ui_message_window_response 2016-06-08 06:17:26 +02:00
twinaphex b7d3ed5264 (nk_common.c) Add HAVE_GLSL ifdef 2016-06-08 05:32:45 +02:00
twinaphex 4e91f6fcd0 Use CG macro instead 2016-06-08 05:26:33 +02:00
Twinaphex 710a3fe249 Merge pull request #3090 from fr500/nuklear
[nk] fix nuklear / linux
2016-06-08 02:46:02 +02:00
radius 991ea3c008 [nk] fix nuklear in linux and don't request a core context on windows 2016-06-07 19:40:11 -05:00
Arzed Five 70b1f385e8 Change task_save_state so we save a single state and a single savestate
file in memory, allowing to undo a loadstate/savestate once.
2016-06-07 18:33:01 +01:00
twinaphex 20766147a6 Cleanup 2016-06-07 18:04:07 +02:00
twinaphex 3f44ba59eb Add pending_events function callback 2016-06-07 18:02:37 +02:00
twinaphex dbf59a72bd (ui_win32_application.c) Indenting cleanups 2016-06-07 17:32:37 +02:00
twinaphex f4c3a41f84 (Win32) Implement application process events 2016-06-07 17:28:51 +02:00
Twinaphex ba962d5dda Remove poll_iteration 2016-06-07 17:16:16 +02:00
Twinaphex 02910fd64d (Cocoa) Implement ui_application_process_events 2016-06-07 17:14:57 +02:00
twinaphex c1a321015a Create ui_companion_driver_get_application_ptr 2016-06-07 17:10:27 +02:00
twinaphex 4dded0c76b Change signature of process_events 2016-06-07 17:07:11 +02:00
twinaphex 3aeecc7eb2 Create ui_win32_application.c 2016-06-07 17:03:34 +02:00
Twinaphex 3b16eb1e91 Add (stub) ui_cocoa_application.m 2016-06-07 16:51:25 +02:00
Twinaphex f17b4fba05 Rename ui_cocoa_window.h 2016-06-07 16:47:48 +02:00
twinaphex 07ca97618d Add ui_application_win32 2016-06-07 16:43:25 +02:00
twinaphex ee8277b31c Rename ui_win32_window.h to ui_win32.h 2016-06-07 16:33:55 +02:00
twinaphex febe0a2a1e (UI) Turn some functions static 2016-06-07 16:32:13 +02:00
twinaphex a90bd8cb67 Add ui_null_application.c 2016-06-07 16:31:35 +02:00
twinaphex b83d58cd59 xmb_gradient_ident - don't bake it in when HAVE_SHADERPIPELINE
is not defined
2016-06-07 15:25:00 +02:00
twinaphex cf996f724e Rename HAVE_NETWORK_GAMEPAD to HAVE_NETWORKGAMEPAD - and
don't bake it in for the C89 build
2016-06-07 15:23:07 +02:00
twinaphex afe67ca254 C89/C90 don't support bitfields on uint8_t - work around this 2016-06-07 14:47:54 +02:00
twinaphex f15b722786 Buildfix 2016-06-07 06:35:48 +02:00
twinaphex 9b60b81f70 Buildfixes 2016-06-07 06:28:33 +02:00
twinaphex 180fb9cbff Don't compile in rbmp_encode when HAVE_RBMP is not defined 2016-06-07 06:14:55 +02:00
twinaphex b45824a7a8 Reorder files in Makefile.common 2016-06-07 06:14:28 +02:00
twinaphex 63af59a198 Add HAVE_LANGEXTRA 2016-06-07 06:05:41 +02:00
twinaphex 689b95f2f2 Don't compile in input_hid_driver.c either 2016-06-07 05:39:51 +02:00
twinaphex 175ec67112 Compile in hid_joypad.c only when HAVE_HID is defined 2016-06-07 05:15:22 +02:00
twinaphex b1fe3506d7 Change preprocessor conditional 2016-06-07 04:48:06 +02:00
twinaphex d14444e0fc Include intrin.h header for MSVC 2016-06-07 04:22:21 +02:00
twinaphex 53701a565f Add compat_clz_u16 2016-06-07 04:15:27 +02:00
twinaphex 6fc943228e Create libretro-common/include/compat/intrinsics.h 2016-06-07 04:07:12 +02:00
twinaphex d44062d841 Make HAVE_HID completely optional 2016-06-07 03:01:33 +02:00
Twinaphex d5db2a940a Merge pull request #3083 from fr500/nuklear
[nk] allow picking core and content on demo window
2016-06-07 02:24:16 +02:00
radius afe68b2a62 [nk] allow picking core and content on demo window 2016-06-06 19:22:43 -05:00
twinaphex d240437f6b Update GLSM 2016-06-07 02:18:45 +02:00
twinaphex e3919c9d49 (GLSM) Remove this -unnecessary 2016-06-07 02:09:19 +02:00
Hans-Kristian Arntzen c374c9853d Some potential fixes for Android Vulkan. 2016-06-07 01:43:14 +02:00
twinaphex 14fce400ce Another C89 fix 2016-06-07 00:17:00 +02:00
Twinaphex 23064f0590 Merge pull request #3081 from fr500/nuklear
Nuklear update
2016-06-07 00:03:36 +02:00
twinaphex 52b7a95a2b C89_BUILD fixes 2016-06-07 00:03:07 +02:00
twinaphex 883d9ff6b5 Add HAVE_SHADERPIPELINE define 2016-06-07 00:00:28 +02:00
radius 9777ea933f [nk] move function to nk_menu 2016-06-06 16:44:32 -05:00
radius 8ce0f9cf0a [nk] remove some nk references, fix carriage returns 2016-06-06 16:42:22 -05:00
twinaphex 8bef9743aa Avoid 'function not used' warnings 2016-06-06 23:42:12 +02:00
radius 4dd7bc4f72 [nk] add themes 2016-06-06 16:37:41 -05:00
twinaphex 4b76f88939 Update libretro-common 2016-06-06 21:48:59 +02:00
twinaphex ea5f458fbd Go through function pointer 2016-06-06 08:01:26 +02:00
Twinaphex b78b29cb14 (Cocoa) Turn functions static 2016-06-06 07:40:44 +02:00
Twinaphex c4cea05399 Go through ui_window_t function pointer 2016-06-06 07:39:31 +02:00
twinaphex 77d5de3b4c Create ui_companion_driver_get_window_ptr 2016-06-06 07:35:45 +02:00
Twinaphex 3e3ceba9aa Merge pull request #3079 from fr500/nuklear
implement file selector
2016-06-06 06:14:19 +02:00
radius 5721ce16e9 [nk] implement file selection 2016-06-05 23:00:04 -05:00
radius 7b43376dfb [nk] implement file selection 2016-06-05 22:57:41 -05:00
radius 6009d4a8b6 [nk] implement file selection 2016-06-05 22:56:13 -05:00
radius d8890b486a [nk] implement extension filtering 2016-06-05 22:32:07 -05:00
radius 2667289d45 [nk] implement directory sorting 2016-06-05 22:26:19 -05:00
radius fafb5cc272 [nk] remove windows carriage returns 2016-06-05 22:18:39 -05:00
radius fa3fee12e9 [nk] add initial dir for file picker 2016-06-05 22:18:20 -05:00
Twinaphex 22358d4a92 Merge pull request #3078 from fr500/master
fix windows debug builds
2016-06-06 05:12:46 +02:00
radius ed2177d524 fix windows debug builds 2016-06-05 21:54:37 -05:00
Twinaphex 680aafe8f8 Merge pull request #3077 from aliaspider/master
(VITA) build fix for latest sdk.
2016-06-05 23:03:03 +02:00
aliaspider 5a80bd6b30 (VITA) build fix for latest sdk. 2016-06-05 22:01:25 +01:00
Alcaro 2b338651ab That's not just use after free, it's complete crazy. 2016-06-05 22:50:01 +02:00
twinaphex 1d3d07ad7d Cleanup 2016-06-05 19:39:57 +02:00
twinaphex 7ea0a19a4f Prevent crash 2016-06-05 19:29:55 +02:00
twinaphex 7e2a077bd5 filestream_eof - prevent 'improper usage of negative value' 2016-06-05 19:20:08 +02:00
twinaphex 414ced5901 (libretrodb) Prevent uninitialized scalar variable 2016-06-05 19:18:54 +02:00
twinaphex 6d11f4ab9b Prevent 'logically dead code' warning 2016-06-05 19:09:54 +02:00
twinaphex b110b08b25 command.c - Prevent explicit NULL dereferenced 2016-06-05 19:08:19 +02:00
Twinaphex f77f743403 Merge pull request #3076 from FIX94/master
More GX gamma changes
2016-06-05 19:05:32 +02:00
twinaphex a6175a3989 (menu_cbs_ok.c) Fix explicit NULL dereferenced warnings 2016-06-05 19:04:59 +02:00
twinaphex 693ce8f6e5 (task_content.c) Fix explicit null dereferenced 2016-06-05 19:03:23 +02:00
twinaphex c1f9d7b498 (shader_glsl.c) Fix dereference after null check warnings 2016-06-05 19:02:13 +02:00
FIX94 b80bba2061 (GX) only apply better gamma setting to wii and use old setting on ngc
(GX) show gamma setting in the video options on ngc, was hidden before
2016-06-05 18:57:29 +02:00
twinaphex 553ff7f69f Prevent calling menu_setting_find if 'label' is NULL 2016-06-05 18:41:19 +02:00
twinaphex c61748d2a0 (menu_input.c) Fix 'explicit null dereferenced' 2016-06-05 18:40:09 +02:00
twinaphex 620f541ca1 detect_ps1_game_sub - fix 'resource leak' 2016-06-05 18:32:26 +02:00
twinaphex 5004113ce1 Cleanup 2016-06-05 18:27:31 +02:00
Twinaphex 5f87717295 Merge pull request #3075 from fr500/master
fix savefile bug when launching from the commandline
2016-06-05 18:24:42 +02:00
radius f8274800fb fix savefile bug when launching from the commandline 2016-06-05 11:21:16 -05:00
Twinaphex 52aba3c4d6 Merge pull request #3073 from FIX94/master
(GX) improved video gamma setting by allowing a wider spectrum (0.1 to 3.0)
2016-06-05 18:14:27 +02:00
FIX94 f3d0860483 (GX) improved video gamma setting by allowing a wider spectrum (0.1 to 3.0) 2016-06-05 18:03:39 +02:00
Twinaphex bb0a633296 Merge pull request #3071 from natinusala/master
(gl_raster_font) Fixed scaling for newlines
2016-06-05 16:46:27 +02:00
Nathan S 6889b58270 (gl_raster_font) Fixed scaling for newlines 2016-06-05 14:56:23 +02:00
twinaphex ca6f539ff5 (iOS) Prevent unused variable 'buf' warning 2016-06-05 07:02:44 +02:00
Twinaphex e4d202458a (iOS) Buildfix 2016-06-05 07:01:04 +02:00
twinaphex b87bbc7f98 Use retro_common_api.h 2016-06-05 05:31:55 +02:00
twinaphex 85802e6d5a Prevent defined but not used warnings 2016-06-05 05:25:44 +02:00
Twinaphex b59f7c0276 Merge pull request #3068 from libretro/command-ram
Add support for reading/writing core RAM over the command interface
2016-06-05 03:05:52 +02:00
twinaphex 51c875fdee Cleanup 2016-06-05 03:04:09 +02:00
Twinaphex 96d9a851b1 Merge pull request #3070 from fr500/undo
fix a few message issues with undo operations
2016-06-05 02:58:14 +02:00
radius f80ecf7739 fix a few message issues with undo operations 2016-06-04 19:27:17 -05:00
Twinaphex 86b35c8ff2 Merge pull request #3069 from fr500/undo
Undo savestate/loadstate
2016-06-05 01:19:35 +02:00
radius 20540a8f42 add menu entry for undo save state 2016-06-04 14:34:06 -05:00
radius 93acf0caa9 check if saving undo data was successful 2016-06-04 12:42:45 -05:00
radius 28aafddd91 copy the old save state before making a new savestate 2016-06-04 12:38:55 -05:00
radius aa81de0ca0 fix nit 2016-06-04 12:07:11 -05:00
twinaphex 2f7bc8760c Turn win32_browser into static function 2016-06-04 18:43:03 +02:00
Alcaro e3f594564a Fix segfault if no game is loaded. 2016-06-04 18:26:11 +02:00
twinaphex 757c83ea58 Turn apple_rarch_exited static 2016-06-04 18:10:52 +02:00
twinaphex 242e3d6a9e (ui_cocoa.m) Cleanups 2016-06-04 18:09:40 +02:00
Twinaphex 8e9bb03301 (Cocoa) Rewrite poll_iteration 2016-06-04 18:03:46 +02:00
Alcaro 6484fb0c75 This fits better as an argument. 2016-06-04 17:51:27 +02:00
Alcaro 1a64520a23 Fix some silly copypasta. 2016-06-04 17:46:11 +02:00
Alcaro d845093c7b Add support for reading and writing core RAM over the command interfaces. 2016-06-04 17:41:14 +02:00
Twinaphex 4b0401462f (OSX) Buildfixes 2016-06-04 17:34:01 +02:00
twinaphex cfc3b97808 Use ui_window_win32_focused 2016-06-04 17:30:06 +02:00
twinaphex 4a649695a5 Add prototypes 2016-06-04 17:27:23 +02:00
twinaphex 75781bb256 (Win32) Buildfix 2016-06-04 17:26:14 +02:00
twinaphex fc9954d967 Create window_focused callback 2016-06-04 17:24:46 +02:00
twinaphex b5830de236 Create stub GetForegroundWindow function for Xbox 2016-06-04 17:18:20 +02:00
twinaphex abbd39fc6e Might want to use GetForegroundWindow instead for window focus 2016-06-04 17:17:10 +02:00
twinaphex c63f11f6fd Use ui_window_win32_set_droppable 2016-06-04 08:50:43 +02:00
twinaphex 52d85c50d2 Implement ui_window_win32_set_droppable 2016-06-04 08:48:04 +02:00
Twinaphex bb5107b5fa Don't use ui_cocoa_window_set_droppable for now 2016-06-04 08:45:20 +02:00
twinaphex 47c7330cc8 Add set_droppable 2016-06-04 08:38:38 +02:00
twinaphex 80b194f491 (Cocoa) Cleanups 2016-06-04 08:20:39 +02:00
Twinaphex 37d4dcfac1 (Cocoa) Implement ui_window_cocoa_destroy 2016-06-04 08:16:14 +02:00
Twinaphex deb3efb8db (Cocoa) Implement ui_window_cocoa_set_focused and ui_window_cocoa_set_visible 2016-06-04 08:14:39 +02:00
Twinaphex 860fb1d525 (Cocoa) Implement ui_window_cocoa_set_title 2016-06-04 08:09:55 +02:00
Twinaphex 7a564720fb (Cocoa) Buildfix 2016-06-04 08:00:19 +02:00
Twinaphex 98014f7b66 (Cocoa) Add stub ui_cocoa_window.m 2016-06-04 07:56:28 +02:00
Twinaphex 810447e3ec (file_stream.c) Fix warnings 2016-06-04 07:37:54 +02:00
twinaphex fe0391825b (UI/Win32) Change on_top_checkbox's type 2016-06-04 06:58:00 +02:00
twinaphex f2f38be4e6 Refactor shader_param_ctrl_t 2016-06-04 06:55:29 +02:00
twinaphex e6c7450c53 Turn g_shader_dlg.separator into ui_win32_window type 2016-06-04 06:39:18 +02:00
twinaphex 0ae7bf2a53 Use ui_window_win32 for g_shader_dlg 2016-06-04 06:31:14 +02:00
twinaphex f8901d4e47 Fix initializer 2016-06-04 06:28:35 +02:00
twinaphex f7bcc68cd9 Buildfix 2016-06-04 06:27:49 +02:00
twinaphex 999437f31b Use ui_window_win32_t for g_shader_dlg 2016-06-04 06:27:04 +02:00
twinaphex b4c340ca88 (win32_common.cpp) Cleanup 2016-06-04 06:21:58 +02:00
twinaphex 492818deed (d3d_ctx.cpp) Use set_title function 2016-06-04 06:07:11 +02:00
twinaphex efc8df02f0 Put extern prototype inside ui_win32_window.h header 2016-06-04 06:04:02 +02:00
twinaphex d739e4771e Use set_title function from wgl_ctx.cpp 2016-06-04 06:02:15 +02:00
twinaphex 24688469b0 Buildfix 2016-06-04 05:58:03 +02:00
twinaphex 2d649f5147 Reimplement win32_monitor_from_window 2016-06-04 05:56:46 +02:00
twinaphex f490b2b58a Simplify win32_monitor_from_window 2016-06-04 05:54:33 +02:00
Twinaphex 9dec15767a Merge pull request #3067 from aliaspider/master
(ffmpeg_core.c) passing a format string without the arguments to log_cb
2016-06-04 05:46:18 +02:00
twinaphex 0c3bc35be1 (Win32) Buildfix 2016-06-04 05:45:39 +02:00
twinaphex 745b204a8f Start using ui_window_win32_t 2016-06-04 05:44:06 +02:00
aliaspider 5e5e1e6d50 (ffmpeg_core.c) passing a format string without the arguments to log_cb
can result in a crash.
2016-06-04 04:41:38 +01:00
twinaphex 8093d2f124 Remove this file 2016-06-04 05:41:12 +02:00
twinaphex 94e16e638d Cleanup WndProcCommon 2016-06-04 05:09:58 +02:00
twinaphex 05c4308cac (Win32) Buildfix 2016-06-04 05:05:41 +02:00
twinaphex aedd7fa53e Implement set_visible function callback 2016-06-04 05:04:00 +02:00
twinaphex cd49b89bbf Add set_title function callback to ui_window_t 2016-06-04 04:57:44 +02:00
twinaphex 2f1fb7783d Add set_focused function callback to window 2016-06-04 04:54:12 +02:00
Twinaphex 962cd48dc0 Merge pull request #3066 from mudlord/master
update to dragndrop (tiny nit)
2016-06-04 04:41:39 +02:00
twinaphex 5cf1b4b233 (Win32) Buildfix 2016-06-04 04:39:41 +02:00
twinaphex be08e07a66 ui_window - add destroy function callback 2016-06-04 04:37:37 +02:00
twinaphex bc7e7a26f0 Add ui/drivers/win32_ui_win32_window.h 2016-06-04 04:36:07 +02:00
mudlord d75fc24ad7 update 2016-06-04 12:36:05 +10:00
twinaphex 61e1c13ae6 Create stub window interface 2016-06-04 04:24:54 +02:00
twinaphex 563089558b Implement filestream_getc for PSP/Vita by just calling filestream_read
instead
2016-06-04 03:42:55 +02:00
twinaphex b88db89b89 (Win32) Buildfix 2016-06-04 03:22:31 +02:00
twinaphex 45d6b4a228 Create win32_drag_query_file 2016-06-04 03:20:55 +02:00
twinaphex b7bf13ed1c Update GLSM 2016-06-04 02:35:06 +02:00
twinaphex a759694b97 Add fxp.h 2016-06-03 22:35:12 +02:00
aliaspider e23b39d2b5 (task_database_cue) ps1 scanning: the boot entry isn't always the first
one in SYSTEM.CNF
2016-06-03 20:09:23 +01:00
Twinaphex be96ad0932 Merge pull request #3063 from Alexandre-Garcia/improve_translation_pt
Undoes the translation of the tabs, which is causing problems.
2016-06-03 21:03:09 +02:00
twinaphex d7d5f29c90 (win32_common.cpp) Buildfix 2016-06-03 19:46:09 +02:00
Alexandre Garcia f9098208a0 Undoes the translation of the tabs, which is causing problems in the menu, and adds translation to remote retropad item 2016-06-03 14:33:47 -03:00
Twinaphex cbae4af38a (OSX) Add preliminary drag and drop code 2016-06-03 19:21:37 +02:00
twinaphex d6d757e240 Cleanups 2016-06-03 19:06:24 +02:00
twinaphex 7d30885ab9 Cleanup 2016-06-03 19:02:19 +02:00
twinaphex 8595e4cf75 task_push_content_load_default - cleanups 2016-06-03 18:59:57 +02:00
twinaphex f675c5fdc7 task_push_content_load_default - simplify code a bit 2016-06-03 18:45:09 +02:00
twinaphex 6628da2646 Create CONTENT_MODE_LOAD_CONTENT_WITH_NEW_CORE_FROM_COMPANION_UI 2016-06-03 18:43:05 +02:00
aliaspider 748a913a6d (task_database_cue) more ps1 scanning fixes. 2016-06-03 11:36:48 +01:00
aliaspider 87788f0ffb (task_database_cue) ps1 scanning fix. 2016-06-03 10:46:55 +01:00
Twinaphex 4293e14dea Merge pull request #3062 from mudlord/master
updates to dragndrop
2016-06-03 10:31:38 +02:00
mudlord 1ab94a2c9a updates to dragndrop 2016-06-03 18:25:45 +10:00
twinaphex 0b6578f869 Turn file_list_epand_if_needed static 2016-06-03 10:16:40 +02:00
twinaphex 6e86f3ab5b Create file_list_expand_if_needed 2016-06-03 10:15:49 +02:00
twinaphex 7d7a9a2384 Move increment of list to file_list_add 2016-06-03 10:12:35 +02:00
twinaphex 8a6f1be61c Create static function file_list_add 2016-06-03 10:10:19 +02:00
twinaphex 3ef925d692 file_list_append - use memset too 2016-06-03 10:06:48 +02:00
twinaphex 44dc3f70b4 Fix regression in file_list_prepend 2016-06-03 10:05:05 +02:00
twinaphex 0ae2e90783 Buildfix for targets that don't have HAVE_BUFFERED_IO defined 2016-06-03 09:24:34 +02:00
twinaphex 30d3cf8a4e Indenting nits 2016-06-03 08:23:43 +02:00
twinaphex 4cfe09faed Nits 2016-06-03 08:21:56 +02:00
twinaphex 59413e0289 (win32_common.cpp) Cleanups/get rid of warning 2016-06-03 08:20:36 +02:00
twinaphex 01390f8ceb Use retro_common_api.h 2016-06-03 08:06:49 +02:00
Twinaphex 1aef6ddbc8 Merge pull request #3058 from mudlord/master
Updates to drag and drop:
2016-06-03 08:04:10 +02:00
mudlord bcf636283b Updates to drag and drop:
* Now recognises old core used, if compatible.
* If not compatible, compatibile cores are scanned and used.
* Different compatible cores are now enumerated to be selected at will.
2016-06-03 16:00:08 +10:00
twinaphex 169b5e7a6b (libretro-db) Cleanups 2016-06-03 07:58:15 +02:00
twinaphex d95c421ba9 (config_file.c) Cleanups 2016-06-03 07:52:57 +02:00
twinaphex a503db016e Create filestream_eof 2016-06-03 07:29:27 +02:00
twinaphex d40eade52c Create filestream_getline 2016-06-03 07:09:50 +02:00
twinaphex e9cf351c67 Move settings around for User Interface -
(config_file) Try to get rid of forward declarations
2016-06-03 06:43:11 +02:00
radius cd615b3e79 fix mwindows flag on the makefile 2016-06-02 23:38:04 -05:00
radius 04fc5d042f fix osd message 2016-06-02 23:35:57 -05:00
radius 7fb9ec5223 remove stray comment 2016-06-02 23:34:21 -05:00
radius a86cf6b99d initial implementation of undo save state 2016-06-02 23:33:52 -05:00
twinaphex 5230aeb9d0 Use retro_common_api.h 2016-06-03 06:02:49 +02:00
twinaphex 7ce2ac082a Use retro_common_api.h 2016-06-03 05:54:21 +02:00
twinaphex 07932bff3e Use retro_common_api.h 2016-06-03 05:49:46 +02:00
twinaphex 8fc8ff4ed9 Use retro_common_api.h 2016-06-03 05:43:49 +02:00
twinaphex 8ce3c2bbc8 use retro_common_api.h 2016-06-03 05:38:40 +02:00
twinaphex 8486bf0058 Prevent uninitialized scalar variable warnings 2016-06-03 05:35:30 +02:00
twinaphex 63b3f30112 Cleanups 2016-06-03 05:32:18 +02:00
twinaphex ddc3c2adcc Cleanup print_buf_lines 2016-06-03 05:30:06 +02:00
twinaphex 34ad3bd103 Cleanups 2016-06-03 05:24:21 +02:00
Twinaphex 75ad88e171 Cleanups 2016-06-03 05:09:54 +02:00
twinaphex a5dbae0505 Cleanups 2016-06-03 04:59:12 +02:00
twinaphex 48987918e4 Cleanups 2016-06-03 04:37:10 +02:00
twinaphex 7625a790ba Cleanups 2016-06-03 04:35:07 +02:00
twinaphex 2f133a6835 Cleanups 2016-06-03 04:32:18 +02:00
twinaphex f83dfb0621 (platform_linux.c) Prevent uninitialized scalar variable warnings 2016-06-03 04:27:42 +02:00
twinaphex 36e33bde90 Cleanup 2016-06-03 04:21:19 +02:00
twinaphex c2dd8b884e Cleanups 2016-06-03 04:18:28 +02:00
twinaphex 3b83b6d030 Fix uninitialized scalar variable warnings 2016-06-03 04:12:18 +02:00
twinaphex 21bc56aa04 Fix uninitialized scalar variable warnings 2016-06-03 04:02:27 +02:00
twinaphex ff8d00e12b Use RETRO_BEGIN_DECLS/RETRO_END_DECLS in more files 2016-06-03 03:22:35 +02:00
twinaphex 2b33c731d0 Create RFILE_MODE_READ_TEXT 2016-06-03 03:14:42 +02:00
twinaphex d9ba04e470 Fix CXX_BUILD 2016-06-03 02:43:30 +02:00
twinaphex b34786171e Use RETRO_BEGIN_DECLS/RETRO_END_DECLS 2016-06-03 02:39:35 +02:00
Twinaphex 5f843d30a0 Merge pull request #3055 from mudlord/master
added missing guards.
2016-06-03 02:33:50 +02:00
mudlord 6e1e8b3785 added missing guards. 2016-06-03 10:08:27 +10:00
Twinaphex 98278cc5cc Merge pull request #3054 from mudlord/master
add basic drag and drop to win32 gui
2016-06-03 01:23:25 +02:00
mudlord 4c53bdf4f9 add drag and drop 2016-06-03 09:14:53 +10:00
twinaphex 9c8f29c1ec (features_cpu.c) Use filestream 2016-06-03 00:17:09 +02:00
twinaphex ac6a319a9d playlist.c - use filestream 2016-06-03 00:12:58 +02:00
twinaphex 294777166f video_shader_parse.c - use filestream 2016-06-03 00:11:41 +02:00
twinaphex 4dc3fe9f8c Create filestream_getc 2016-06-03 00:07:00 +02:00
twinaphex 97427b343b (libretro-common) Create filestream_gets 2016-06-03 00:03:58 +02:00
twinaphex 858aae10cb Fix unchecked return value warnings 2016-06-02 23:00:11 +02:00
twinaphex 29ca5b8c34 Fix some unchecked return value issues 2016-06-02 22:49:26 +02:00
Alcaro 9b2f6522a2 Fix use-after-free (thanks, Coverity) 2016-06-02 21:31:08 +02:00
Alcaro 9ab4e79503 Simplify these checks a little. 2016-06-02 21:02:28 +02:00
twinaphex 1156406dfc Null-check core_info variable before using it 2016-06-02 20:58:42 +02:00
twinaphex 79c94513ec Fix 'dereference before null check' 2016-06-02 20:56:13 +02:00
twinaphex 307361e12c Prevent 'explicit null dereferenced' warning 2016-06-02 20:53:26 +02:00
twinaphex 7b04375c9b Fix 'dereference after null check' 2016-06-02 20:52:30 +02:00
twinaphex d8b3597455 menu_cbs_deferred_push.c - Fix 'array compared against 0' 2016-06-02 20:51:27 +02:00
twinaphex f1160f19b3 Fix uninitialized scalar variable warnings 2016-06-02 20:49:25 +02:00
twinaphex d6430b2f5e Attempt to fix wrong sizeof argument 2016-06-02 20:45:32 +02:00
twinaphex 65d5ebc2bb Fix some dereference after null check warnings 2016-06-02 20:40:51 +02:00
Jean-André Santoni 3d338446f8 Merge pull request #3052 from Alexandre-Garcia/improve_translation_pt
Improve translation PT
2016-06-02 18:13:29 +02:00
Alexandre Garcia 9f4a6bbae2 Improve translation PT 2016-06-02 11:16:10 -03:00
twinaphex 04c30c77e0 Try to always build with HAVE_VULKAN for Windows 2016-06-01 07:16:06 +02:00
twinaphex 1f3790fafa Fix statement is unreachable warning 2016-06-01 05:59:17 +02:00
twinaphex 36106dd90a C89_BUILD fix 2016-06-01 05:58:22 +02:00
twinaphex 43f06aecd9 (playlist.c) Prevent warnings 2016-06-01 05:34:15 +02:00
twinaphex 280eb95b9a Prevent logically dead code warning 2016-06-01 05:31:05 +02:00
twinaphex c7acb4658b Fix 'pointer to local outside scope' 2016-06-01 05:26:45 +02:00
twinaphex da7f6a2a3b Prevent more warnings 2016-06-01 05:18:59 +02:00
twinaphex 5eb43846da Prevent explicit NULL dereferenced warnings 2016-06-01 04:14:48 +02:00
twinaphex bc3eb34da5 Remove unused variables 2016-06-01 04:09:59 +02:00
twinaphex da6ac4aae7 Fix explicit NULL dereferenced warnings 2016-06-01 04:05:14 +02:00
twinaphex 9bb8c41ff6 Fix uninitialized scalar variables warnings 2016-06-01 03:23:38 +02:00
twinaphex ffdad57318 Fix double frees and resource leaks 2016-06-01 02:40:58 +02:00
twinaphex 2e42778f1e (task_queue.c) Prevent resource leak 2016-06-01 02:37:26 +02:00
twinaphex bedd67a8b8 (QNX/BB10) Use HAVE_MATERIALUI 2016-05-31 05:17:57 +02:00
twinaphex cf91d006b3 BB10 starts again 2016-05-31 05:16:35 +02:00
twinaphex 0c686e15db (QNX) Enable logging by default 2016-05-31 05:06:24 +02:00
twinaphex 5097240aef Add OFN_NOCHANGEDIR in hopes Win32 file dialogs won't change
current working dir
2016-05-31 04:48:00 +02:00
twinaphex 5b52098c54 Reimplement verbosity 2016-05-31 04:42:04 +02:00
twinaphex 0b47d98169 (BB) Update paths 2016-05-31 03:41:14 +02:00
Twinaphex ccf80cbaa9 (BB) Update 2016-05-31 03:36:52 +02:00
twinaphex b23784ddc5 Update modern_alpha_blend.gls.vert.h 2016-05-30 08:55:31 +02:00
twinaphex 632cc599d6 Change modern_alpha_blend.glsl.frag.h 2016-05-30 08:53:49 +02:00
twinaphex 0f12336737 Take this out too 2016-05-30 08:51:41 +02:00
twinaphex d93d8e7a8f Update stock_fragment_modern 2016-05-30 08:44:13 +02:00
twinaphex e820759ed2 Revert "(QNX) Define HAVE_MAIN"
This reverts commit ad3669a926.
2016-05-30 07:55:07 +02:00
twinaphex ad3669a926 (QNX) Define HAVE_MAIN 2016-05-30 07:51:11 +02:00
twinaphex e58dda0623 (QNX) Use relative paths 2016-05-30 07:48:17 +02:00
twinaphex 6213b9d3f1 Revert "Force HAVE_VULKAN on for Windows"
This reverts commit 1f8b4d6b9a.
2016-05-30 00:40:16 +02:00
twinaphex 1f8b4d6b9a Force HAVE_VULKAN on for Windows 2016-05-30 00:34:18 +02:00
Twinaphex 9e9cc3835f Merge pull request #3048 from diablodiab/fix_RETRO_ENVIRONMENT_SET_SUPPORT_NO_GAME
Allow cores that do not need content to still start with content if given
2016-05-30 00:26:21 +02:00
Diablodiab d7bfe70ca1 Check if content has been passed to core even if the core does not need content.
Only start without content if no content has been passed.

This fixes a problem with cores that are both able to start with or without
content, eg. ScummVM.
2016-05-30 00:19:05 +02:00
Twinaphex 00f0a7dd91 Merge pull request #3046 from leiradel/rpng
Optimized palette decoding; fixed bug while getting alpha values for palettized images.
2016-05-29 16:39:45 +02:00
Andre Leiradella b1daca2582 Merge branch 'rpng' of https://github.com/leiradel/RetroArch into rpng 2016-05-29 11:30:34 -03:00
Andre Leiradella 9cc830ecd6 fixed getting wrong alpha values from tRNS chunk 2016-05-29 11:30:04 -03:00
Andre Leiradella 88eab60b13 optimized palette decoding 2016-05-29 11:25:28 -03:00
Andre Leiradella 516918c163 optimized palette decoding 2016-05-29 10:57:57 -03:00
Twinaphex 6f3a78b41a Merge pull request #3044 from leiradel/rpng
support tRNS chunks in palettized images
2016-05-29 06:48:33 +02:00
Andre Leiradella d9ea20727c support tRNS chunks in palettized images 2016-05-29 01:03:44 -03:00
Twinaphex 419cdced44 Merge pull request #3043 from leiradel/imgviewer
show a checker background behind images with transparency
2016-05-29 05:41:29 +02:00
twinaphex e222df4eb6 Fix LOAD_CONTENT_WITH_NEW_CORE_FROM_MENU 2016-05-29 05:36:41 +02:00
Andre Leiradella 97a4f0d2fd show a checker background behind images with transparency 2016-05-29 00:24:09 -03:00
twinaphex d39d925c1d Fix opsque Cg shader 2016-05-29 03:48:08 +02:00
twinaphex 78b208c441 Get rid of settings variable 2016-05-29 00:19:04 +02:00
twinaphex eafb235e66 Cleanups 2016-05-29 00:03:15 +02:00
twinaphex bf6fa07b25 Cleanups 2016-05-28 23:56:07 +02:00
twinaphex 2859f6f18d Cleanup 2016-05-28 23:53:13 +02:00
twinaphex efaf6e10ee Cleanups 2016-05-28 23:48:32 +02:00
twinaphex fdb218f64e We don't have to call task_load_core for ffmpeg/imageviewer paths 2016-05-28 23:40:58 +02:00
twinaphex e0885a71e3 Remove core_path lines from ffmpeg/imageviewer paths 2016-05-28 23:39:04 +02:00
twinaphex 383a5968cc Create task_push_quick_menu 2016-05-28 23:34:21 +02:00
twinaphex f8ed8ebde4 Create task_load_core 2016-05-28 23:20:43 +02:00
twinaphex 1b0c224c02 Create task_load_content 2016-05-28 23:16:57 +02:00
twinaphex da6a74b2dc Leave only GLSL_330 macro 2016-05-28 20:58:49 +02:00
Twinaphex 2056d25e3e Update GLSL_330_ES/GLSL_330_CORE 2016-05-28 20:56:37 +02:00
Twinaphex e331281d6a (shaders_common.h) Fix GLES 2016-05-28 20:56:02 +02:00
twinaphex 3d5cc14030 Convert other shaders 2016-05-28 18:43:00 +02:00
twinaphex 653359911a Cleanup shaders 2016-05-28 18:18:23 +02:00
twinaphex 2b5aae8a21 Add this too 2016-05-27 21:41:14 +02:00
twinaphex 828b9c6c46 task_content.c - can now reach this code 2016-05-27 21:25:42 +02:00
twinaphex 954aaa3fc6 More preparatory work for net retropad core 2016-05-27 21:16:25 +02:00
twinaphex c0d86cd8d3 Ifdef autosave code for HAVE_THREADS 2016-05-27 20:43:55 +02:00
twinaphex e8eb0ef013 Change invocation of task_content_push 2016-05-27 19:34:07 +02:00
twinaphex c16cae7ef9 Create retroarch_set_current_core_type 2016-05-27 19:26:45 +02:00
twinaphex ccd5b2f73d Add 'Start Remote Gamepad' entry 2016-05-27 19:18:46 +02:00
twinaphex 7d26034ebe Rename rarch_task_* to task_* 2016-05-27 18:14:47 +02:00
twinaphex c00f8c5dd6 Add comments 2016-05-27 18:07:51 +02:00
twinaphex 534c923b6b Remove autosave.c 2016-05-27 17:52:20 +02:00
twinaphex eeddd7072b Move struct to top 2016-05-27 17:29:12 +02:00
twinaphex 1c868ffaa2 Cleanups 2016-05-27 17:27:38 +02:00
twinaphex a6f95b307f Silence warnings 2016-05-27 17:24:54 +02:00
twinaphex 49f050b386 Move config_replace to configuration.c 2016-05-27 16:42:20 +02:00
twinaphex a70d8e43d9 Cleanups 2016-05-27 16:35:21 +02:00
twinaphex e8a02dd448 C89_BUILD fix 2016-05-27 06:03:38 +02:00
Twinaphex 130411365b Remove unused variable 2016-05-27 05:39:52 +02:00
twinaphex 9d6eda5409 Remove double entry in qb/config.params.sh 2016-05-27 05:22:11 +02:00
twinaphex e7aedb6fb9 Remove unneeded async_job - plug memory leak in cheevos.c 2016-05-27 05:19:27 +02:00
Andrés bf04b798fe Merge pull request #3037 from leiradel/cheevos
added all console ids; added fixup for pce; fixed mmap matching
2016-05-26 22:14:31 -05:00
twinaphex 6dc2e8ca45 (configuration.c) Cleanups 2016-05-27 05:13:05 +02:00
Andre Leiradella d791da9507 undefined debug macros 2016-05-27 00:06:03 -03:00
twinaphex dd03076976 Remove config_realloc 2016-05-27 05:05:27 +02:00
twinaphex 2b4baa0452 Cleanup configuration.c 2016-05-27 05:02:26 +02:00
Andre Leiradella fad2acf1ee added all console ids; added fixup for pce; fixed mmap matching 2016-05-26 23:47:14 -03:00
twinaphex e41efa9849 Cleanup menu_content_find_first_core 2016-05-27 04:41:39 +02:00
twinaphex a743c779f8 Prevent some 'conditional jump or move depends on unitialised value' warnings 2016-05-27 04:31:02 +02:00
twinaphex 0d271b0ca7 Cleanups 2016-05-27 04:18:27 +02:00
twinaphex 150d05c160 Not sure why it tried to call input_overlay_free twice in a row 2016-05-27 04:09:46 +02:00
Twinaphex af4d085632 Merge pull request #3036 from lakkatv/master
(Menu) Fixes a menu toggle bug
2016-05-26 22:51:31 +02:00
Jean-André Santoni 72e67acec0 (Menu) Fixes a menu toggle bug 2016-05-26 22:45:01 +02:00
Twinaphex b81b5b0dfe Revert "playlist.c - prevent logically dead code -a nd also try to prevent memleak"
This reverts commit a1034716e1.
2016-05-26 22:22:30 +02:00
twinaphex bd5c0effa4 Revert "playlist_free_entry - cleanups"
This reverts commit 9624406438.
2016-05-26 22:17:42 +02:00
Twinaphex 5a7ab3a394 Revert "Free before doing strdup"
This reverts commit 189f8d58ec.
2016-05-26 22:07:03 +02:00
twinaphex 189f8d58ec Free before doing strdup 2016-05-26 22:03:37 +02:00
twinaphex 1d632e26fe Add missing file 2016-05-26 20:52:27 +02:00
twinaphex 584ec83840 Start adding internal network retropad core hooks 2016-05-26 19:43:15 +02:00
twinaphex d6a36f3768 configuration.c - fix unchecked return value 2016-05-26 18:17:31 +02:00
twinaphex a1034716e1 playlist.c - prevent logically dead code -a nd also try to prevent memleak 2016-05-26 18:12:27 +02:00
twinaphex 03ded43280 Prevent explicit null dereferenced warnings 2016-05-26 18:09:46 +02:00
twinaphex a98616b45b Fix explicit NULL dereferenced/dereference before null check warnings 2016-05-26 17:47:21 +02:00
twinaphex 142dd82067 (input_overlay.c) Prevent dereference after null check 2016-05-26 17:35:46 +02:00
twinaphex e297da1b71 Take out this call to prevent another memory leak 2016-05-26 17:34:44 +02:00
twinaphex 4f98cf05f4 Fix uninitialized scalar variable warnings 2016-05-26 17:32:27 +02:00
twinaphex 0f954fd4c8 Resource leaks fixes (catched by Coverity) 2016-05-26 17:26:55 +02:00
twinaphex 9624406438 playlist_free_entry - cleanups 2016-05-26 16:37:39 +02:00
Twinaphex a816d150b1 Merge pull request #2857 from RobLoach/patch-1
Add documentation for libretro-db compilation
2016-05-26 16:17:54 +02:00
Twinaphex 427c73e7fd Merge pull request #3034 from sronsse/fixes_for_team
task overlay: Fix memory leak caused by overlay being loaded multiple…
2016-05-26 08:20:39 +02:00
Sebastien Ronsse 5366e88d1b task overlay: Fix memory leak caused by overlay being loaded multiple times 2016-05-26 16:14:34 +10:00
twinaphex 7d12408f24 x11_create_input_context - prevent memleak 2016-05-26 07:34:25 +02:00
twinaphex 4981cc65c9 Try to call snd_config_update_free_global after every call to
snd_pcm_close to prevent apparent memory leaks
2016-05-26 07:19:54 +02:00
Twinaphex f0157dea52 Merge pull request #3033 from sronsse/fixes_for_team
task image: Fix memory leak occurring for images loading non-progress…
2016-05-26 06:51:57 +02:00
twinaphex 023088e618 C89_BUILD fix 2016-05-26 06:50:57 +02:00
twinaphex befda7bcc9 Some C89 build fixes 2016-05-26 06:49:38 +02:00
twinaphex ebc8edd2bf Fix CXX_BUILD 2016-05-26 06:46:57 +02:00
twinaphex 20cc877ad3 (PS3) Cleanup warnings 2016-05-26 06:41:28 +02:00
twinaphex c8f1125e20 Take out unused settings variables 2016-05-26 06:37:16 +02:00
twinaphex 9d1273ce58 (Nuklear) Cleanups 2016-05-26 06:34:13 +02:00
Sebastien Ronsse 093b009422 task image: Fix memory leak occurring for images loading non-progressively 2016-05-26 14:32:25 +10:00
twinaphex 7780162d53 (Nuklear) Cleanups 2016-05-26 06:31:58 +02:00
radius da5fb291a6 [nk] fix selected file name 2016-05-25 23:00:42 -05:00
radius 22de61ff3d [nk] cleanup unused var 2016-05-25 22:35:31 -05:00
radius e31c53c144 [nk] file picker part 2 2016-05-25 22:32:36 -05:00
radius a79882bfc8 [nk] file picker part 2 2016-05-25 22:09:14 -05:00
radius b08aa06779 [nk] start implementing a file picker 2016-05-25 21:09:43 -05:00
radius ed911fcf27 [nk] add more stub windows 2016-05-25 19:58:16 -05:00
radius 6d7dc34238 [nk] add main window stub 2016-05-25 19:38:20 -05:00
radius ae1522293e [nk] cleanup 2016-05-25 19:24:53 -05:00
radius c5c6713489 [nk] cleanup/split window to it's own file 2016-05-25 19:06:54 -05:00
radius ddeb2b5ac0 organize nuklear files in their own subfolder 2016-05-25 18:45:35 -05:00
radius abbd269f02 reenable other windows that were removed when the api changed
- need to reimplement checkbox_bool
- need to reimplement the menu bar

but more than anything, needs a design, making a gui without any guidelines will mean we'll end up with a shiny new mess, instead of fixing anything
I can hack stuff together but I am not really a gui designer and it's important at this point
2016-05-25 17:18:00 -05:00
twinaphex 2f7684c743 (Android) Cleanups 2016-05-25 16:03:32 +02:00
twinaphex 7859868ffc (RPNG) Dehardcode return values 2016-05-25 15:24:18 +02:00
Andrés a27849cbfa Merge pull request #3031 from sronsse/fixes_for_team
rjpeg: Fix invalid read/writes during JPEG RGBA to ARGB conversion
2016-05-25 01:15:40 -05:00
Sebastien Ronsse 58328fa2b0 rjpeg: Fix invalid read/writes during JPEG RGBA to ARGB conversion 2016-05-25 15:57:01 +10:00
radius b6b2fdfaa6 comment out xbox 360 & dualshock hacks that are not needed anymore, friendly labels can be applied on the autoconf files instead 2016-05-25 00:47:01 -05:00
radius 73c78947b0 fix set_paths_redirect edge case 2016-05-24 23:06:20 -05:00
radius 08c136aab2 fix a logging error 2016-05-24 21:41:53 -05:00
radius 38305f8fb7 Update the menu driver to work with the latest version 2016-05-24 21:41:51 -05:00
radius 8b1604325f Update nuklear 2016-05-24 21:41:50 -05:00
twinaphex 40023833e0 (IOHIDManager) Plug another potential leak 2016-05-25 02:35:13 +02:00
twinaphex 8c106eb010 Allocate name_base memory and free it again 2016-05-25 02:25:09 +02:00
twinaphex 581f53a7c2 (task_screenshot.c) Grab global pointer only once 2016-05-25 02:23:54 +02:00
twinaphex f7ff1c66c4 Don't need to include this header anymore 2016-05-25 00:58:12 +02:00
twinaphex cd176d0737 Remove input_overlay_init 2016-05-25 00:57:58 +02:00
twinaphex ae0da06d8f Make input overlay state a part of struct input_overlay 2016-05-25 00:47:24 +02:00
twinaphex 5a4ada4311 Avoid some warnings by using return value for config_get_int 2016-05-24 23:53:35 +02:00
twinaphex 20aa9ed25a (list_special.c) Attempt to solve another defect 2016-05-24 23:45:56 +02:00
twinaphex d037d12faa (RJPEG) Attempt to solve defect 2016-05-24 23:43:51 +02:00
twinaphex 25eaab0a2b Start passing input_overlay_t * state around to other functions 2016-05-24 23:15:19 +02:00
twinaphex edebf76df6 config_file_userdata.c - get rid of macros 2016-05-24 22:55:40 +02:00
twinaphex a82a8cad51 Be more careful with config_get_bool 2016-05-24 22:48:15 +02:00
twinaphex bfa6f49ae6 Fix logically dead code warnings 2016-05-24 22:12:51 +02:00
Alcaro 26190043eb this mmap env is way more complicated than it has any right to be. 2016-05-24 22:06:21 +02:00
twinaphex 42971febba Fix resource leaks (pointed out by Coverity) 2016-05-24 22:01:43 +02:00
twinaphex 4e07d14488 Fix 'result is not floating point' warning 2016-05-24 21:53:08 +02:00
twinaphex ec88b464c3 Silence 'side effect in assertion' warnings 2016-05-24 21:51:45 +02:00
twinaphex 72d37e3917 Fix unreachable code 2016-05-24 21:48:32 +02:00
twinaphex 8a71830d44 Prevent some data race conditions (pointed out by Coverity) 2016-05-24 21:27:58 +02:00
twinaphex 46872f8fcb (gfx/font_driver.c) Cleanups 2016-05-24 21:07:02 +02:00
twinaphex 3cc84d60c8 (RJPEG) Cleanup 2016-05-24 20:54:32 +02:00
twinaphex fc37ef5c7d rjpeg_load_jpeg_image - cleanup 2016-05-24 20:44:46 +02:00
Twinaphex fae5eb89df rjpeg_process_image - cleanup 2016-05-24 20:36:27 +02:00
twinaphex d04810f5fd Reimplement rjpeg_process_image 2016-05-24 20:19:17 +02:00
twinaphex ae4cd05690 (RPNG) Simplification 2016-05-24 20:15:09 +02:00
Twinaphex 7e6f23ea54 (RJPEG) Cleanup 2016-05-24 20:05:45 +02:00
Twinaphex 1fe1b2318a (task_image.c) Cleanup handle which could leak 2016-05-24 20:04:49 +02:00
twinaphex 5656959085 Free overlay_ptr 2016-05-24 15:30:18 +02:00
twinaphex 160ac49089 (input_overlay.c) Cleanup 2016-05-24 15:29:12 +02:00
twinaphex fd7e2cd394 input_overlay_new - Call input_overlay_free from outside 2016-05-24 15:25:46 +02:00
twinaphex 8f7e253f1f (config_file.c) Fix control flow issue 2016-05-24 14:20:03 +02:00
twinaphex ffaa32842f (libretro-common) Update 2016-05-24 14:18:29 +02:00
Twinaphex c1e82d3f1a (IOHidManager) Fix adapter leak 2016-05-24 14:01:46 +02:00
twinaphex 4e74a990d4 (IOHIDManager) Free some resource leaks 2016-05-24 13:48:02 +02:00
twinaphex 1b35da2bd8 Cleanup load_images upon task cancellation 2016-05-24 13:35:09 +02:00
twinaphex 811f4f59de (task_overlay.c) Cleanups 2016-05-24 13:31:28 +02:00
Twinaphex 452957a117 Merge pull request #3027 from sronsse/fixes_for_team
xmb: Fix memory leak due to horizontal list not being freed properly
2016-05-24 11:45:50 +02:00
Sebastien Ronsse 420d8a5fb2 xmb: Fix memory leak due to horizontal list not being freed properly 2016-05-24 13:15:09 +10:00
twinaphex aae721a9d0 Remove logically dead code 2016-05-24 04:26:24 +02:00
twinaphex d1d46a59db Rewrite file_list_capacity 2016-05-24 04:19:36 +02:00
Twinaphex b01b7cf7cb Merge pull request #3026 from sronsse/fixes_for_team
query: Fix arguments memory leak
2016-05-24 03:58:48 +02:00
Sebastien Ronsse 2824057652 query: Fix arguments memory leak 2016-05-24 11:53:45 +10:00
twinaphex 1b9e222e6e (task_overlay.c) Another rewrite 2016-05-24 03:25:23 +02:00
twinaphex b58b002501 (task_overlay.c) Rewrite 2016-05-24 03:18:29 +02:00
twinaphex 41b6b82b24 Cleanups 2016-05-24 03:02:40 +02:00
twinaphex 690530e7aa (task_overlay.c) Implement cleanup callback 2016-05-24 02:57:37 +02:00
twinaphex 0f42249dd5 Cleanups 2016-05-24 02:55:27 +02:00
twinaphex 47c2b9ed43 (task_overlay.c) Cleanups 2016-05-24 02:39:37 +02:00
twinaphex 334cbd55d8 Cleanups 2016-05-24 02:33:38 +02:00
twinaphex 9bea4deac0 Cleanup 2016-05-24 02:29:43 +02:00
Twinaphex 497e424fc1 Cleanup 2016-05-24 02:23:00 +02:00
twinaphex 28ef2201cd (task_overlay.c) Cleanups 2016-05-24 02:21:49 +02:00
twinaphex 8f054aeb29 (task_overlay.c) Cleanup 2016-05-24 02:17:38 +02:00
Twinaphex b3cab9223c Merge pull request #3025 from sronsse/fixes_for_team
retroarch: Fix savefile directory memory leak
2016-05-24 01:51:45 +02:00
Sebastien Ronsse 07b3a081c0 retroarch: Fix savefile directory memory leak 2016-05-24 09:41:00 +10:00
twinaphex ac407588fa Include stdstring.h 2016-05-24 01:08:01 +02:00
twinaphex 8d4c06e133 (libretro-db) Namespace bintree and libretrodb 2016-05-24 01:07:41 +02:00
radius 86b5b361da fix the last commit 2016-05-23 18:06:50 -05:00
twinaphex 4717a2df64 query.c - namespace functions 2016-05-24 00:58:41 +02:00
radius 9300313fce fix lockup
this seems to fix a lockup that happens randomly on windows at startup, content load/content unload/controller hotplug
2016-05-23 17:57:15 -05:00
twinaphex 4a7bbc4dcc Free info->genre 2016-05-24 00:33:12 +02:00
twinaphex 9253eb52eb (menu_setting.c) don't pass by value 2016-05-24 00:28:26 +02:00
twinaphex 0bd999faa5 Revert "Don't use rarch_task_push_image inside xmb_context_reset_background"
This reverts commit 40e1082cda.
2016-05-23 22:53:09 +02:00
Twinaphex 59e465ea8c Merge pull request #3023 from t-paul/memory-leak-fix
Memory leak fix
2016-05-23 22:46:47 +02:00
Torsten Paul 30e9cc1f10 Ensure memory is not used after free(). 2016-05-23 22:41:24 +02:00
twinaphex 80abd06bd8 Not sure where this came from 2016-05-23 22:39:02 +02:00
Torsten Paul 845dcef6ab Add cleanup handler for tasks to free allocated resources after the task finished. 2016-05-23 22:36:29 +02:00
Torsten Paul 4c3281bd39 Revert "(XMB) Fixes memory leaks in XMB by not relying upon image tasks"
This reverts commit 2f1063ff72.
2016-05-23 22:36:29 +02:00
twinaphex c17315cd27 (DRM) Prevent double free and prevent dereference before NULL check 2016-05-23 22:30:01 +02:00
twinaphex d5d2f7f8ee Fix resource leaks 2016-05-23 22:17:28 +02:00
twinaphex 974d3245d2 Fix logically dead code warnings 2016-05-23 22:04:00 +02:00
twinaphex 69759f5fd7 Remove logically dead code 2016-05-23 21:55:30 +02:00
twinaphex 39faa9be1b Remove logically dead code 2016-05-23 21:50:07 +02:00
twinaphex 91220c3448 Remove logically dead code 2016-05-23 21:49:40 +02:00
twinaphex 5e5bb8e39b Remove logically dead code 2016-05-23 21:48:50 +02:00
twinaphex 2855526566 core_info.c 'logically dead code' fix 2016-05-23 21:48:24 +02:00
twinaphex 7c0532c3e7 Remove logically dead code 2016-05-23 21:47:41 +02:00
twinaphex 1eecb570aa Fix regression 2016-05-23 21:46:24 +02:00
twinaphex 0cff019c37 Remove self assignment 2016-05-23 21:41:06 +02:00
twinaphex ea5f3d30e4 Fix missing breaks 2016-05-23 21:39:17 +02:00
Twinaphex 44edf684db (RPNG) Another potential leak plugged 2016-05-23 21:33:26 +02:00
twinaphex faef7b498d (Coverity) Fix some resource leaks 2016-05-23 21:28:43 +02:00
twinaphex 0a3224180b (Coverity) Fix uninitialized variables; fix some resource leaks 2016-05-23 21:19:28 +02:00
twinaphex c72222b572 Remove menu_shader_free 2016-05-23 17:49:22 +02:00
Twinaphex 86ef11e756 Prevent another memory leak 2016-05-23 14:45:43 +02:00
twinaphex 09b10943b2 retroarch_get_current_savefile_dir - prevent memory leak 2016-05-23 14:42:22 +02:00
Twinaphex 1be1c6a6e2 Merge pull request #3020 from sronsse/fixes_for_team
Memory leak-related fixes
2016-05-23 12:25:51 +02:00
Sebastien Ronsse 18bff0401b menu setting: Fix memory leak in network settings data 2016-05-23 12:09:58 +10:00
Sebastien Ronsse 14c0984497 menu setting: Introduce generic concept of free flags for settings data 2016-05-23 12:09:58 +10:00
Sebastien Ronsse d9884b486a menu driver: Fix memory leak occurring on exit 2016-05-23 12:09:58 +10:00
Twinaphex 06aa001b82 Merge pull request #3019 from orbea/master
Set base man directory in MAN_DIR and move manpages to man6
2016-05-23 02:19:49 +02:00
orbea aeaaf7a319 Move man pages to man6 to satisfy man standard sections 2016-05-22 17:05:13 -07:00
orbea 7fc64b2c5e Set base man dir in MAN_DIR 2016-05-22 16:31:01 -07:00
twinaphex 0692a321c5 (GLSM )update 2016-05-22 03:49:42 +02:00
twinaphex 44bf799d36 Update GLSM 2016-05-21 23:00:39 +02:00
Twinaphex 2f1063ff72 (XMB) Fixes memory leaks in XMB by not relying upon image tasks 2016-05-21 21:37:41 +02:00
twinaphex 40e1082cda Don't use rarch_task_push_image inside xmb_context_reset_background 2016-05-21 21:00:37 +02:00
twinaphex 7fe5d21452 (XMB) use string_is_equal 2016-05-21 20:53:57 +02:00
twinaphex 2f2ddb472a (XMB) Move function to menu_display.c 2016-05-21 20:47:49 +02:00
twinaphex 0798157df3 Try calling video_driver_texture_unload before calling video_driver_texture_load 2016-05-21 19:43:32 +02:00
Twinaphex b7e15c2fe1 free user_data here too 2016-05-21 19:31:39 +02:00
twinaphex e4a44cbf13 menu_display_thumbnail_handle_upload - free userdata 2016-05-21 19:28:29 +02:00
twinaphex 59f3e733fb (libretro-common) rthreads - PS3 buildfix 2016-05-21 13:38:07 +02:00
twinaphex 6c840cdd59 (input_autodetect.c) Use dir_list_new_special 2016-05-21 13:31:41 +02:00
twinaphex 57f797dad6 Cleanup 2016-05-21 13:16:48 +02:00
twinaphex 6bd7fd482c Performance counters got function name changes 2016-05-21 13:14:25 +02:00
Twinaphex 72e1a33715 Merge pull request #3016 from Themaister/master
Add perf counter to fence waits.
2016-05-21 12:36:25 +02:00
Hans-Kristian Arntzen 218ecc07c1 Add perf counter to fence waits.
Makes it easy to check if we're GPU bound or not.
2016-05-21 12:13:46 +02:00
radius 6b0c978acb cut down some code duplication 2016-05-20 17:54:29 -05:00
radius dbb8cf7e32 AUTOSAVE should happen before loading the dummy core, not after 2016-05-20 17:36:55 -05:00
twinaphex 45cbe06401 rpng_process_image - cleanup resources if we fail 2016-05-20 21:05:27 +02:00
twinaphex fec5aca60b Revert "(task_image.c) Nits"
This reverts commit 94a9e7b923.
2016-05-20 21:03:42 +02:00
Twinaphex 2cd64c276f Merge pull request #3015 from simias/fix
potential fix for AMD and GL core contexts
2016-05-20 20:17:09 +02:00
Lionel Flandrin b7d5c1d3e8 potential fix for AMD and GL core contexts 2016-05-20 20:12:41 +02:00
twinaphex 94a9e7b923 (task_image.c) Nits 2016-05-20 20:04:07 +02:00
twinaphex fe516b0d01 Change type of status 2016-05-20 19:32:09 +02:00
twinaphex 1fd7cf473d Initialize file_path 2016-05-20 19:17:21 +02:00
twinaphex d02d27f92a (PNG) Cleanup 2016-05-20 15:37:36 +02:00
radius a49ef997de fix override unloading on close content 2016-05-20 02:21:15 -05:00
Twinaphex 4389008be6 (QNX) Can export Release build now 2016-05-19 23:38:38 +02:00
twinaphex 0e88d99798 (BB10) Update bar-descriptor 2016-05-19 23:23:06 +02:00
Twinaphex c2942b0873 (QNX) Builds and links 2016-05-19 22:25:39 +02:00
Twinaphex 323d5b1c6c (QNX) Buildfixes 2016-05-19 21:43:40 +02:00
Twinaphex 1f7c51b458 (QNX) more build fixes 2016-05-19 20:14:58 +02:00
Twinaphex e133ce31e8 (QNX) Buildfixes 2016-05-19 20:10:10 +02:00
twinaphex c104bc094b (QNX) Fix egl_create_surface call 2016-05-19 20:07:03 +02:00
Twinaphex 85331042be (QNX) Build fixes 2016-05-19 20:02:39 +02:00
twinaphex aabb1e409c Move netplay code to network/netplay dir 2016-05-19 11:46:54 +02:00
Twinaphex 67e1e5a9d0 (task_image.c) Prevent null pointer dereference 2016-05-19 02:09:56 +02:00
twinaphex 033bc60939 (RPNG) Cleanup 2016-05-19 01:00:03 +02:00
twinaphex ceb657eba2 Cleanups 2016-05-19 00:51:34 +02:00
twinaphex 6c2e933321 rpng_process_init - free resources when failing 2016-05-19 00:46:07 +02:00
twinaphex a0974a899d (RPNG) Rewrite initialization of process struct 2016-05-19 00:42:05 +02:00
twinaphex 257d8a8cf0 Silence some warnings by valgrind memcheck - label value was
uninitialized and passed to strtok
2016-05-19 00:24:39 +02:00
twinaphex 0c2958e384 (task_image.c) Style nit 2016-05-19 00:16:30 +02:00
twinaphex bebcc1c274 Move macros to task_image.c 2016-05-19 00:07:49 +02:00
twinaphex 2116c0cc4e Move typedef to task_image.c 2016-05-19 00:06:52 +02:00
twinaphex 824315865f Move http_transfer_info to task_http.c 2016-05-19 00:04:38 +02:00
twinaphex ae478b71b7 (rarch_task_push_image) Call rarch_task_image_load_free 2016-05-18 23:57:35 +02:00
twinaphex e59cd92108 rarch_task_image_load_free_internal - Run image_texture_free 2016-05-18 23:38:51 +02:00
twinaphex ad78fddf4e Move image allocation to task_image.c 2016-05-18 23:28:03 +02:00
twinaphex cb4db5c5ab Don't be dependent on nbio->image inside task_file_transfer 2016-05-18 23:14:07 +02:00
twinaphex 091496f74d Add ARMv7 entry too 2016-05-18 22:09:01 +02:00
twinaphex 017ef3fef7 (Android) Implement other archs too 2016-05-18 22:06:28 +02:00
twinaphex f1d859b826 (Android) Use uname for determining architecture 2016-05-18 22:02:11 +02:00
twinaphex c93b78147b Should avoid expensive 'djb2' operation now per-frame 2016-05-18 21:45:06 +02:00
twinaphex 4697d10e8c (get_value) Implement system information too 2016-05-18 21:43:07 +02:00
twinaphex 70a4361d29 Split up default get_value callback some more 2016-05-18 21:41:37 +02:00
twinaphex 3d87398011 Cleanup 2016-05-18 21:35:57 +02:00
twinaphex 09b3a6f2c5 Create separate callback for core option representation 2016-05-18 21:22:58 +02:00
twinaphex 8b93439738 Backport this 2016-05-18 21:21:58 +02:00
twinaphex d53b245528 Cancel task instead 2016-05-18 17:37:43 +02:00
twinaphex 7aadde73d8 Handle cb return error code for task cancellation 2016-05-18 17:32:39 +02:00
Twinaphex 3cf591ec09 (tasks/task_image.c) refactor cb_nbio_image_menu_thumbnail 2016-05-18 17:27:05 +02:00
twinaphex e21a655dc6 (RPNG) Use image process codes 2016-05-18 17:18:36 +02:00
twinaphex 5050ccf519 Move entry up 2016-05-18 15:43:20 +02:00
twinaphex b5b3d699bf (System Information) Show CPU Architecture 2016-05-18 15:42:16 +02:00
twinaphex 0986e2af7f Add frontend_driver_get_cpu_architecture 2016-05-18 15:34:03 +02:00
twinaphex 64a9cd29d3 (System Information) Add CPU Cores 2016-05-18 14:39:44 +02:00
twinaphex 5488806108 Add entries to system information 2016-05-18 14:36:23 +02:00
twinaphex de2d15c716 Add extra image format support to targets 2016-05-18 13:39:42 +02:00
twinaphex b052f07f6b Add HAVE_RBMP switch 2016-05-18 13:34:04 +02:00
twinaphex 9b572d0fe4 Make RBMP optional too 2016-05-18 13:28:20 +02:00
twinaphex c369a00a3e Start working towards making image viewer core no longer
dependent on stb_image
2016-05-18 13:11:09 +02:00
twinaphex 7e36dcb27f move video_texture_image to libretro-common and rename it to image_texture.c 2016-05-18 12:58:00 +02:00
Alcaro 4fd3a4743a Another todo 2016-05-18 12:51:17 +02:00
twinaphex 265c931c46 (gfx/video_texture_image.c) remove dependencies 2016-05-18 12:49:52 +02:00
Alcaro bc53d6fdc3 More TODO for this env. 2016-05-18 12:30:43 +02:00
twinaphex e2b5c69af9 (gfx/video_texture_image.c) Cleanups 2016-05-18 12:17:51 +02:00
twinaphex 1ef5eee8b3 Header cleanup 2016-05-18 11:08:09 +02:00
twinaphex dd774bd13c Cleanups 2016-05-18 11:04:23 +02:00
twinaphex 9bc11731fb Start reimplementing TGA image load support 2016-05-18 10:52:23 +02:00
twinaphex 248b99e8e7 (BMP) Fix color conversion 2016-05-17 22:40:29 +02:00
twinaphex 492dd59164 Hook up BMP image loading - color channels swapped - RGBA to ARGB
conversion won't work here
2016-05-17 21:38:51 +02:00
twinaphex 4309793b1d Add rbmp.c 2016-05-17 21:21:45 +02:00
Alcaro 56ce7b9b22 because @leiradel wants me to 2016-05-17 21:08:28 +02:00
twinaphex cecb50bd19 (RJPEG) Cleanups 2016-05-17 20:30:35 +02:00
twinaphex 4af31cee97 (ARM NEON) Buildfix 2016-05-17 17:00:16 +00:00
twinaphex 070b7b78b1 Create matrix_4x4_copy 2016-05-17 18:12:43 +02:00
twinaphex 8b915bbc22 Add memalloc_alloc_aligned 2016-05-17 16:56:13 +02:00
twinaphex 8c640a28c6 (RJPEG) Remove unused rjpeg_image_load 2016-05-17 16:40:11 +02:00
twinaphex 558dfd64f2 Exit video_texture_image_load_internal if we build
without HAVE_RJPEG/HAVE_RPNG depending on content type
2016-05-17 16:34:23 +02:00
twinaphex 1166be62ae (gfx/video_texture_image.c) Drop more implementation details 2016-05-17 16:32:53 +02:00
twinaphex 52948b436e We can take out RPNG implementation details out of video_texture_image.c
now
2016-05-17 16:23:22 +02:00
twinaphex e7e9e90b0d (gfx/video_texture_image.c) Cleanup 2016-05-17 16:15:37 +02:00
twinaphex b268869669 (gfx/video_texture_image.c) Refactor - go through image_transfer
interface
2016-05-17 16:11:37 +02:00
twinaphex 99bcf5946c Take out DEBUG printfs 2016-05-17 16:04:54 +02:00
twinaphex 7a282eab23 (rbmp_encode.c) Cleanups 2016-05-17 15:58:50 +02:00
twinaphex 2559139154 Cleanup tasks_save_ram.c 2016-05-17 15:32:50 +02:00
twinaphex 4a0334b4fa Turn content_push_to_history_playlist to static function 2016-05-17 15:22:26 +02:00
twinaphex 9b421948e4 Create tasks/task_save_state.c 2016-05-17 15:21:09 +02:00
twinaphex 81c7a8ac04 Create task_save_ram.c 2016-05-17 15:18:03 +02:00
twinaphex ce434a7f1c frontend.c - cleanup headers 2016-05-17 15:11:56 +02:00
twinaphex 86a82a47f6 (task_screenshot.c) Another cleanup 2016-05-17 15:04:28 +02:00
twinaphex df3547c65f (task_screenshot.c) Another cleanup 2016-05-17 15:03:17 +02:00
twinaphex 679c0e829c Cleanup 2016-05-17 15:02:25 +02:00
twinaphex 07c56b4340 (task_screenshot.c) Cleanup 2016-05-17 15:00:46 +02:00
twinaphex 747bac1cca task_screenshot.c - cleanups 2016-05-17 15:00:18 +02:00
twinaphex ce240dd47f Move async job code to retroarch.c 2016-05-17 14:40:04 +02:00
twinaphex 146d2c8a1d Rename screenshot.c to tasks/task_screenshot 2016-05-17 14:31:33 +02:00
twinaphex 5555d18a52 Cleanup 2016-05-17 14:24:43 +02:00
twinaphex a64f0a24c6 (RJPEG) Cleanups 2016-05-17 14:07:05 +02:00
twinaphex 50c176310c Add jpeg extension too 2016-05-17 13:55:14 +02:00
Twinaphex beac855ff7 (RJPEG) Remove unused variable 2016-05-17 13:51:42 +02:00
twinaphex ce0376e382 Remove debug printf 2016-05-17 13:50:35 +02:00
twinaphex ee90ce4b54 Ability to select JPEG wallpapers now too 2016-05-17 13:45:47 +02:00
twinaphex 0e3ff650c2 Remove WANT_RPNG 2016-05-17 13:41:40 +02:00
twinaphex 25ec6a8872 Add HAVE_JPEG to project files 2016-05-17 13:39:06 +02:00
twinaphex f052ebf872 Set #if 0 to 1 to test JPEG thumbnails 2016-05-17 13:19:47 +02:00
twinaphex 185050075a (RJPEG) Cleanups 2016-05-17 12:56:11 +02:00
twinaphex 6c79ecdae7 (RJPEG) Cleanups 2016-05-17 12:52:45 +02:00
twinaphex 808004a132 (RJPEG) Cleanups 2016-05-17 12:47:46 +02:00
twinaphex 609d00b3d7 (RJPEG) Image needs to be converted from RGBA to ARGB 2016-05-17 12:17:45 +02:00
twinaphex 9202256c3c Don't need rjpeg__jpeg_test 2016-05-17 12:02:24 +02:00
twinaphex a5cf78fd68 only bind to menu_environment_get when content_info->environ_get is
NULL
2016-05-17 10:35:57 +02:00
Twinaphex b83e43e8ce Fix 'Close Content' when menu is active 2016-05-17 10:15:43 +02:00
twinaphex 64c176288b Should fix JPEG decoding tasks 2016-05-17 10:07:40 +02:00
twinaphex c62f8cc7f4 (algorithms/mismatch.c) __STDC_LIMIT_MACROS not necesary here 2016-05-17 09:21:30 +02:00
twinaphex 747fe1ae63 (Cocoa) Remove obsolete forward declaration 2016-05-17 09:18:37 +02:00
Twinaphex 679cabd430 (OSX) Hopefully this GL hack is no longer necessary on 10.5-era OSX 2016-05-17 09:15:56 +02:00
Twinaphex 52937d4b02 Fix CONTENT_MODE_LOAD_CONTENT_WITH_CURRENT_CORE_FROM_COMPANION_UI 2016-05-17 09:14:18 +02:00
twinaphex fcf2decb2e Remove persist argument 2016-05-17 09:07:41 +02:00
Twinaphex 47cb3b899a Fix deferred content loaded from menu 2016-05-17 08:53:25 +02:00
twinaphex e2e53026aa rarch_main - reduce a lot of code duplication 2016-05-17 08:19:50 +02:00
twinaphex 80ce237878 (HAVE_MENU not defined) Buildfixes 2016-05-17 08:02:13 +02:00
twinaphex 6c9715027f Add HAVE_MENU ifdefs 2016-05-17 07:53:38 +02:00
twinaphex 0d850b9bda Improve content_load_wrapper - pushing to the history list should work again 2016-05-17 07:36:18 +02:00
Alcaro c19a39f49c Set calling convention for those pointers. (Yes, it's ugly.) 2016-05-16 23:51:11 +02:00
twinaphex 4b2d9a9ae5 (ui_win32) Include tasks_internal.h 2016-05-16 20:21:53 +02:00
twinaphex e9d29d246a (GLSM) Buildfix 2016-05-16 20:12:33 +02:00
twinaphex 2fa1c5abb2 (GLSM) Expand GLSM 2016-05-16 20:07:29 +02:00
twinaphex 3f9afce2cd (GLSM) Extend GLSM 2016-05-16 19:43:05 +02:00
twinaphex 9e9584c42d (GLSM) Add documentation 2016-05-16 19:11:38 +02:00
twinaphex d2fc91295e Revert "(Apple) Add workarounds for Apple when not using GL core profile"
This reverts commit 1be3042ef9.
2016-05-16 18:55:06 +02:00
twinaphex 1be3042ef9 (Apple) Add workarounds for Apple when not using GL core profile 2016-05-16 18:52:53 +02:00
twinaphex b9dde5320f (Menu) Buildfixes 2016-05-16 18:34:33 +02:00
twinaphex 6c62c297fd Cleanup 2016-05-16 17:32:38 +02:00
twinaphex bb1d1da693 Remove runloop_iterate_data 2016-05-16 17:29:02 +02:00
twinaphex e10270d459 Delete runloop_prepare_dummy 2016-05-16 17:19:16 +02:00
twinaphex d681d30249 Move code to task_content.c 2016-05-16 17:14:05 +02:00
twinaphex fa5971737e Implement CONTENT_MODE_LOAD_NOTHING_WITH_DUMMY_CORE 2016-05-16 17:07:11 +02:00
twinaphex 0f35487e17 (menu_content.c) Cleanup 2016-05-16 17:02:20 +02:00
twinaphex 064e6a70bc Cleanup 2016-05-16 17:01:31 +02:00
twinaphex 6305f12ba2 Turn content_load function static 2016-05-16 16:44:34 +02:00
twinaphex 722eb5a69c Move content.c code to task_content.c 2016-05-16 16:42:33 +02:00
twinaphex 18a991e014 rarch_main - use rarch_task_push_content_load 2016-05-16 16:38:27 +02:00
twinaphex 3e91a4bb68 Rename menu_content_load to content_load_wrapper 2016-05-16 16:32:18 +02:00
twinaphex f70dc77a61 Pass content_ctx_info_t pointer to rarch_task_push_content 2016-05-16 16:25:16 +02:00
Twinaphex 81f669ca61 (Cocoa) Buildfix 2016-05-16 15:44:21 +02:00
twinaphex cb801ec065 (Windows) Buildfixes 2016-05-16 15:40:08 +02:00
twinaphex c66219846f (mismatch.h) Add another header 2016-05-16 15:39:15 +02:00
twinaphex e95bb7e37a (Windows) Another buildfix 2016-05-16 15:36:31 +02:00
twinaphex 8cd2d1deff (Windows) Buildfix 2016-05-16 15:35:00 +02:00
twinaphex 3678c4e72a menu_content_load - cleanups 2016-05-16 15:17:28 +02:00
twinaphex 9c33d91e68 Refactor content task code 2016-05-16 15:09:04 +02:00
twinaphex a687c47f7e Move command_event_cmd_exec to tasks/task_content.c 2016-05-16 14:58:08 +02:00
twinaphex 923d0a879b Reimplement menu_content_load_from_playlist 2016-05-16 14:54:26 +02:00
twinaphex 75160c6524 Reimplement task_content.c 2016-05-16 14:44:28 +02:00
twinaphex 4d30d931fe Move some logic to rarch_task_push_content_load_default 2016-05-16 14:33:50 +02:00
twinaphex 3cb26268ee Start writing rarch_task_push_content_load_default 2016-05-16 14:27:11 +02:00
twinaphex d4732d048e Start adding switch 2016-05-16 14:23:13 +02:00
twinaphex fe2eb7f4c1 Add mode to rarch_task_push_content_load_default to make
it explicit what each call does
2016-05-16 14:20:26 +02:00
twinaphex cb22859250 Add content_mode_load 2016-05-16 14:10:56 +02:00
twinaphex 57fedb9fa8 Use rarch_task_push_content_load_default 2016-05-16 13:43:14 +02:00
twinaphex 9846aeb53a Remove unused variable 2016-05-16 13:02:47 +02:00
Twinaphex 3ea4f494d7 Merge pull request #3007 from Themaister/master
Set audio enable in FFmpeg by default.
2016-05-16 12:56:09 +02:00
twinaphex 6ef0b86e30 Reimplement content loading - task_content_load 2016-05-16 12:51:55 +02:00
Hans-Kristian Arntzen 30e45902f2 Set audio enable in FFmpeg by default. 2016-05-16 12:51:09 +02:00
twinaphex 43b88cfba9 CMD_EVENT_LOAD_CONTENT_PERSIST - cleanup 2016-05-16 12:23:19 +02:00
twinaphex e13bb23ea0 (runloop.h) Cleanup 2016-05-16 12:21:38 +02:00
twinaphex d84be35fcc (PSP) Buildfix 2016-05-16 12:09:36 +02:00
twinaphex cde1fb0490 Cleanups 2016-05-16 12:08:43 +02:00
Twinaphex 96b673f809 (iOS) Buildfix 2016-05-16 11:35:28 +02:00
twinaphex 65d33700d4 Move audio_utils to libretro-common as s16_to_float 2016-05-16 11:33:49 +02:00
twinaphex a3ca1029f0 Get rid of this file 2016-05-16 11:25:11 +02:00
twinaphex 3725644ce6 Rename audio_convert_s16_to_float 2016-05-16 11:24:34 +02:00
twinaphex c21f84fd9b Simplify audio_convert_get_cpu_features 2016-05-16 11:18:55 +02:00
Twinaphex 0c1d639911 (iOS) Buildfix 2016-05-16 11:15:46 +02:00
twinaphex 2422dfbbbe (libretro-common) Create libretro-common/conversion/float_to_s16 2016-05-16 11:11:02 +02:00
twinaphex d7b28d3b24 (state_manager.c) Remove __SSE2__ includes 2016-05-16 10:40:28 +02:00
twinaphex 1405db5b19 Move mismatch.c to libretro-common/algorithms 2016-05-16 10:27:20 +02:00
twinaphex 08e637a573 Add Vulkan check back 2016-05-16 10:08:10 +02:00
twinaphex 9a43dfda51 Cleanups 2016-05-16 10:05:39 +02:00
twinaphex 99855eb666 Rename more performance counter functions 2016-05-16 10:03:31 +02:00
twinaphex fd951be053 Rename retro_perf_clear 2016-05-16 10:00:50 +02:00
twinaphex 281a33d61f Rename function to performance_counter_init 2016-05-16 09:58:45 +02:00
twinaphex f5bc75c640 Rename retro_perf_start/retro_perf_stop 2016-05-16 09:53:54 +02:00
twinaphex 18355d4748 Rename retro_perf_stop 2016-05-16 09:48:14 +02:00
twinaphex 449c7483cd Rename content_playlist_ to playlist_ 2016-05-16 09:07:44 +02:00
twinaphex c0e447a3af Get rid of ununused variable 2016-05-16 08:46:06 +02:00
twinaphex afa99db9dc (Vulkan Windows/WGL) Change ifdef for Griffin 2016-05-16 08:38:17 +02:00
twinaphex b9ce94b360 (WGL) Change ifdef 2016-05-16 08:36:22 +02:00
twinaphex 0433d3ca6e (WGL) Make context driver more modular 2016-05-16 08:34:56 +02:00
twinaphex 822d66f401 (WGL) Avoid some warnings 2016-05-16 08:25:14 +02:00
twinaphex a7502a3599 Turn HAVE_VULKAN to auto 2016-05-16 07:57:10 +02:00
twinaphex 01e3362f21 Remove unused variable 2016-05-16 07:52:26 +02:00
twinaphex 0d833c903a Merge remote-tracking branch 'origin/vulkan-windows' 2016-05-16 07:51:01 +02:00
twinaphex cda8e7b560 Rename gl_init_vao to gl_check_vao 2016-05-16 06:14:32 +02:00
twinaphex 1983604134 Remove GLSM_CTL_IS_FRAMEBUFFER_LOCKED 2016-05-16 06:02:03 +02:00
twinaphex 8de39f261c (GLSL) Remove unused variables 2016-05-16 05:58:00 +02:00
twinaphex e2cc3bc08d Create gl_query_core_context_in_use 2016-05-16 05:55:42 +02:00
twinaphex c28b4da58c Remove more dependencies on gl pointer 2016-05-16 05:50:39 +02:00
twinaphex 8f2c665dc7 Remove dependence on gl pointer for querying extensions 2016-05-16 05:47:34 +02:00
twinaphex e5f00e8346 (PS3) Non-zipped rom file loading should work again 2016-05-15 20:45:21 +02:00
twinaphex c010d81919 (PS3) Enable GLUI/XMB 2016-05-15 20:26:53 +02:00
twinaphex b4abec5181 Cleanups 2016-05-15 19:59:03 +02:00
twinaphex d63e7defb5 (GLSL) Remove more code 2016-05-15 19:58:02 +02:00
twinaphex 67d08f6790 Restore glsl_set_params 2016-05-15 19:56:53 +02:00
twinaphex c15ec92c83 (Cg) set_params - don't use set_uniform_parameter function - fixes PS3 port 2016-05-15 19:03:39 +02:00
twinaphex 2f69c20e39 Revert "(Shaders) Get rid of third parameter"
This reverts commit 52d6a21e55.
2016-05-15 17:26:23 +02:00
twinaphex 52d6a21e55 (Shaders) Get rid of third parameter 2016-05-15 17:22:55 +02:00
twinaphex 4ae92cfc4b (Android) Bake in Vulkan, and use spirv-cross now 2016-05-15 14:02:48 +02:00
twinaphex e730dd6ae2 (Android) Change STL 2016-05-15 13:53:12 +02:00
twinaphex acce19d5b3 Cleanups 2016-05-15 10:19:07 +02:00
twinaphex a9c959b7e5 REmove RUNLOOP_CTL_CHECK_IDLE_STATE 2016-05-15 10:14:23 +02:00
twinaphex 73cc9c4b15 Rename RUNLOOP_CTL_COREOPTS_GET 2016-05-15 10:09:41 +02:00
twinaphex 01777ac500 (GLSM) Add some documentation 2016-05-15 10:05:31 +02:00
twinaphex cb73de77e9 (libretro-common) Update 2016-05-15 06:59:23 +02:00
twinaphex f8982a89d7 Add vector_3.c 2016-05-15 06:46:41 +02:00
twinaphex 271f4b6f8d Update 2016-05-15 06:07:25 +02:00
twinaphex b56f880c44 (memalign) Cleanups 2016-05-15 06:06:07 +02:00
twinaphex 00d0cdd04e Merge branch 'master' of https://github.com/libretro/RetroArch into staging 2016-05-15 04:22:01 +02:00
Alcaro 33e9003107 This is just noise. 2016-05-14 23:20:35 +02:00
twinaphex 92b1398a79 Fix CXX_BUILD warnings 2016-05-14 16:49:29 +02:00
twinaphex c1633a8695 Add jpeg to retroarch_print_features 2016-05-14 16:40:09 +02:00
twinaphex 4680d7059a (platform_linux.c) Cleanups 2016-05-14 16:34:28 +02:00
twinaphex ca0634e16d Check if file exists for all power management routines 2016-05-14 16:01:29 +02:00
twinaphex 2ea009d301 Check if power management file exists first before trying to
access it
2016-05-14 15:59:22 +02:00
twinaphex 8b9cabf41d Show VFPv3/VFPv4 2016-05-14 13:37:07 +02:00
twinaphex 1e27312c25 Get rid of unused functions 2016-05-14 13:35:50 +02:00
twinaphex cd0b925fa1 Try to see if this gets us past the crash 2016-05-14 06:00:53 +02:00
twinaphex d3f4be0bbc (features_cpu.c) Fix mingw error 2016-05-14 02:54:56 +02:00
twinaphex 9e1276d76f (MSVC) Buildfixes 2016-05-14 01:32:05 +02:00
twinaphex 3257ecdaef (features_cpu.c) Move _WIN32 up in priority 2016-05-14 01:27:09 +02:00
twinaphex 23f410c5fe (RPNG) Fix test 2016-05-14 01:12:05 +02:00
twinaphex f8e99403a4 Cleanups 2016-05-14 00:48:40 +02:00
twinaphex 42adb48d9c (task_image.c )Cleanups 2016-05-13 15:18:40 +02:00
twinaphex acbc9116e3 Turn nbio_image_handle_t member image into pointer 2016-05-13 15:00:44 +02:00
twinaphex 7a16cf8806 Revert "(RJPEG) Remove rjpeg_test"
This reverts commit 5a4b062b0d.
2016-05-13 13:31:10 +02:00
twinaphex e56abc03b3 (rjpeg_process_image) Handle error 2016-05-13 11:15:31 +02:00
twinaphex 5a4b062b0d (RJPEG) Remove rjpeg_test 2016-05-13 11:10:59 +02:00
twinaphex 19eaa05040 (RJPEG) Cleanups 2016-05-13 10:55:22 +02:00
twinaphex fad7f8c1df Cleanups 2016-05-13 10:28:44 +02:00
twinaphex 7c1938b674 Rename task functions 2016-05-13 10:19:53 +02:00
twinaphex 025c51e4c9 (task_image.c) Rename functions 2016-05-13 10:13:36 +02:00
twinaphex bdf4a173f2 Remove file transfer frame_count 2016-05-13 10:10:54 +02:00
twinaphex a283923393 Get rid of image->frame_count 2016-05-13 10:10:23 +02:00
twinaphex 101539b489 (RJPEG) more internal changes 2016-05-13 09:58:42 +02:00
twinaphex ee95af8ae3 (RPNG) Cleanup 2016-05-13 09:51:08 +02:00
twinaphex fa27a8447e Rename RPNG functions 2016-05-13 09:49:38 +02:00
twinaphex 1623d538d5 Add rjpeg_set_buf_ptr 2016-05-13 09:42:02 +02:00
twinaphex 1512d36220 rjpeg_process_image should not set the texture image's width/height -
that is done later
2016-05-13 09:34:42 +02:00
twinaphex 1e872108b7 (RJPEG) Add back rgba to bgra routines 2016-05-13 09:27:58 +02:00
twinaphex f2912eb4c3 Cleanup 2016-05-13 09:22:29 +02:00
twinaphex 8efe2de0ec (RJPEG/RPNG) Add debug logs and change function signatures 2016-05-13 09:08:32 +02:00
twinaphex 5068accc4e Start preparing image transfer for RJPEG 2016-05-13 08:50:50 +02:00
twinaphex 17d39fd54f Add rjpeg_free 2016-05-13 08:16:13 +02:00
twinaphex d3df016005 (RJPEG) Add rjpeg_alloc 2016-05-13 08:13:21 +02:00
twinaphex 98a403defd Don't let it fall through when trying to use certain env callbacks 2016-05-13 04:53:35 +02:00
twinaphex 4ba5ae42a6 Add HAVE_CHEEVOS ifdefs 2016-05-13 04:41:46 +02:00
twinaphex 13f49e1d9a Split up image transfer code to separate file 2016-05-13 04:38:21 +02:00
twinaphex 6daf6e2270 Cleanups 2016-05-13 04:33:11 +02:00
twinaphex d040263a83 image_transfer_new/image_transfer_free 2016-05-13 04:28:16 +02:00
twinaphex f20b969165 (libretro-common) features_cpu - reimplement ARM cpu features code 2016-05-13 04:02:08 +02:00
Twinaphex af39105c04 Merge pull request #2994 from leiradel/master
Added RETRO_ENVIRONMENT_SET_SUPPORT_ACHIEVEMENTS
2016-05-13 03:41:12 +02:00
Andre Leiradella bc8b75148e updated with upstream 2016-05-12 22:36:49 -03:00
Andre Leiradella 031686f27a added RETRO_ENVIRONMENT_SET_SUPPORT_ACHIEVEMENTS; cheevos now work with mmaps 2016-05-12 22:03:18 -03:00
twinaphex be506c6d64 (task_image.c) Cleanups 2016-05-12 13:13:14 +02:00
twinaphex 3bdfbb6318 features_cpu.c - cleanups 2016-05-12 12:22:32 +02:00
twinaphex 597102e863 Remove __ARM_ARCH__ ifdefs 2016-05-12 12:15:53 +02:00
twinaphex cba281052a Rename np_ functions 2016-05-12 12:03:43 +02:00
twinaphex 315c6b9687 Cleanups 2016-05-12 10:44:15 +02:00
twinaphex 193eb62354 (Android) Add include dirs 2016-05-12 10:29:19 +02:00
twinaphex a7d4379011 Rename np_is_server to netplay_is_server 2016-05-12 10:20:14 +02:00
twinaphex df3b090d7a Revert "Create runloop_get_system_info/runloop_free_system_info/runloop_init_system_info"
This reverts commit 35bf38e05c.
2016-05-12 09:37:21 +02:00
twinaphex 6b33c19802 Fix CXX_BUILD 2016-05-12 09:31:25 +02:00
twinaphex 35bf38e05c Create runloop_get_system_info/runloop_free_system_info/runloop_init_system_info 2016-05-12 09:25:52 +02:00
twinaphex c1bfe795f8 Create runloop_prepare_dummy 2016-05-12 09:04:31 +02:00
Twinaphex 1d98d3c17f Merge pull request #2991 from Ezio-PS/master
Updated Italian Translation
2016-05-12 08:23:39 +02:00
Ezio-PS e1d9e34183 Updated Italian Translation 2016-05-12 08:14:10 +02:00
twinaphex f0b99edafc Prevent some warnings/errors from occurring with MESA_DEBUG 2016-05-12 04:29:36 +02:00
twinaphex 21438fc0af Some buildfixes for GL_DEBUG 2016-05-12 02:58:09 +02:00
twinaphex 2321ee829f Add glsym_es3 2016-05-11 23:17:42 +02:00
neville 67e64f4ca6 gl_check_mipmap - don't look for GL_EXT_framebuffer_object here
- breaks OSX PPC
2016-05-11 23:04:48 +02:00
twinaphex c9d3936ee5 Check for GL_EXT_framebuffer_object too 2016-05-11 22:49:41 +02:00
twinaphex 670b564f13 Add HAVE_RTGA switch 2016-05-11 21:57:41 +02:00
twinaphex 367150b487 Cleanups 2016-05-11 21:48:30 +02:00
twinaphex 1abe81b222 Create retroarch_replace_config 2016-05-11 21:44:52 +02:00
twinaphex 07101f48d3 Move struct to content.c 2016-05-11 21:41:19 +02:00
twinaphex e3802c499f Add RJPEG header include 2016-05-11 21:38:33 +02:00
twinaphex 28dd2c2545 Add HAVE_RJPEG ifdefs 2016-05-11 21:27:17 +02:00
twinaphex 4100bf95b4 Able to compile without RPNG support 2016-05-11 21:22:45 +02:00
twinaphex 90d7722125 Remove CMD_EVENT_QUIT_RETROARCH 2016-05-11 20:56:02 +02:00
twinaphex cf3f8d587c Cleanup 2016-05-11 20:53:28 +02:00
twinaphex a082198d4b Change retroarch_main_init 2016-05-11 20:50:34 +02:00
twinaphex 0e972b9804 Rename rarch_git_version to retroarch_git_version 2016-05-11 20:44:24 +02:00
twinaphex 5cc86384b8 (task_image.c) Cleanups 2016-05-11 20:38:09 +02:00
twinaphex dc46c0d012 C89 build-fix 2016-05-11 19:38:46 +02:00
twinaphex 322d11e387 Avoid some warnings when compiling with --disable-netplay 2016-05-11 19:37:56 +02:00
twinaphex 22bea3a50b Remove some RUNLOOP_CTL_ enums 2016-05-11 19:28:22 +02:00
twinaphex daf031173f Remove unused variable 2016-05-11 19:25:15 +02:00
twinaphex 123025665d (Qb) When threads are disabled, disable cheevos and/or libusb too 2016-05-11 19:11:09 +02:00
twinaphex 5845a9944d Add more HAVE_THREADS ifdefs 2016-05-11 19:02:43 +02:00
twinaphex 377f09f12a Change back retro_dirent_is_dir to hopefully avoid sshfs issues
- more rigorous testing should be applied before changing these
functions
2016-05-11 18:54:22 +02:00
twinaphex fc56f6ebdb Add some HAVE_THREADS ifdefs 2016-05-11 10:10:30 +02:00
twinaphex 78783cc2aa Buildfixes for compiling without HAVE_MENU 2016-05-11 10:06:15 +02:00
twinaphex b0342ebe44 Buildfix for compiling without ffmpeg 2016-05-11 09:52:06 +02:00
twinaphex 7ebfe1b66d Create retroarch_set_pathnames 2016-05-11 04:32:29 +02:00
twinaphex 030513bcee Create retroarch_fill_pathnames 2016-05-11 04:29:01 +02:00
twinaphex 95a6428915 RARCH_CTL_FORCE_QUIT is the same as RARCH_CTL_QUIT 2016-05-11 04:24:27 +02:00
twinaphex b9df6f52f5 Kill off a bunch of RARCH_CTL_LOAD_CONTENT enums 2016-05-11 04:22:22 +02:00
twinaphex 5ad45ea17f task_image.c - Refactors to prepare it for JPEG support 2016-05-11 04:10:42 +02:00
twinaphex e6969f7ced Cleanups 2016-05-11 04:03:21 +02:00
twinaphex 556017f23d Cleanup 2016-05-11 03:56:31 +02:00
twinaphex e6f55814a9 (task_image.c) Cleanups 2016-05-11 03:55:09 +02:00
twinaphex 1b4d744dcd (task_image.c) Cleanups 2016-05-11 03:51:26 +02:00
twinaphex 1ac30884c4 (RJPEG) Prevent warnings 2016-05-11 03:40:25 +02:00
twinaphex 4ad23c927a Take out RARCH_CONSOLE ifdefs 2016-05-11 00:40:34 +02:00
twinaphex 2c6cf33dec Take out RARCH_CONSOLE ifdef 2016-05-11 00:26:31 +02:00
Twinaphex 19afc807ef (iOS) Not sure why we are calling rarch_main() twice for iOS 2016-05-10 23:33:51 +02:00
Alcaro 8420480981 Merge pull request #2989 from leiradel/master
renamed some functions because of griffin
2016-05-10 22:41:03 +02:00
Andre Leiradella 3d7be61363 renamed some functions because of griffin 2016-05-10 17:39:20 -03:00
Twinaphex d9393d5872 Merge pull request #2986 from leiradel/master
implemented the RETRO_ENVIRONMENT_SET_MEMORY_MAPS callback
2016-05-10 22:22:40 +02:00
Andre Leiradella c62723ebe2 replaced tab by spaces 2016-05-10 16:47:14 -03:00
Andre Leiradella 44ab560dd6 pre-processed mmaps according to instructions at https://github.com/Alcaro/minir/blob/master/minircheats-model.cpp#L21 2016-05-10 16:42:13 -03:00
twinaphex eec4218ebb (RJPEG) Use features_cpu 2016-05-10 20:36:05 +02:00
twinaphex 9aed52ac65 Move performance.c to libretro-common/features/features_cpu.c 2016-05-10 20:31:27 +02:00
twinaphex 1fdc547a97 Refactor performance.c - merge Android performance code 2016-05-10 20:20:44 +02:00
twinaphex 1bef3665e2 Cleanups 2016-05-10 20:06:38 +02:00
Alcaro 2235aad731 Need these even without networking 2016-05-10 19:43:38 +02:00
Alcaro fe4ef69aaf Better check this one too. (Vulkan is the only user of that, right?) 2016-05-10 19:43:38 +02:00
twinaphex 4a7ab8366b Move libretro.h headers to libretro-common/include 2016-05-10 19:03:53 +02:00
twinaphex f49dcd0739 (performance.c ) Cleanups 2016-05-10 18:43:23 +02:00
Alcaro 7a0ff5911d Fix #2897 2016-05-10 18:34:46 +02:00
Andre Leiradella 9f4a308c1a better mmap flag visualization 2016-05-10 08:55:10 -03:00
Andre Leiradella 723463149e implemented the RETRO_ENVIRONMENT_SET_MEMORY_MAPS callback 2016-05-10 08:04:41 -03:00
Twinaphex 16894e5a5a (Griffin) Buildfix 2016-05-10 09:33:11 +02:00
twinaphex 35ea37b37f Revert "Move cpu_features to libretro-common"
This reverts commit 2b8ff3bf38.
2016-05-10 09:32:24 +02:00
twinaphex 2b8ff3bf38 Move cpu_features to libretro-common 2016-05-10 09:27:29 +02:00
twinaphex 0d371def5c Refactor performance.c code 2016-05-10 09:17:04 +02:00
twinaphex 288dbe2bd0 retro_get_cpu_features - don't spam log 2016-05-10 08:55:28 +02:00
twinaphex b79b2dca13 Create performance_counters 2016-05-10 08:53:14 +02:00
twinaphex 4a49c197c9 (task_image.c) Rename function 2016-05-10 08:31:07 +02:00
twinaphex a4ccfc4d96 Cleanups 2016-05-10 08:28:48 +02:00
twinaphex 58ae02207f Move rpng_is_valid to function 2016-05-10 08:25:18 +02:00
twinaphex 4e04588d2d Create rarch_main_data_image_iterate 2016-05-10 08:23:49 +02:00
twinaphex d160ed322e (task_image.c) Cleanup 2016-05-10 08:09:12 +02:00
twinaphex dc0616d678 CXX_BUILD fixes 2016-05-10 08:02:42 +02:00
twinaphex 55c5052253 Cleanups 2016-05-10 07:55:31 +02:00
twinaphex 8b07f39d6f Create tasks/task_image.c 2016-05-10 07:54:47 +02:00
twinaphex ea8715ca92 (RJPEG) Cleanup 2016-05-10 07:16:27 +02:00
twinaphex f3af0263ed Remove RJPEG_NO_JPEG 2016-05-10 07:15:23 +02:00
twinaphex bb063fb692 Cleanups 2016-05-10 07:13:52 +02:00
twinaphex 8d3f6c39ac Replace STBI_ with RJPEG_ 2016-05-10 07:10:42 +02:00
Twinaphex b59b56d2fc (RJPEG) Last buildfixes 2016-05-10 07:09:27 +02:00
twinaphex 3c4329aa1f (RJPEG) uniquely namespace all functions 2016-05-10 07:08:45 +02:00
Twinaphex 88f259d3ef (RJPEG) Mass renaming (pt. 1) 2016-05-10 07:05:52 +02:00
twinaphex c321c161a8 Update rjpeg 2016-05-10 06:51:58 +02:00
twinaphex 60b8cf7993 Start adding notes to task_file_transfer.c 2016-05-10 06:16:27 +02:00
twinaphex f931ce7606 Adds conversion when color shifts are BGRA 2016-05-10 06:02:00 +02:00
twinaphex 7462988f33 Use stb_image jpeg code 2016-05-10 05:50:38 +02:00
Andrés 2fb69c4a33 Merge pull request #2984 from sronsse/fixes_for_team
rbmp encode: Fix memory leak when saving image
2016-05-09 22:13:17 -05:00
Sebastien Ronsse bab8935b58 rbmp encode: Fix memory leak when saving image 2016-05-10 13:09:38 +10:00
Andrés 5e7e4c2f3a Merge pull request #2983 from sronsse/fixes_for_team
Fix for "Screenshots flipped vertically #2979"
2016-05-09 21:01:01 -05:00
Sebastien Ronsse 3db9623809 rbmp encode: Fix saving mechanism resulting in vertically flipped screenshots. 2016-05-10 11:51:56 +10:00
twinaphex b9c9df3a8b (GLSM) Buildfix 2016-05-10 03:48:05 +02:00
twinaphex 91d2af7e36 Update comments 2016-05-10 03:41:49 +02:00
twinaphex bca9c687a1 (RJPEG) Remove register storage class 2016-05-10 03:23:15 +02:00
twinaphex 71c5b4972c CXX_BUILD buildfix 2016-05-10 03:19:40 +02:00
Twinaphex f2631809bb Cleanup 2016-05-10 03:15:55 +02:00
twinaphex 7c20f2b868 Change namespace of thread functions 2016-05-10 03:14:23 +02:00
twinaphex 88ae5c0875 Rename gfx_mut_coords 2016-05-10 02:42:52 +02:00
twinaphex b2f5e2ac08 Rename gfx_font_raster_block 2016-05-10 02:42:02 +02:00
twinaphex dde471e001 Rename gfx_ structs 2016-05-10 02:39:09 +02:00
twinaphex 2ebb92834c Rename gfx_fbo_rect to video_fbo_rect 2016-05-10 02:34:36 +02:00
twinaphex 0e08dbe931 Rename gfx_coord to video_coord 2016-05-10 02:32:59 +02:00
Twinaphex 24a4436c9f Merge pull request #2981 from leiradel/master
better logging
2016-05-10 01:50:37 +02:00
Andre Leiradella 938257b1ed better logging 2016-05-09 20:44:59 -03:00
twinaphex d0f6facc0f (runloop.c) Rename functions 2016-05-10 01:44:13 +02:00
twinaphex 5d821f42a3 Turn another runloop_ctl action into a static function 2016-05-10 01:41:58 +02:00
twinaphex af2a33a8cb Move core_option_manager to managers/ 2016-05-10 01:25:47 +02:00
twinaphex 2c6d6a223c Rename core_option functions 2016-05-10 01:21:55 +02:00
twinaphex 3dc55d4e72 command.c - cleanups 2016-05-09 21:36:17 +02:00
twinaphex b3422b33fd Add parameter to command_new 2016-05-09 21:25:37 +02:00
twinaphex f15f28ce02 Refactor some command code 2016-05-09 21:23:53 +02:00
twinaphex 2691ab0c7d Rename command_event enums 2016-05-09 20:51:53 +02:00
twinaphex c6e65e1669 Rename functions 2016-05-09 20:41:59 +02:00
twinaphex 523ebed112 Combine command_event.c and command.c 2016-05-09 20:30:47 +02:00
twinaphex a98ef36d36 Rename event_cmd_ctl to command_event 2016-05-09 20:20:50 +02:00
twinaphex 3c74031c2f Rename rarch_cmd to command 2016-05-09 20:10:08 +02:00
twinaphex 1e87fed448 Change ifdef 2016-05-09 20:05:09 +02:00
twinaphex 6bbe5fb83a Avoid warning 2016-05-09 19:24:10 +02:00
twinaphex 1cd98f1cf7 (Androd) Buildfix 2016-05-09 19:21:40 +02:00
twinaphex 6ae20f2016 Create managers/ dir - move cheats.c and state_manager.c to it 2016-05-09 18:20:52 +02:00
twinaphex 7ba97e8703 Remove core_info_ctl 2016-05-09 18:11:17 +02:00
twinaphex 7ca75d46f8 Move net_http_special to network/ 2016-05-09 17:47:45 +02:00
twinaphex 751872afa4 Move netlogger.c to network/ 2016-05-09 17:45:21 +02:00
twinaphex 3722826e0a Rename netplay/ to network/ 2016-05-09 17:43:38 +02:00
twinaphex 344d1bf949 move remote.c to input/ 2016-05-09 17:37:29 +02:00
twinaphex d57574a2ca Rename some autosve functions 2016-05-09 08:17:35 +02:00
twinaphex 5f3f578311 Further otpimization 2016-05-09 08:03:36 +02:00
twinaphex 8bcc889d90 Comment this out - makes all tasks way too slow 2016-05-09 07:54:45 +02:00
twinaphex c82505ed9e Show FPS in title bar only when 'Display Framerate' is enabled 2016-05-09 07:44:13 +02:00
twinaphex b72f7001de (retroarch.c) Rename functions 2016-05-09 07:24:28 +02:00
twinaphex 685b234350 (remote.c) Rename functions 2016-05-09 07:19:18 +02:00
twinaphex 372e7d94cd Rename rewind.c to state_manager 2016-05-09 07:14:10 +02:00
twinaphex f8a7154557 Rename rarch_ functions 2016-05-09 07:09:26 +02:00
twinaphex 3b344257d7 (netplay.c) Refactor 2016-05-09 06:46:08 +02:00
twinaphex a66aa1c50d Cleanups 2016-05-09 06:42:59 +02:00
twinaphex 87b83ecf56 (RetroPad) Use socket_set_target 2016-05-09 06:40:51 +02:00
twinaphex e87f030246 C89_BUILD fixes 2016-05-09 05:50:08 +02:00
twinaphex 44ed8d1116 CXX_BUILD fixes 2016-05-09 05:48:47 +02:00
twinaphex d50109f60a video_texture_image.c - prevent warning 2016-05-09 04:56:41 +02:00
twinaphex 7272a3fdaf Prevent some warnings 2016-05-09 04:54:25 +02:00
twinaphex e1d04737cb (OSX PPC) Add line to libretro-common/include/compat/zlib.h 2016-05-09 04:51:18 +02:00
twinaphex 9c1d1f3af8 (GL) Remove these conditionals - mipmap support should be
detected at runtime
2016-05-09 04:38:20 +02:00
twinaphex 3dfd8a0584 Split up vertex/fragment shader conditionals for XMB ribbon 2016-05-09 04:31:21 +02:00
twinaphex 3e40b77108 Improve check for gl_check_mipmap 2016-05-09 03:49:57 +02:00
twinaphex ca976aeda9 Make gl_load_texture_data a static function 2016-05-09 03:44:46 +02:00
twinaphex 4e535f77c6 Add gl_check_mipmap 2016-05-09 03:40:59 +02:00
twinaphex d57395effb Define HAVE_ZLIB_DEFLATE 2016-05-09 02:51:51 +02:00
twinaphex 3f3adf0c0e Add return value for inet_aton 2016-05-09 02:50:02 +02:00
Twinaphex 6847ae689a Merge pull request #2978 from lakkatv/master
(XMB) Separate ps3 and psp layouts, for Gamegirl
2016-05-09 00:20:25 +02:00
Jean-André Santoni 7bb4af1e6d (XMB) separate ps3 and psp displays and start introducing more differences 2016-05-09 05:12:40 +07:00
twinaphex e07bba66f3 Buildfix 2016-05-08 23:52:05 +02:00
Jean-André Santoni 91835daee8 (XMB) Refactor variable names 2016-05-09 04:22:22 +07:00
Jean-André Santoni a5f06e9250 (XMB) Refactor variable names 2016-05-09 04:19:34 +07:00
Jean-André Santoni 8ac6d05e55 (XMB) Use variables instead of defines for icon alpha. 2016-05-09 04:16:23 +07:00
Twinaphex dad33da9cf Merge pull request #2977 from lakkatv/master
(XMB) Initial support for the Pixel theme, for Gamegirl
2016-05-08 23:12:54 +02:00
twinaphex 725c202498 Remove input_driver_ctl 2016-05-08 23:12:04 +02:00
Jean-André Santoni aa32b5cc6e (XMB) Use variables instead of defines for icon zoom. 2016-05-09 04:09:52 +07:00
Jean-André Santoni dfe9419522 (XMB) Use variables instead of defines for icon placement 2016-05-09 04:05:11 +07:00
Jean-André Santoni 08de0c75eb (XMB) Variable shadow offset 2016-05-09 03:57:02 +07:00
Jean-André Santoni ea53567520 (XMB) Initial support for the Pixel theme, for Gamegirl 2016-05-09 03:45:38 +07:00
Twinaphex 21907c77c8 Merge pull request #2976 from lakkatv/master
(XMB) Unhardcode shadow offset
2016-05-08 22:20:15 +02:00
Jean-André Santoni 464ed074e2 (XMB) Unhardcode shadow offset 2016-05-09 03:12:54 +07:00
Twinaphex 6ca2223671 Merge pull request #2975 from t-paul/vg-compile-fix
Fix typos in VideoCore driver causing compile error on Raspberry Pi.
2016-05-08 22:02:27 +02:00
Twinaphex 219f2f2430 Merge pull request #2974 from lakkatv/master
(XMB) Disable an optimization bug fixes a display bug
2016-05-08 22:00:43 +02:00
twinaphex 9c1885a46e Fix Display FPS 2016-05-08 22:00:30 +02:00
Jean-André Santoni 7341501e7e (XMB) Disable an optimization bug fixes a display bug 2016-05-09 02:58:35 +07:00
Torsten Paul 737e2832f2 Fix typos in VideoCore driver causing compile error on Raspberry Pi. 2016-05-08 21:55:46 +02:00
twinaphex 3002777196 Bugfix 2016-05-08 21:30:06 +02:00
twinaphex 1b8e8ac22a Remove video_shader_driver_ctl 2016-05-08 21:11:27 +02:00
twinaphex ed5954420b (MSVC) Buildfixes 2016-05-08 20:40:42 +02:00
twinaphex b20d550cc4 Rename video context driver functions 2016-05-08 20:32:56 +02:00
Twinaphex be1daeebd7 Merge pull request #2971 from t-paul/screensaver-fix
Suppress screensaver only if requested by user settings.
2016-05-08 20:26:39 +02:00
twinaphex 7399ba386a Rename gfx_ctx_ prefix 2016-05-08 19:24:23 +02:00
Torsten Paul 1979ea52d2 Suppress screensaver only if requested by user settings. 2016-05-08 19:22:45 +02:00
twinaphex bc74e7199b Move variables outside of gfx_ctx_ctl 2016-05-08 19:18:17 +02:00
twinaphex 510c804781 (Win32) Provide inet_aton implementation 2016-05-08 19:12:01 +02:00
Twinaphex 1ced4bda11 Merge pull request #2970 from t-paul/video-driver-init-fix
Ensure video_driver_frame_count is reset when the driver is (re-)initialized.
2016-05-08 19:01:12 +02:00
Torsten Paul 50a3cc3cf7 Ensure video_driver_frame_count is reset when the driver is (re-)initialized. 2016-05-08 18:48:38 +02:00
twinaphex 807b5c6325 Get rid of audio_driver_ctl 2016-05-08 18:24:25 +02:00
twinaphex 4791c37039 (Vita) Reimplement inet_ptrton for Vita 2016-05-08 18:09:03 +02:00
twinaphex de71776405 (audio driver) Cleanups 2016-05-08 18:03:09 +02:00
twinaphex 93d16aaba3 (audio driver) refactor functions 2016-05-08 18:00:32 +02:00
twinaphex 7e1a06d8dd Remove some warnings 2016-05-08 17:54:30 +02:00
twinaphex 518a83b2c3 Create audio_driver_toggle_mute 2016-05-08 17:42:20 +02:00
twinaphex ca79faa4ed Rename for consistency 2016-05-08 17:26:17 +02:00
twinaphex b1f6a7e0a1 Rename another function 2016-05-08 17:25:31 +02:00
twinaphex 8125579b7c (audio driver) Refactors 2016-05-08 17:03:51 +02:00
twinaphex 8b714d2932 (audio driver) Refactor 2016-05-08 16:54:15 +02:00
twinaphex 13998f583a (audio driver) Refactors 2016-05-08 16:50:23 +02:00
twinaphex 9dc3326d0e (audio_driver) Refactors 2016-05-08 16:45:58 +02:00
twinaphex e1307c7d4b Create audio_driver_setup_rewind 2016-05-08 16:28:24 +02:00
twinaphex 60789e0141 Cleanups 2016-05-08 16:25:26 +02:00
twinaphex e2090dc02d Vita doesn't support inet_pton either 2016-05-08 16:13:55 +02:00
twinaphex 0c05828874 Change more functions 2016-05-08 16:09:08 +02:00
twinaphex fc5f1524cc Convert more functions over 2016-05-08 16:02:46 +02:00
twinaphex 41a8496b1c Start converting functions 2016-05-08 15:53:12 +02:00
twinaphex d1eb9a0d3a Move variables outside of audio_driver_ctl 2016-05-08 15:48:12 +02:00
twinaphex 11ec23bc18 Create inet_ptrton 2016-05-08 15:41:34 +02:00
Twinaphex c3676a07b1 Merge pull request #2968 from Themaister/master
Fix inconsistencies between Vulkan and GL in ribbon.
2016-05-08 15:35:01 +02:00
Hans-Kristian Arntzen f91b36eec8 Fix inconsistencies between Vulkan and GL in ribbon.
Also fixes a shitty bug in menu_driver_draw_bg with pointer to stack.
2016-05-08 15:21:53 +02:00
Twinaphex b9d3de70ab Merge pull request #2967 from Themaister/master
Some ioctl cleanups, XMB ribbon in Vulkan.
2016-05-08 15:13:27 +02:00
Hans-Kristian Arntzen 8870e85395 More fixes for menu_display_ctl.
Grep shows nothing now.
2016-05-08 14:18:12 +02:00
Hans-Kristian Arntzen 66c4f608e6 Clear out rest of video_driver_ctl use. 2016-05-08 14:10:28 +02:00
Hans-Kristian Arntzen d723411436 De ioctl video_driver. 2016-05-08 14:00:51 +02:00
Hans-Kristian Arntzen ade5131833 Vulkan: Move to SPIRV-Cross. 2016-05-08 12:43:58 +02:00
Hans-Kristian Arntzen 951c3e4085 De-ioctl menu display interface.
Holy crap ...
2016-05-08 12:38:46 +02:00
Hans-Kristian Arntzen 464a4add66 XMB ribbon works in Vulkan. 2016-05-08 11:11:28 +02:00
Hans-Kristian Arntzen 26cfedc546 Add XMB ribbon shaders to Vulkan. 2016-05-08 09:54:36 +02:00
Hans-Kristian Arntzen 8faa6231db Fix some warnings. 2016-05-08 09:37:27 +02:00
twinaphex 2f6baffe45 Expand net_socket.c 2016-05-08 07:24:10 +02:00
twinaphex 897a058d29 (PS3) Avoid warning 2016-05-08 07:11:49 +02:00
twinaphex 889306f8ad Remove unused variable 2016-05-08 07:10:51 +02:00
twinaphex b909342e12 Cleanup 2016-05-08 07:00:28 +02:00
twinaphex b21f098119 Cleanups 2016-05-08 06:58:52 +02:00
twinaphex a9cec38c1d Remove RUNLOOP_CTL_IS_FRAME_COUNT_END 2016-05-08 06:36:52 +02:00
twinaphex 8e599379f6 Create runloop_is_focused 2016-05-08 06:34:25 +02:00
twinaphex 3f36c7f877 Get rid of RUNLOOP_CTL_FRAME_TIME 2016-05-08 06:31:12 +02:00
twinaphex 13e67aa44e Create runloop_iterate_data 2016-05-08 06:29:11 +02:00
twinaphex 0f7cdeaf78 Reduce two enums 2016-05-08 06:09:39 +02:00
twinaphex e165954395 Rename libretro_version_1 to core_impl 2016-05-08 05:29:10 +02:00
twinaphex 7e9eb5b6c4 Cleanup 2016-05-08 05:21:31 +02:00
twinaphex 5c269d38a1 (content.c) Remove content_ctl 2016-05-08 05:17:31 +02:00
twinaphex 6bf7112282 Cleanup another enum 2016-05-08 04:42:28 +02:00
twinaphex fadf87e022 Remove another useless enum 2016-05-08 04:38:01 +02:00
twinaphex ccb13cdd82 remove unnecessary enum 2016-05-08 04:36:16 +02:00
twinaphex 0bd45c7f51 Add content_load 2016-05-08 04:35:00 +02:00
twinaphex 6195deb188 De-ioctl-ify content functions 2016-05-08 04:31:56 +02:00
twinaphex eb689fdd24 C89_BUILD fix 2016-05-08 04:21:56 +02:00
twinaphex b690b58f8d Another buildfix for CXX_BUILD 2016-05-08 04:20:25 +02:00
twinaphex 496fcc9798 Buildfix 2016-05-08 04:16:11 +02:00
twinaphex 1968b0a333 Dunno where this came from 2016-05-08 04:06:07 +02:00
twinaphex ae9ea8f2db (MSVC) Buildfixes 2016-05-08 04:04:50 +02:00
radius be3f0f9267 example implementation of using the menu driver to display the OSD, commented out 2016-05-07 19:51:52 -05:00
radius 6999322a53 add a function to retrieve the current OSD line 2016-05-07 19:51:51 -05:00
twinaphex a64fe6ce63 Move static variables outside of runloop_ctl 2016-05-08 01:41:32 +02:00
twinaphex 6544772fb8 De-ioctl ify core_ctl 2016-05-08 01:33:57 +02:00
twinaphex 831de5f15e Add prefix 'core' to libretro_version_1.c 2016-05-08 00:31:21 +02:00
twinaphex 80a453bad1 De-ioctlify command.c 2016-05-08 00:25:04 +02:00
twinaphex 42019bd02f People don't like ioctl functions - so here goes 2016-05-08 00:15:21 +02:00
Twinaphex 271a4a41ba Merge pull request #2964 from GeneralFailer/master
Minor capitalization fix
2016-05-07 21:45:16 +02:00
GeneralFailer fb62f9bef5 Update retroarch.1 2016-05-07 23:42:48 +04:00
twinaphex ef5da43d35 Cleanups 2016-05-07 18:35:06 +02:00
twinaphex 7f272a4bd0 Add missing parameters 2016-05-07 16:24:26 +02:00
twinaphex 0a2544c1bf (rjpeg) Try manual conversion to RGB 2016-05-07 06:55:52 +02:00
twinaphex c5895b4aa0 (libretro-common/formats/jpeg/rjpeg.c) Allocate out_img->pixels 2016-05-07 06:49:48 +02:00
twinaphex f86d4d400d Start adding jpeg hooks 2016-05-07 06:20:17 +02:00
twinaphex 7b79975516 Start adding rjpeg_image_load 2016-05-07 06:16:02 +02:00
twinaphex b2df35bd7c Correct glDeleteVertexArrays 2016-05-07 05:00:14 +02:00
twinaphex 5127536217 (libretro-common) Expand GLSM 2016-05-07 04:42:18 +02:00
twinaphex 0ab61a2428 (libretro-common) Add rjpeg 2016-05-07 04:33:54 +02:00
twinaphex 857a6ac479 Remove streams/file_stream.h 2016-05-07 04:17:33 +02:00
twinaphex 268be70fe8 Cleanups 2016-05-07 04:15:39 +02:00
twinaphex c192b8d61f (video_texture_image.c) Cleanup 2016-05-07 04:07:27 +02:00
twinaphex b8644536d2 (video_texture_image.c) Cleanups - we use nbio now in video_texture_image_load
for both TGA and PNG, and we remove the file I/O based RPNG function
2016-05-07 04:04:09 +02:00
twinaphex 9ac9ed4b36 Cleanups 2016-05-07 03:35:31 +02:00
twinaphex afd56893f5 video_texture_image - cleanups 2016-05-07 03:31:24 +02:00
twinaphex b38e269215 (GLSM) Some buildfixes 2016-05-07 01:32:34 +02:00
twinaphex f4553505a4 (GLSM) Update 2016-05-07 00:07:49 +02:00
twinaphex 7eef9b87b0 Add glTexSubImage2D 2016-05-06 23:54:48 +02:00
twinaphex d997526a1d Updates 2016-05-06 22:40:11 +02:00
twinaphex dd36a3792c (GLSM) Add new wrapper functions 2016-05-06 22:20:03 +02:00
twinaphex 5d5ad0548a Update 2016-05-06 22:15:24 +02:00
twinaphex 2e319213e3 Expand glsm 2016-05-06 22:08:49 +02:00
Alcaro e4c9ec0903 Or here. 2016-05-06 20:23:54 +02:00
Alcaro 056e8c3ab3 No need to remove function names here either. 2016-05-06 20:22:37 +02:00
Alcaro eae911bcd2 No need to remove function names, they don't slow anything down and they're invaluable for crash debugging. 2016-05-06 20:20:21 +02:00
Twinaphex 77649b2f23 Fix memory leak in async_job_free 2016-05-06 19:14:38 +02:00
twinaphex 648da7b6e6 (task_queue) Remove unused variable 2016-05-06 18:57:11 +02:00
Twinaphex a85bc7bab6 RARCH_DISPLAY_CT_LOCK_NEW - make sure lock is freed beforehand 2016-05-06 18:55:42 +02:00
Twinaphex 6708be93e4 Merge pull request #2957 from sronsse/fixes_for_team
Task retrieval mechanism
2016-05-06 16:22:52 +02:00
Twinaphex cdd199f763 Merge pull request #2958 from lakkatv/master
(Lakka) Disable buildbot updaters
2016-05-06 15:55:36 +02:00
Jean-André Santoni d757889b19 (Lakka) Disable buildbot updaters
Keeping two concurrent update systems causes a lot of bugs. Especially in our case where the buildbot stuff overrides the system stuff. Users don't get how to use both updaters properly. They end up using outdated cores or joyconfigs, or even assets. Using the Lakka updater in our case is a better solution, because it ensures version compatibility between all the components. I will do an additional effort to keep all the libretro packages up to date in Lakka.
2016-05-06 15:08:53 +07:00
Sebastien Ronsse 9f45722020 task http: Update http_task_get_transfer_list using new task retrieval mechanism 2016-05-06 16:42:17 +10:00
Sebastien Ronsse 8f6bb23f38 task queue: Implement running tasks retrieval mechanism 2016-05-06 14:41:45 +10:00
twinaphex 10fe532d29 Cleanup 2016-05-06 06:25:06 +02:00
twinaphex 5db093924c Cleanup - slock_new 2016-05-06 06:05:30 +02:00
twinaphex 9c00dd0e2e Cleanup 2016-05-06 05:51:01 +02:00
twinaphex 3dc40263ea menu_content_load_from_playlist - use path_is_valid 2016-05-06 05:38:04 +02:00
twinaphex 9cff56ea62 Cleanup 2016-05-06 05:31:17 +02:00
twinaphex b5e7861125 menu_input_frame_retropad - cleanup 2016-05-06 05:19:31 +02:00
twinaphex 4ec6cb47ec Use BIT32_SET 2016-05-06 05:16:15 +02:00
twinaphex b91ad3a70e (libretro-common) Update glsm 2016-05-06 05:08:42 +02:00
twinaphex cce9190cb2 More cleanups 2016-05-06 04:51:00 +02:00
twinaphex 72bc5e134a Cleanup input_config_autoconfigure_joypad 2016-05-06 04:50:02 +02:00
Twinaphex 1552975c1d Merge pull request #2955 from t-paul/issue1521
Initialize window name at window creation time (fixes #1521).
2016-05-06 00:30:22 +02:00
Torsten Paul ccb224043b Initialize window name at window creation time (fixes #1521).
The protocol error reported in #1521 is caused by two different issues.
First xdg-screensaver fails to parse decimal values for the window id
(https://bugzilla.redhat.com/show_bug.cgi?id=1274931). Using the hex
notation fixes this part.

Second, the script reads the WM_NAME property from the window which is
not yet available at this time. Calling x11_update_window_title() early
ensures the property is set when xdg-screensaver is run.
2016-05-06 00:17:47 +02:00
Twinaphex 548baa7ece Merge pull request #2953 from leiradel/master
made find_last_slash public
2016-05-05 22:13:44 +02:00
Andre Leiradella b38e234d2e made find_last_slash public 2016-05-05 16:22:35 -03:00
Twinaphex f46bd99d0f Merge pull request #2952 from leiradel/master
http tasks can now be cancelled
2016-05-05 20:34:29 +02:00
Andre Leiradella 8be7fd5f0a http tasks can now be cancelled 2016-05-05 15:32:36 -03:00
twinaphex 8a77ac1f04 (GX) Should not be used for Salamander 2016-05-05 18:23:18 +02:00
twinaphex 78cbf97e70 Another fix 2016-05-05 17:58:58 +02:00
twinaphex 2314733af7 Cleanup 2016-05-05 17:52:30 +02:00
twinaphex 493ad4dfb8 (WGL) Typo buildfix 2016-05-05 17:50:26 +02:00
twinaphex 18e94a5365 (task_queue.c) Remove unused variable 2016-05-05 17:46:04 +02:00
twinaphex a7588292bf Another cleanup 2016-05-05 17:44:43 +02:00
twinaphex 8966f46d36 video_shader_set_backend - cleanup 2016-05-05 17:44:10 +02:00
twinaphex c04122d385 Set context driver's set_flags function when core GL context
is requested, and query the core GL context set bit when
loading a Cg shader
2016-05-05 17:40:38 +02:00
twinaphex 10b0fca258 Add GFX_CTL_SET_FLAGS 2016-05-05 17:37:24 +02:00
twinaphex 60233d1abb Add set_flags to context driver 2016-05-05 17:35:28 +02:00
Twinaphex b2dac30a5d Merge pull request #2945 from sronsse/fixes_for_team
task http: Add support for retrieving list of active transfers
2016-05-05 17:01:12 +02:00
Twinaphex 9b1dee0c9a Merge pull request #2951 from libretro/revert-2947-master
Revert "http tasks can now be cancelled; on-demand thumbnail download working"
2016-05-05 17:00:49 +02:00
Twinaphex 1c2bf6e305 Revert "http tasks can now be cancelled; on-demand thumbnail download working" 2016-05-05 17:00:43 +02:00
Twinaphex 36f63e87d2 Merge pull request #2950 from libretro/revert-2948-master
Revert "(XMB) Bugfix the thumbnail display. And prevent download on non playl…"
2016-05-05 17:00:32 +02:00
Twinaphex c2102ecfb5 Revert "(XMB) Bugfix the thumbnail display. And prevent download on non playl…" 2016-05-05 17:00:24 +02:00
Twinaphex 6a7ccdf355 Merge pull request #2949 from FIX94/master
(GX) fixed program crash when no argv structure is present on start
2016-05-05 16:50:34 +02:00
FIX94 dc4a114d36 (GX) fixed program crash when no argv structure is present on start 2016-05-05 16:47:44 +02:00
Twinaphex cf07e06191 Merge pull request #2948 from lakkatv/master
(XMB) Bugfix the thumbnail display. And prevent download on non playl…
2016-05-05 16:35:36 +02:00
Jean-André Santoni 87e22df9c8 (XMB) Bugfix the thumbnail display. And prevent download on non playlist entries. 2016-05-05 21:15:05 +07:00
Twinaphex e02a81a96a Merge pull request #2947 from leiradel/master
http tasks can now be cancelled; on-demand thumbnail download working
2016-05-05 15:37:11 +02:00
Andre Leiradella 9b889e14d4 http tasks can now be cancelled; on-demand thumbnail download working 2016-05-05 09:48:50 -03:00
Sebastien Ronsse 14c14b72ac task http: Add support for retrieving list of active transfers 2016-05-05 14:59:58 +10:00
twinaphex 400f50ddac Comment this out for now until we fundamentally fix it 2016-05-05 05:58:40 +02:00
twinaphex a22b99838d Get rid of variable core_context_inited 2016-05-05 05:53:50 +02:00
twinaphex d176f2d48f Try to query context driver about core GL context ability 2016-05-05 05:52:38 +02:00
twinaphex 9d225e388f Add GFX_CTL_GET_FLAGS 2016-05-05 05:49:48 +02:00
twinaphex 8136683ffc (context drivers) Start exposing core GL flag 2016-05-05 05:46:00 +02:00
twinaphex a0425dfb14 (Context drivers) Add get_flags function 2016-05-05 05:35:35 +02:00
Twinaphex cc0f8160b5 Merge pull request #2944 from sronsse/fixes_for_team
Queue and download/extract related fixes
2016-05-05 02:56:28 +02:00
Sebastien Ronsse d5b358fde8 menu: Fix bus error during simultaneous file download/decompression 2016-05-05 10:30:10 +10:00
Sebastien Ronsse e346eccbb7 task http: Fix http task finder logic leading to erroneous results 2016-05-05 10:18:29 +10:00
Sebastien Ronsse b100846ad5 task decompress: Refactor decompress checking code 2016-05-05 10:18:29 +10:00
Sebastien Ronsse b8849a574c task decompress: Add helper decompress check method 2016-05-05 10:18:29 +10:00
Sebastien Ronsse cc4b5dbf35 task queue: Fix multi-threading issues in threaded worker 2016-05-05 10:18:29 +10:00
Sebastien Ronsse d3c3d20994 task queue: Add task_queue_remove method 2016-05-05 10:18:29 +10:00
twinaphex e482bc7556 (GL) Avoid warning 2016-05-05 02:08:07 +02:00
twinaphex eb2a4f5c56 (GL) Nits 2016-05-05 02:07:33 +02:00
twinaphex 2c77616ec3 (gfx/drivers) Cleanups 2016-05-05 01:59:05 +02:00
twinaphex 1b84895ba0 (GL) Cleanup gl_check_fbo_dimensions 2016-05-05 01:42:08 +02:00
twinaphex d4a322add3 Cleanups 2016-05-05 01:33:54 +02:00
twinaphex 0ad0763413 gl_read_viewport - cleanup 2016-05-05 01:32:35 +02:00
twinaphex 7feac862db (GL) Cleanups 2016-05-05 01:29:52 +02:00
twinaphex b0193885ca (GLSM) Update 2016-05-05 00:23:12 +02:00
twinaphex 9a7bde6a02 (GLSM) Add glBlendEquationSeparate 2016-05-04 23:53:21 +02:00
twinaphex 5889489ff7 (libretro-common) Update GLSM 2016-05-04 21:12:34 +02:00
twinaphex 9465a00d4b Create video_frame_convert_rgba_to_bgr 2016-05-04 18:44:39 +02:00
twinaphex 55bc1ccd78 (video4linux2) Cleanup/nits 2016-05-04 17:16:06 +02:00
twinaphex 2e20e4bbdb Add header 2016-05-04 17:13:25 +02:00
twinaphex b8e140d6c4 (record_ffmpeg.c) Move scaler code to gfx/video_frame.h 2016-05-04 17:11:22 +02:00
twinaphex bfcc89f580 (SDL) Use video_frame_scale 2016-05-04 16:56:16 +02:00
twinaphex 7b2a2f2336 Create video_frame_scale 2016-05-04 16:44:38 +02:00
twinaphex 71cc2fe761 (screenshot.c) Cleanups 2016-05-04 16:37:58 +02:00
twinaphex 3567c40bb7 take_screenshot - cleanup 2016-05-04 16:36:10 +02:00
twinaphex 2c3ca6efed Move convert frame function to gfx/video_frame.h 2016-05-04 16:34:13 +02:00
twinaphex bf53a939da Create gfx/video_frame.h 2016-05-04 16:32:24 +02:00
Twinaphex dce7730928 Merge pull request #2943 from sronsse/fixes_for_team
Fix deadlock due to missing slock_unlock in task threaded find function.
2016-05-04 14:28:10 +02:00
Sebastien Ronsse 9b36274a95 Add check for decompression failure in generic download function 2016-05-04 15:23:37 +10:00
Sebastien Ronsse 3c23159148 Fix deadlock due to missing unlock in task threaded find function 2016-05-04 15:23:30 +10:00
twinaphex 83584c84f8 (sdl_gfx.c) Style nit 2016-05-04 04:45:46 +02:00
twinaphex 66b6129e98 Cleanups 2016-05-04 04:43:24 +02:00
twinaphex dca400aa40 Add ifdef 2016-05-04 04:38:44 +02:00
twinaphex 3ba02a3786 Cleanups 2016-05-04 04:34:05 +02:00
twinaphex a393d9a75b Cleanups 2016-05-04 04:22:41 +02:00
Twinaphex 803c27c582 (iOS) Cleanups 2016-05-04 04:13:33 +02:00
Twinaphex 51565e6336 (iOS) Avoid some analyze warnings 2016-05-04 04:10:33 +02:00
twinaphex f9bd28663a Nit 2016-05-04 04:03:46 +02:00
twinaphex d8dcaab996 (RPNG) Cleanup 2016-05-04 03:58:29 +02:00
Alcaro 64501d2cb0 No point pegging the CPU to download a file. 2016-05-03 18:17:12 +02:00
Alcaro 22f69da0e3 Uninitialized variables taste bad. 2016-05-03 17:52:43 +02:00
twinaphex 0e774f28d8 (Nuklear) Use menu_display_draw_cursor 2016-05-03 16:14:34 +02:00
twinaphex 93df66ea2f (Nuklear) Buildfix 2016-05-03 15:33:36 +02:00
twinaphex acd1e0b1e1 Move sendbuf variable to logger_send_v 2016-05-03 05:00:52 +02:00
twinaphex f60676f43e Create inet_htons 2016-05-03 04:35:51 +02:00
twinaphex 35b7d0423f init_network - fix some codepaths 2016-05-03 04:28:58 +02:00
twinaphex fd2096f3dc Cleanups 2016-05-03 04:26:18 +02:00
Twinaphex a3f3f00959 Merge pull request #2937 from lakkatv/master
(XMB) Prevent showing 'Directory not found' as a playlist. Fixes the …
2016-05-03 03:11:20 +02:00
Jean-André Santoni c7067356b5 (XMB) Prevent showing 'Directory not found' as a playlist. Fixes the black square bug. 2016-05-03 08:10:04 +07:00
twinaphex 6690711ace Fix label for 'Download Content' 2016-05-02 22:17:12 +02:00
twinaphex da72a96041 Implement labels for Input User Binds List 2016-05-02 22:15:25 +02:00
twinaphex 2eb4571290 Move this code to net_compat.c 2016-05-02 19:44:12 +02:00
twinaphex 70d3bce2bf (command.c) Nit 2016-05-02 19:36:02 +02:00
twinaphex dbd56997f4 Changes to getaddrinfo_retro 2016-05-02 19:30:12 +02:00
twinaphex a643952554 netlogger - cleanups 2016-05-02 19:15:04 +02:00
twinaphex 7869072dd9 (netlogger) Cleanups 2016-05-02 19:12:26 +02:00
twinaphex 9c44bbd9ee netlogger - cleanups 2016-05-02 19:09:42 +02:00
twinaphex 44cfa6d876 Cleanup 2016-05-02 19:04:03 +02:00
twinaphex bb45bf9a66 Cleanups 2016-05-02 19:02:32 +02:00
twinaphex b25b2a0e6c Some code de-duplication 2016-05-02 18:54:55 +02:00
twinaphex 00a49d068e Implement TCP protocol for socket_create 2016-05-02 18:47:34 +02:00
twinaphex 317ecabadf (Retropad) Use socket_create 2016-05-02 18:45:05 +02:00
twinaphex 18f8ded154 Flesh out socket_create some more 2016-05-02 18:42:13 +02:00
twinaphex 62508eca77 Create socket_create 2016-05-02 18:37:08 +02:00
twinaphex 0badc3ffd2 Cleanup 2016-05-02 17:48:17 +02:00
twinaphex e0c7bd2e57 (menu_displaylist.c) Cleanups 2016-05-02 17:33:29 +02:00
twinaphex ff5190ac76 menu_displaylist_ctl - cleanups 2016-05-02 17:28:20 +02:00
Twinaphex 54427bd377 (gl_raster_font.c) Avoid another static code analysis warning 2016-05-02 17:10:21 +02:00
Twinaphex 4039bc89d6 (gl_raster_font.c) Cleanups 2016-05-02 17:08:40 +02:00
Twinaphex 0fc31d2616 (menu_cbs.c) More cleanups 2016-05-02 17:02:09 +02:00
Twinaphex eeeec23c66 (OSX) Static code analyzer cleanups 2016-05-02 16:57:53 +02:00
twinaphex c9eac5cdc0 (Frontend / Linux) Create config dir by default 2016-05-02 15:24:06 +02:00
twinaphex 1e47961420 Cleanups 2016-05-02 15:21:30 +02:00
twinaphex da6a301a6e (Frontend) Cleanups 2016-05-02 15:20:20 +02:00
Twinaphex 84f9a4c1d7 (OSX) Path fix 2016-05-02 15:10:20 +02:00
twinaphex ce5d065014 Cast as NSUInteger 2016-05-02 14:54:08 +02:00
twinaphex 53fc458795 (Cocoa) Store idiom type inside unsigned variable 2016-05-02 14:53:23 +02:00
twinaphex 78c13f59d0 (iOS) Build fix 2016-05-02 14:52:26 +02:00
twinaphex 5d31e561a2 Remove 'for further information' line 2016-05-02 14:50:26 +02:00
Twinaphex e15bcabc10 Merge pull request #2936 from gouchi/master
add audio hdmi output
2016-05-02 14:45:34 +02:00
twinaphex da8a9bfeba Standardize config/remaps directories 2016-05-02 14:45:23 +02:00
twinaphex fbe43730b8 (Thumbnails Updater) Fix name string 2016-05-02 14:16:47 +02:00
twinaphex e62c63cc0e Cleanup 2016-05-02 13:53:09 +02:00
twinaphex 6c243ef6fe Cleanups 2016-05-02 13:23:47 +02:00
gouchi 56180af727 add audio hdmi output 2016-05-02 12:11:47 +02:00
radius 6534f71238 building now on linux, untested 2016-05-01 23:07:12 -05:00
radius 74937e4a52 remove itoa dependency and other window specific code 2016-05-01 22:00:54 -05:00
radius 41a731967f remove the winsock2 dependency
I guess it should work on linux now
2016-05-01 21:39:27 -05:00
twinaphex c3e9f64bc2 Rename some settings 2016-05-02 04:24:26 +02:00
twinaphex 7f871d6e9a (PowerPC Mac) Fall back to shader pipeline 1 for OSX PowerPC - too slow otherwise 2016-05-02 04:05:03 +02:00
twinaphex 3be2491232 (Windows 10) Windows 10 should be major number 10 2016-05-02 03:16:46 +02:00
twinaphex 906b94966b Fix default path 2016-05-02 03:07:13 +02:00
twinaphex 8ff81312ad Fix fill_pathname_application_data 2016-05-02 02:48:37 +02:00
twinaphex 96723f3a57 Cleanup 2016-05-02 02:10:45 +02:00
twinaphex 31f3fc0abb Create socket_receive_all_nonblocking 2016-05-02 02:09:22 +02:00
Twinaphex fab90f4b96 (iOS) Avoid warning for unhandled CarPlay enum value 2016-05-02 01:55:02 +02:00
twinaphex fe8a502488 (autosave.c) Cleanups 2016-05-02 01:39:59 +02:00
twinaphex 0bd38a5e1d Remove some obsolete RARCH_CONSOLE ifdefs 2016-05-02 01:35:28 +02:00
twinaphex 2d348f68f9 Cleanup 2016-05-02 01:33:47 +02:00
twinaphex 3dd9a9ff98 Cleanup 2016-05-02 01:26:19 +02:00
twinaphex 72ec71a71c Cleanup 2016-05-02 01:23:42 +02:00
twinaphex 8c28ec0867 (remote.c) Refactor code 2016-05-02 01:13:25 +02:00
twinaphex e00de48e92 Cleanups 2016-05-02 00:21:13 +02:00
twinaphex e29b915536 Cleanups 2016-05-02 00:18:39 +02:00
twinaphex 3adbbc0bde (netlogger.c) Start using net_socket 2016-05-02 00:05:33 +02:00
twinaphex c2d6ecdc86 Include header 2016-05-01 23:52:55 +02:00
Alcaro f11a240190 Clean up the error handlers around here. 2016-05-01 23:50:20 +02:00
twinaphex 2e1fa648b8 Create socket_connect 2016-05-01 23:45:59 +02:00
twinaphex 2b3eeef2fa Avoid warnings 2016-05-01 23:37:49 +02:00
Twinaphex d0708fc832 (Netplay) Buildfixes 2016-05-01 23:21:30 +02:00
twinaphex bd9dd06ddd Get rid of duplicate function net_http_send 2016-05-01 23:17:17 +02:00
twinaphex 3d7b7f6afa init_udp_socket - cleanups 2016-05-01 23:01:41 +02:00
twinaphex b979af0a8c (netplay.c) Reuse it another time 2016-05-01 23:00:54 +02:00
twinaphex f4762f6f33 (netplay.c) Use socket_bind 2016-05-01 22:59:35 +02:00
twinaphex 004d9a613c Create socket_bind 2016-05-01 22:57:44 +02:00
twinaphex 78bb85e2f3 Reuse socket_init for net_http code 2016-05-01 22:45:32 +02:00
twinaphex 8b9456f419 Add socket_type to socket_init 2016-05-01 22:25:23 +02:00
Twinaphex d2a80e26db Buildfixes 2016-05-01 21:38:19 +02:00
twinaphex 0268212d40 Move socket code to net_socket.c 2016-05-01 21:36:28 +02:00
twinaphex a7b856b65f (libretro-common) Create net_socket 2016-05-01 21:18:45 +02:00
twinaphex ad71c56ea4 Create socket_init 2016-05-01 21:05:09 +02:00
twinaphex b7447b1dfc Cleanup 2016-05-01 20:54:30 +02:00
twinaphex f1098d8f6a Style nit 2016-05-01 20:50:26 +02:00
twinaphex 16a6142577 (Menu) Turn on XMB shadows for non-Lakka 2016-05-01 17:47:10 +02:00
twinaphex 07e1f6e748 Only show 'Download Core' so far when no core is yet added 2016-05-01 17:43:37 +02:00
Twinaphex 1b9d9647b0 Add 'Download Core' entry in 'Load Core' list 2016-05-01 17:36:40 +02:00
twinaphex d6443431c6 Ability to press left/right for Thumbnail Updater 2016-05-01 17:30:16 +02:00
twinaphex 73d198ed7f Set default thumbnail setting to 'boxart' 2016-05-01 16:56:15 +02:00
twinaphex d4d2f7fa6b Set default thumbnails setting to 1 2016-05-01 16:49:13 +02:00
Twinaphex 01c59cf0eb Merge pull request #2933 from lakkatv/master
(Lakka) Fix samba and bluetooth service management
2016-05-01 16:43:30 +02:00
Jean-André Santoni bede7cfe2b (Lakka) Fix samba and bluetooth service management 2016-05-01 21:33:31 +07:00
twinaphex f9462ed562 Update autoconfig path 2016-05-01 16:09:46 +02:00
twinaphex f59420094a Simplify dump_to_file_desperate 2016-05-01 16:05:07 +02:00
twinaphex 4372d55325 Change ifdef to ifndef RARCH_CONSOLE 2016-05-01 16:01:03 +02:00
twinaphex 3a23afcaa9 Buildfix for consoles 2016-05-01 15:59:55 +02:00
twinaphex be7da8d626 (menu_setting.c) Add config.h 2016-05-01 15:46:42 +02:00
twinaphex 09f5ccf050 open_default_config_file - cleanup 2016-05-01 15:33:48 +02:00
Twinaphex e135f0b209 (iOS) Add default directory for playlists 2016-05-01 15:30:25 +02:00
Twinaphex 65dfddd910 (OSX) Start using Library/Application Support for config file settings 2016-05-01 15:28:45 +02:00
twinaphex e9f0ff08fe (file_path_special.c) Add config.h 2016-05-01 15:08:31 +02:00
twinaphex 7d99e7cd51 Create fill_pathname_application_data 2016-05-01 15:07:45 +02:00
twinaphex 5032c677e6 (Net) Only comment out printf 2016-05-01 14:44:12 +02:00
twinaphex 8dd4333e16 (net_http) Comment out debug logging 2016-05-01 14:38:23 +02:00
radius 2931ae3d17 add a few more ports 2016-04-30 23:33:32 -05:00
radius a1ac5af8af allow configuration of port & IP 2016-04-30 23:23:56 -05:00
radius 7f004aee71 Complete basic implementation of retropad remote (windows only atm) 2016-04-30 22:49:51 -05:00
radius dd2bb5a17b add basic retropad remote 2016-04-30 22:42:50 -05:00
twinaphex 729b1bf64b (Menu) Rename more xmb_ variables 2016-05-01 04:46:16 +02:00
twinaphex 6d720ff337 (XMB/Shader pipeline) Rename some variables and enable ribbon by default 2016-05-01 04:40:20 +02:00
radius 1a9206ea51 android platform driver refinement 2016-04-30 16:39:29 -05:00
radius 96bc0111c8 revert the default config 2016-04-30 14:34:48 -05:00
radius c0a97eeb60 Modified
android:
- save thumbnails on the sdcard if writable
- save cheats on the sdcard if writable
- save remaps on the sdcard if writable
- save playlists on the sdcard if writable

windows:
- stub out defaults for save/state/system
2016-04-30 14:33:02 -05:00
Andrés 9baba9183c Merge pull request #2930 from lakkatv/master
Keep thumbnails at the root, since they have their own repo, for the …
2016-04-30 21:04:57 +02:00
Jean-André Santoni 0c09050760 Keep thumbnails at the root, since they have their own repo, for the sake of consistency with libretro-fetch 2016-05-01 02:03:17 +07:00
radius ec9aea1189 bump up version 2016-04-30 10:12:28 -05:00
radius cc215061fc fix wallpapers dir 2016-04-30 10:10:22 -05:00
radius 0ef416970c use relative paths whenever possible in the windows platform driver 2016-04-30 10:09:47 -05:00
Twinaphex f9417b9442 Merge pull request #2929 from lakkatv/master
Use autoconfig everywhere instead of autoconf
2016-04-30 16:28:11 +02:00
twinaphex 865e5b78dc (platform_linux.c) Cleanup 2016-04-30 16:12:37 +02:00
twinaphex 9a4eb1b3d1 Add HAVE_MENU ifdef 2016-04-30 16:11:28 +02:00
twinaphex 928767c5f3 (Win32) If built with OpenGL support, default to XMB menu driver 2016-04-30 16:11:17 +02:00
Jean-André Santoni 92985a4405 Use autoconfig everywhere instead of autoconf 2016-04-30 17:11:03 +07:00
Twinaphex aa96995171 Merge pull request #2927 from lakkatv/master
(OSX) Add a default path for the thumbnails dir. May fix #2924
2016-04-30 11:51:17 +02:00
Jean-André Santoni 7b8c108b5f (OSX) Add a default path for the thumbnails dir. May fix #2924 2016-04-30 14:33:57 +07:00
Andrés 6eda5a9e3f Merge pull request #2921 from lakkatv/master
(Lakka) Use a faster mirror for the firmware upgrades
2016-04-29 05:24:08 +02:00
Jean-André Santoni 7128037670 (Lakka) Use a faster mirror for the firmware upgrades 2016-04-29 10:20:39 +07:00
Andrés 874dabd475 Merge pull request #2919 from diablodiab/master
Change ALooper_pollAll in android_input_poll from a non blocking call…
2016-04-29 02:49:05 +02:00
Andrés 80509fdf7a Merge pull request #2918 from diablodiab/master
Change ALooper_pollAll in android_input_poll from a non blocking call…
2016-04-29 01:48:36 +02:00
Diablodiab 58c5cc6f46 Change ALooper_pollAll in android_input_poll from a non blocking call into a 1 ms
blocking call. For some reason this allows more input events to queue up in the
input queue for processing making it easier to press multiple gamepad buttons and
have it register within a single frame.
2016-04-29 00:42:09 +02:00
Andrés fd5861d79c Merge pull request #2915 from lakkatv/master
(XMB) Forgot to rename the gradient
2016-04-29 00:40:09 +02:00
Jean-André Santoni b058ca5263 (XMB) Forgot to rename the gradient 2016-04-29 05:38:24 +07:00
Andrés 96de4b3e0e Merge pull request #2914 from lakkatv/master
(XMB) Yet another gradient, for high contrast
2016-04-29 00:09:25 +02:00
Jean-André Santoni 0dc69d4721 (XMB) Yet another gradient, for high contrast 2016-04-29 05:06:32 +07:00
radius e576296131 make it possible to stop retroarch from creating default dirs for users with custom setups 2016-04-28 16:48:58 -05:00
twinaphex 2aad6bf2bb Improve action_switch_thumbnail - if thumbnail mode is 'off', then
pressing 'Y button' will do nothing. If not, you can cycle between
all thumbnail modes (except for Off)
2016-04-28 23:19:32 +02:00
twinaphex 6db13ab51d (udev) cleanup 2016-04-28 22:50:02 +02:00
twinaphex 02ea0a8a80 Use new_path 2016-04-28 21:47:33 +02:00
twinaphex cedb005c93 let's see if this works 2016-04-28 21:46:13 +02:00
Twinaphex 28cc81bfe7 Merge pull request #2913 from lakkatv/master
Copy alsa device list implementation to alsathread
2016-04-28 21:33:26 +02:00
Jean-André Santoni cacc8451a6 Copy alsa device list implementation to alsathread 2016-04-29 02:28:57 +07:00
twinaphex 61d6fb57e6 Buildfixes 2016-04-28 20:55:26 +02:00
twinaphex 48eb86cb47 (Win32) Buildfix 2016-04-28 20:52:30 +02:00
Twinaphex e3dfa361f0 (iOS/OSX) Buildfixes 2016-04-28 20:51:08 +02:00
twinaphex 895783d854 Move some variables 2016-04-28 20:49:13 +02:00
twinaphex 65dec874a8 Move some path settings 2016-04-28 19:52:25 +02:00
Twinaphex 829656391a (OSX) Fix build 2016-04-28 19:29:21 +02:00
twinaphex 11cc280239 (Win32) Buildfix 2016-04-28 19:27:17 +02:00
twinaphex 7dffc6286b Internally change directory settings 2016-04-28 19:26:02 +02:00
Twinaphex bd11c241ec Merge pull request #2911 from lakkatv/master
Update the thumbnails URLs
2016-04-28 17:29:28 +02:00
Jean-André Santoni b497e2ea5a Update the thumbnails URLs 2016-04-28 22:27:32 +07:00
radius 4734234dc5 fix win32 build 2016-04-28 09:00:43 -05:00
twinaphex 05d9e6a47d (Win32) Add default paths 2016-04-28 15:13:52 +02:00
twinaphex 5d449d5024 (libretro-common) net_http - cleanups 2016-04-28 11:58:44 +02:00
twinaphex ba415b6d3a Silence warnings 2016-04-27 23:07:36 +02:00
Twinaphex e69c43f2a8 C89_BUILD fixes 2016-04-27 23:03:49 +02:00
twinaphex f3521e4cc8 Fix CXX_BUILD 2016-04-27 22:54:33 +02:00
twinaphex cf74d1b853 (audio device code) Cleanups 2016-04-27 22:40:02 +02:00
Twinaphex 617b69d81f Merge pull request #2909 from gouchi/master
Adding audio device to menu setting
2016-04-27 22:35:29 +02:00
Twinaphex b0e9266416 Merge pull request #2908 from lakkatv/master
(XMB) Finalize the thumbnail type switching on keypress
2016-04-27 22:34:31 +02:00
gouchi b76c724872 Adding audio device to menu setting 2016-04-27 22:29:58 +02:00
Jean-André Santoni 7150ea5df2 (XMB) Finalize the thumbnail type switching on keypress 2016-04-28 03:26:09 +07:00
Alcaro 68a17c5401 Fix HTTP protocol violation. 2016-04-27 21:04:16 +02:00
twinaphex eb53356522 Add __INTEL_COMPILER ifdef to retro_inline.h 2016-04-27 16:05:24 +02:00
twinaphex 1efff4bdc3 CXX_BUILD fix 2016-04-27 14:52:28 +02:00
Twinaphex 6b6a2b93fa C89_BUILD fix for OSX 2016-04-27 14:43:42 +02:00
Twinaphex 2c221e747e (libretro_common) Include retro_common_api.h - interface_stream.h 2016-04-27 14:37:03 +02:00
twinaphex 3b9c406123 Add rule for OSX/iOS - ssize_t 2016-04-27 14:35:59 +02:00
twinaphex 15a30dae70 CLeanups 2016-04-27 14:29:28 +02:00
twinaphex 0264863520 (menu_displaylist.c) Cleanup 2016-04-27 14:26:45 +02:00
twinaphex 060478184b Cleanups 2016-04-27 14:20:09 +02:00
twinaphex dd4f24ecde Add need_entries_refresh and need_navigation_clear to
menu_displaylist_info strruct
2016-04-27 13:45:13 +02:00
twinaphex a5dc73dfde (menu_displaylist) Cleanup 2016-04-27 13:36:44 +02:00
twinaphex 27b4e72613 Button Y can now switch between Thumbnails modes (Boxart/Screenshots/Title) 2016-04-27 13:19:03 +02:00
twinaphex 4fd2fee2a7 np_is_server/np_is_spectate - cleanups 2016-04-27 11:30:50 +02:00
twinaphex 6cc60a2d02 CXX_BUILD fixes 2016-04-27 11:11:53 +02:00
twinaphex d4a50935d2 C89_BUILD fix 2016-04-27 10:58:38 +02:00
twinaphex b4f4720f51 (Cg) Update Cg simple ribbon courtesy of teepee 2016-04-26 22:11:58 +02:00
twinaphex 3f526ed625 Initialize device list after initializing audio driver 2016-04-26 18:10:52 +02:00
twinaphex d20a2edcb4 Add RARCH_AUDIO_CTL_DEVICES_LIST_NEW/RARCH_AUDIO_CTL_DEVICES_LIST_FREE/RARCH_AUDIO_CTL_DEVICES_LIST_GET 2016-04-26 18:08:25 +02:00
twinaphex f4b40cd108 (Audio) Add device_list_new/device_list_free to audio drivers 2016-04-26 17:55:20 +02:00
twinaphex e93924b0e2 Fix d3d_draw_pipeline 2016-04-26 12:47:00 +02:00
twinaphex aa55c1a7d9 Fix draw_pipeline 2016-04-26 12:46:16 +02:00
twinaphex 7c4df601f8 (Cg) Call gl_cg_set_program_base_attrib for XMB pipeline shaders 2016-04-26 09:16:25 +02:00
Twinaphex af1e9c4157 Merge pull request #2900 from t-paul/uniform-lookup-fix
Add uniform lookup for menu shaders.
2016-04-26 07:50:08 +02:00
Torsten Paul fdd6d26d85 Add uniform lookup for menu shaders.
This fixes the mix-up of parameter assignments for the XMB ribbon shader
which was caused by all 4 uniform locations set to 0.
2016-04-26 00:08:24 +02:00
Twinaphex b2ed32d664 Merge pull request #2899 from lakkatv/master
(XMB) Temporary patch for the messagebox glitch
2016-04-25 19:29:42 +02:00
Jean-André Santoni 2010e57279 (XMB) Complete the previous patch 2016-04-26 00:19:23 +07:00
Jean-André Santoni 90d31a527c (XMB) Temporary patch for the messagebox glitch 2016-04-26 00:09:30 +07:00
twinaphex 76d00b8b66 Fixes regression 2016-04-25 18:00:24 +02:00
twinaphex 2ce247f11a Revert "Revert "(XMB) Thumbnails shadows""
This reverts commit faa717a8ab.
2016-04-25 17:55:18 +02:00
twinaphex faa717a8ab Revert "(XMB) Thumbnails shadows"
This reverts commit ee076f848e.
2016-04-25 17:52:17 +02:00
Twinaphex 5f4687d16c Merge pull request #2898 from lakkatv/master
(XMB) Thumbnails shadows
2016-04-25 17:42:01 +02:00
Jean-André Santoni ee076f848e (XMB) Thumbnails shadows 2016-04-25 22:39:00 +07:00
twinaphex 89d4a5761a Add HAVE_SYSTEMD ifdefs 2016-04-25 15:21:39 +02:00
Twinaphex 936c0bb3b0 Merge pull request #2897 from lakkatv/master
(Lakka) Control systemd services. Touching the files was not enough.
2016-04-25 15:16:30 +02:00
twinaphex e15a385e70 Add HAVE_SYSTEMD check 2016-04-25 15:16:06 +02:00
twinaphex 576415d762 (Nuklear) Rename zr_ to nk_ 2016-04-25 15:01:58 +02:00
twinaphex 748f5dc74b (Nuklear/Zahnrad) Rename to 'nuklear' 2016-04-25 14:58:47 +02:00
twinaphex 68265f6c52 Add 'draw_pipeline to menu/drivers_display 2016-04-25 13:56:12 +02:00
twinaphex 54c0ca4bf5 C89_BUILD fixes 2016-04-25 13:45:53 +02:00
twinaphex a83e6b3405 (Cg) Cleanups 2016-04-25 13:02:05 +02:00
twinaphex 0a3ca14fde (Cg) Rename cg_data to cg 2016-04-25 12:51:01 +02:00
twinaphex 43943fe794 (Cg) Cleanups 2016-04-25 12:33:38 +02:00
twinaphex d4184df592 (Cg) Call gl_cg_reset_attribs before initializing Cg shader backend 2016-04-25 12:22:55 +02:00
twinaphex 01a9185a2d (Cg) Cleanups 2016-04-25 12:07:23 +02:00
twinaphex 9ff8a3c8e2 (Cg) Cleanups 2016-04-25 11:59:46 +02:00
twinaphex 65359297d8 Change 'Off' to 'OFF' 2016-04-25 11:37:34 +02:00
Jean-André Santoni a6acc7b31b (Lakka) Control systemd services. Touching the files was not enough. 2016-04-25 15:49:25 +07:00
twinaphex 242e579b89 (Cg/GLSL) Name some variables the same 2016-04-25 10:15:57 +02:00
twinaphex 78d48c53d2 Rename MENU_DISPLAY_CTL_DRAW_RIBBON to MENU_DISPLAY_CTL_DRAW_PIPELINE 2016-04-24 23:05:24 +02:00
twinaphex 18b0fb1422 (Menu) Cleanups 2016-04-24 22:56:28 +02:00
twinaphex bb43c8115f Rename XMB Ribbon Enable to 'Menu Shader Pipeline' 2016-04-24 22:49:15 +02:00
twinaphex a8485d451a (config.def.h) Set ribbon enable mode to 1 by default for GLES2 2016-04-24 22:16:54 +02:00
twinaphex 8cb66dd021 Add way to switch back and forth between shader pipeline 2016-04-24 22:03:39 +02:00
twinaphex b00202a83d (GLES2) Use XMB ribbon simple shader for GLES2 2016-04-24 20:29:42 +02:00
twinaphex d7b3e9cc8f Add old shader versions of XMB ribbon 2016-04-24 20:25:56 +02:00
Twinaphex 5fbcb50b5e Merge pull request #2896 from lakkatv/master
(Menu) Fix the index download animation bug for all download lists
2016-04-24 12:55:25 +02:00
Jean-André Santoni 20888aee7f (Menu) Fix the index download animation bug for all download lists 2016-04-24 17:30:23 +07:00
Twinaphex 43ce4756a1 Merge pull request #2895 from lakkatv/master
(Menu) Fix the animation bug when downloading index
2016-04-24 09:03:50 +02:00
Twinaphex d28763a89a Merge pull request #2894 from sergiobenrocha2/master
Sane default path for thumbnails [on linux].
2016-04-24 09:03:20 +02:00
radius 1d82b08af0 [nk] update font code 2016-04-24 01:07:51 -05:00
radius aa7ee86da6 [nk] update nuklear 2016-04-24 01:07:50 -05:00
Jean-André Santoni 9a356d85a0 (Menu) Fix the animation bug when downloading index
The menu was forcing a navigation selection clear on OK pressed without letting the menu driver perform it's animations. This patch separate the two events, OK is pressed, the index is downloaded, the menu driver animates the transition to the new list, and finally the navigation selection is cleared. In the right order. DISPLAYLIST_GENERIC should progressively disapear in profit of DISPLAYLIST_PENDING_CLEAR for more flexibility in the menus.
2016-04-24 07:23:07 +07:00
Andrés fbc1134a6e Fix the thumbnail downloader URL 2016-04-23 17:50:47 -05:00
sergiobenrocha2 7db1d2047b Sane default path for thumbnails [on linux]. 2016-04-23 19:20:16 -03:00
Alcaro bbb7871028 Why exactly are we iterating over this string one character per frame? 2016-04-23 22:50:46 +02:00
twinaphex dcd5391a75 (Thumbnails Updater) Added Thumbnails Updater 2016-04-23 22:31:39 +02:00
twinaphex a34ce90940 (d3d_common.cpp) Include d3dx9tex.h instead 2016-04-23 19:09:15 +02:00
twinaphex 6083f850aa (D3D) Buildfix 2016-04-23 19:04:19 +02:00
twinaphex cc7f661f9c (D3D) Buildfixes 2016-04-23 19:02:40 +02:00
Twinaphex 493b6850a5 Use include dir d3d/cg files 2016-04-23 18:19:35 +02:00
twinaphex 33cf9ce023 Add more d3dx9 header files 2016-04-23 18:17:28 +02:00
twinaphex 161b19cb73 Add gfx/include/d3d9 2016-04-23 18:11:22 +02:00
twinaphex d94a0a912c (D3D) Cleanups 2016-04-23 14:17:55 +02:00
twinaphex 7242d8dcf7 Revert "(D3D) Cleanups"
This reverts commit 64559154cf.
2016-04-23 11:34:30 +02:00
twinaphex 64559154cf (D3D) Cleanups 2016-04-23 11:21:38 +02:00
twinaphex 08b7ac500b (libretro-common) Updates 2016-04-23 10:40:46 +02:00
twinaphex 3902a6715a (D3D) Buildfix 2016-04-23 10:22:23 +02:00
twinaphex 38bc378c4d (D3D) Some buildfixes 2016-04-23 10:18:46 +02:00
twinaphex 61a71e91e0 (D3D common) Add C versions of functions 2016-04-23 09:26:38 +02:00
Twinaphex 5a0d656a47 (XMB) Rename noise2 to xmb_noise2 - fixes shader compilation
on OSX
2016-04-23 05:21:40 +02:00
Twinaphex d0153fb024 Merge pull request #2892 from t-paul/fix
Ensure the menu shader is activated.
2016-04-23 05:13:00 +02:00
Torsten Paul 6b049681b6 Ensure the menu shader is activated. 2016-04-23 05:04:50 +02:00
Twinaphex b6a51f006a Merge pull request #2890 from lakkatv/master
(XMB) Ribbon lighting + readability tweaks
2016-04-23 04:11:45 +02:00
Jean-André Santoni 422c6d8984 (XMB) Ribbon lighting + readability tweaks 2016-04-23 05:24:44 +07:00
twinaphex ce077533c2 (GLSL) Increase attrib array size 2016-04-22 15:22:27 +02:00
Twinaphex bfcfb40a7b Merge pull request #2888 from lakkatv/master
(XMB) Make gradient opaque unless libretro is running
2016-04-22 15:11:19 +02:00
Jean-André Santoni be6cdbc3c0 (XMB) Make gradient opaque unless libretro is running 2016-04-22 20:05:56 +07:00
twinaphex 99246ae3e8 (Cg) Cleanup 2016-04-22 14:37:11 +02:00
twinaphex 63f0e998db (Cg) Code deduplication cleanups 2016-04-22 14:05:45 +02:00
twinaphex 4250161327 (GLSL/Cg) Simplify some variables 2016-04-22 14:00:30 +02:00
Twinaphex 012c4006b1 (XMB) Remove unused variable 2016-04-22 13:35:47 +02:00
twinaphex f3f6e6ff70 (Cg) Make cg_attribs bigger - would lead to overflows when sending
XMB ribbon to it
2016-04-22 13:27:50 +02:00
Twinaphex 1e2917a78c Merge pull request #2887 from lakkatv/master
(XMB) Animation polishing
2016-04-22 13:18:18 +02:00
Jean-André Santoni 9cd0d46476 (XMB) Add back the red gradient 2016-04-22 18:16:31 +07:00
Jean-André Santoni 339a0cdef4 (XMB) Increase the delay for xmb_toggle to make the animation more noticeable 2016-04-22 18:11:39 +07:00
Jean-André Santoni 0f6c3564dc (XMB) Use an easing function closer to the one used in PS3 2016-04-22 18:10:20 +07:00
Twinaphex 0f38dc8e3e Merge pull request #2886 from lakkatv/master
(XMB) Code cleaning
2016-04-22 12:56:21 +02:00
Jean-André Santoni f47c020946 (XMB) Code cleaning 2016-04-22 17:43:23 +07:00
Twinaphex 818009e75c Merge pull request #2885 from lakkatv/master
(Menu) Refactoring
2016-04-22 12:31:23 +02:00
Jean-André Santoni c7f8df9327 (Menu) Use MENU_DISPLAY_CTL_LIBRETRO_RUNNING in all menu drivers 2016-04-22 17:25:02 +07:00
Jean-André Santoni a06ebe33e4 (Menu) Remove useless variables 2016-04-22 17:21:52 +07:00
Jean-André Santoni d76cca7a47 (XMB) Use MENU_DISPLAY_CTL_LIBRETRO_RUNNING 2016-04-22 17:14:34 +07:00
Jean-André Santoni dad5215d93 (XMB) Rename variables 2016-04-22 17:11:56 +07:00
Twinaphex 397861ee7e Merge pull request #2884 from lakkatv/master
(XMB) Gradient improvements
2016-04-22 10:23:58 +02:00
Jean-André Santoni f8f8650349 (XMB) More gradients 2016-04-22 15:20:08 +07:00
Jean-André Santoni 171453ac1d (XMB) Use MENU_DISPLAY_CTL_DRAW instead of MENU_DISPLAY_CTL_DRAW_BG in xmb_draw_dark_layer 2016-04-22 14:27:34 +07:00
Jean-André Santoni fe255f103e (XMB) Use a separate function to darken the screen 2016-04-22 14:05:18 +07:00
Jean-André Santoni a4308640a2 (XMB) Gradient switching 2016-04-22 13:47:14 +07:00
twinaphex 9a1fed8598 Don't bake in strlcpy/strlcat for OSX 2016-04-22 08:13:13 +02:00
twinaphex c11f06e584 (MaterialUI) Cleanups 2016-04-22 08:07:03 +02:00
twinaphex d9ddb92a90 (egl_common.c) Silence warning 2016-04-22 07:56:32 +02:00
Jean-André Santoni 989823691e (XMB) Normalize the shadows setting name 2016-04-22 12:46:56 +07:00
Twinaphex 9e686299d2 Merge pull request #2883 from lakkatv/master
(XMB) Ribbon Enable setting
2016-04-22 07:37:47 +02:00
Jean-André Santoni a1e91ff606 (XMB) Ribbon Enable setting 2016-04-22 12:32:32 +07:00
twinaphex b34da03281 Update 2016-04-22 05:31:56 +02:00
twinaphex ac18671ead Update libretro-common 2016-04-22 05:28:49 +02:00
twinaphex 4750e87c76 (GLSM) Add comments 2016-04-21 22:47:48 +02:00
twinaphex 0c0134d4d6 Revert "Cleanups"
This reverts commit d239bee4e8.
2016-04-21 21:24:14 +02:00
twinaphex d0a87a236d Do blending begin/end only once instead of for every item 2016-04-21 10:16:21 +02:00
twinaphex a908cf4101 Do blending begin / end only once for horizontal tabs 2016-04-21 10:14:46 +02:00
twinaphex d239bee4e8 Cleanups 2016-04-21 09:39:36 +02:00
twinaphex 15530a351b (MaterialUI) Cleanups 2016-04-21 09:28:22 +02:00
twinaphex 2c75c45f3b Refactor xmb_draw_icon 2016-04-21 09:18:03 +02:00
twinaphex ba91ae5909 (XMB) Refactor icon code 2016-04-21 09:14:25 +02:00
twinaphex 4f2d1d7c93 Silence warning 'val may be unused uninitialized in this function' 2016-04-21 07:22:26 +02:00
twinaphex 1add138dae (XMB) Cleanups 2016-04-21 07:02:30 +02:00
twinaphex 9ba0cbfac7 Cleanup menu_display_draw_cursor 2016-04-21 05:08:36 +02:00
twinaphex af976d5da3 Cleanup xmb_draw_bg 2016-04-21 05:04:01 +02:00
twinaphex 3ddb5d51b3 Cleanups 2016-04-21 04:54:07 +02:00
twinaphex c9ed624078 Create menu_display_set_alpha 2016-04-21 04:34:02 +02:00
twinaphex 02776fed31 (XMB) Cleanups 2016-04-21 04:17:45 +02:00
twinaphex f2ed54fcf3 (XMB) cleanups 2016-04-21 04:12:24 +02:00
Twinaphex 39305b920c Merge pull request #2881 from lakkatv/master
(XMB) Ribbon alpha improvements
2016-04-20 23:45:03 +02:00
Jean-André Santoni 033ccf4803 (XMB) Remove dont_replace_coords 2016-04-21 03:36:35 +07:00
Jean-André Santoni d22b72a892 (XMB) Ribbon alpha improvements
Honor the xmb alpha setting, and the fade in animation.
2016-04-21 03:21:59 +07:00
Twinaphex ec19f27971 Merge pull request #2880 from lakkatv/master
(XMB) Fix some icons in the quick menu
2016-04-20 21:56:54 +02:00
Jean-André Santoni 01dcf48c5b (XMB) Fix some icons in the quick menu 2016-04-21 02:53:42 +07:00
twinaphex 8de7fa63ae Remove this - seems to be unnecessary 2016-04-20 21:40:30 +02:00
twinaphex cb3a3a7980 Expand ifdef 2016-04-20 21:34:42 +02:00
twinaphex 06c1fb2a5c Add ifdefs around shader code 2016-04-20 21:23:39 +02:00
Twinaphex d1d3bd6e4b Merge pull request #2879 from lakkatv/master
(XMB) Ribbon refactoring
2016-04-20 20:33:25 +02:00
Jean-André Santoni 343824858b (XMB) Disable ribbon 2016-04-21 01:29:37 +07:00
Jean-André Santoni 04370c6597 (XMB) Separate xmb_draw_bg and xmb_draw_ribbon. Fixes the black help layer. 2016-04-21 01:20:52 +07:00
Jean-André Santoni 252414f4d7 (XMB) Move the ribbon display code to menu_display 2016-04-21 01:18:30 +07:00
Twinaphex 5530f7fe63 Merge pull request #2877 from lakkatv/master
(XMB) Temporary fix for the GLSL ribbon on OSX
2016-04-20 19:30:17 +02:00
Jean-André Santoni 0bdf68d0ea (XMB) Temporary fix for the GLSL ribbon on OSX 2016-04-21 00:26:05 +07:00
Twinaphex 6de2827b57 Merge pull request #2876 from lakkatv/master
(Menu) Fix a regression in xmb_draw_text
2016-04-20 18:38:13 +02:00
Jean-André Santoni 29d07d1ba6 (Menu) Fix a regression in xmb_draw_text 2016-04-20 23:25:52 +07:00
twinaphex a912a64514 (XMB) Cleanups 2016-04-20 17:37:31 +02:00
twinaphex a7142680ca (XMB) Cleanup 2016-04-20 17:34:15 +02:00
twinaphex a713325459 (XMB) Clenaups 2016-04-20 08:01:51 +02:00
Twinaphex 6fe8637f6a Merge pull request #2875 from fr500/master
[zr] update to the new toolkit
2016-04-20 07:52:58 +02:00
radius 2443c34ae2 [nk] make it render something again 2016-04-20 00:46:41 -05:00
twinaphex 9af9a1c89e Cleanups 2016-04-20 07:31:26 +02:00
twinaphex d7e6ada920 Rename mui_blit_line 2016-04-20 07:07:14 +02:00
twinaphex a1969de2c3 Create menu_display_draw_text 2016-04-20 06:56:19 +02:00
twinaphex 4325a323e5 Remove duplicate blending 2016-04-19 23:40:36 +02:00
twinaphex a29ac9598a (XMB) Don't need to include glsym anymore 2016-04-19 23:15:17 +02:00
twinaphex 1bbc2f09b5 (courtesy of teepee) Rewrite the ribbon code to use the coordinate
array
2016-04-19 23:00:55 +02:00
twinaphex b479903e3f Simplify Resume Content/ Close Content / Restart Content 2016-04-19 18:31:48 +02:00
twinaphex 30c1cd8de9 Remae Quick Menu options 2016-04-19 18:13:32 +02:00
twinaphex 4a29f71272 (Menu) Cleanups 2016-04-19 17:40:03 +02:00
twinaphex 65bd8194cd Cleanup 2016-04-19 17:37:27 +02:00
twinaphex 3387a0d678 (menu display) Create bind texture functions 2016-04-19 08:53:48 +02:00
twinaphex 17273493ef (Menu) Create viewport function callback 2016-04-19 08:50:35 +02:00
twinaphex cddeabd4ec (Zarch) Cleanup 2016-04-19 08:36:20 +02:00
twinaphex f3d072cdcf Add dont_replace_coords to menu_display_ctx_draw_t 2016-04-19 08:08:40 +02:00
twinaphex 1aa8a950ef Set draw->x/draw->y outside before calling MENU_DISPLAY_CTL_DRAW_BG 2016-04-19 07:58:50 +02:00
twinaphex cbcbd895d2 Create menu_display_draw_cursor - code de-duplication 2016-04-19 07:41:05 +02:00
twinaphex 528eddbed5 Cleanups for cursor code 2016-04-19 07:35:26 +02:00
twinaphex 846bea4074 (XMB) Cleanup 2016-04-19 07:24:37 +02:00
twinaphex 0283a87560 (XMB) Disable XMB ribbon 2016-04-19 07:17:39 +02:00
twinaphex ee639d8b20 (XMB/Zarch) Use same coord array for XMB/Zarch 2016-04-19 07:17:17 +02:00
twinaphex 03de4a0b35 Change argument order of menu_display_push_quad 2016-04-19 07:04:00 +02:00
twinaphex c761b14eb4 Move zarch_zui_push_quad and zarch_zui_snow to menu_display 2016-04-19 06:57:53 +02:00
twinaphex 1d1b868103 Simplify MENU_DISPLAY_CTL_DRAW_GRADIENT 2016-04-19 06:30:10 +02:00
radius 86388cddfe [zr] start moving to the new version 2016-04-18 18:46:33 -05:00
radius ddd8e29d87 [zr] start moving to the new version 2016-04-18 18:00:13 -05:00
radius 47b37e949f [zr] start moving to the new version 2016-04-18 17:59:45 -05:00
radius 8b302c369e [zr] start moving to the new version 2016-04-18 17:59:32 -05:00
aliaspider 7f63016ccb (3DS) osSetSpeedupEnable should always be called. 2016-04-18 19:26:18 +01:00
Twinaphex 9d0047798d Merge pull request #2874 from aliaspider/master
(3DS) gfx driver: improvements / fixes.
2016-04-18 18:10:40 +02:00
aliaspider 0ffba39280 (3DS) restore state correctly when suspending/exiting app. (fixes #2207) 2016-04-18 16:38:32 +01:00
aliaspider 4f54025a50 (3DS) 3D slider display mode selection tweaks. 2016-04-18 15:55:34 +01:00
aliaspider 0f8895bcc3 (3DS) the parallax layer register can be written to from userland with
GSPGPU_WriteHWRegs.
2016-04-18 15:22:41 +01:00
twinaphex 2d69615f1d Add some compatibility defines for XMB ribbon pipeline shader 2016-04-18 03:56:08 +02:00
twinaphex faa3e3557c Exclude SDL for C89_BUILD 2016-04-18 03:23:47 +02:00
twinaphex acf9f7aad1 C89/C90_BUILD fixes 2016-04-18 03:00:23 +02:00
twinaphex c75143a62f CXX_BUILD fixes 2016-04-18 02:56:42 +02:00
twinaphex ab1c26d532 (XMB) Cleanups 2016-04-18 02:27:46 +02:00
twinaphex a8b8ca7a96 Cleanup mui_context_reset_textures 2016-04-18 02:24:37 +02:00
twinaphex 06796bcc14 Refactor xmb_context_reset_textures 2016-04-18 02:20:54 +02:00
twinaphex 8a8a270159 (XMB) Cleanups 2016-04-18 02:10:24 +02:00
twinaphex c7be8edd89 (XMB) Cleanups 2016-04-18 01:53:50 +02:00
twinaphex 38cc90d0e0 (XMB) Refactor ribbon 2016-04-18 01:52:16 +02:00
twinaphex 3264426a96 (XMB) Add coord_array 2016-04-17 23:23:48 +02:00
Twinaphex 25c2acb98d Merge pull request #2873 from lakkatv/master
(XMB) Fix the ribbon with GLES
2016-04-17 21:58:57 +02:00
Jean-André Santoni 8e4934edae (XMB) Fix the ribbon with GLES 2016-04-18 02:50:48 +07:00
Twinaphex 1b111feb9e Merge pull request #2872 from aliaspider/master
(3DS) add more display modes for the top screen that can be controlled by the 3D slider.
2016-04-17 21:16:07 +02:00
aliaspider 4994de806a (3DS) add more display modes for the top screen that can be controlled
by the 3D slider.
2016-04-17 20:10:21 +01:00
twinaphex 34389dbd22 Remove useless glVertexPointer call 2016-04-17 20:42:12 +02:00
twinaphex 2fc465ea83 Disable Ribbon by default 2016-04-17 20:14:12 +02:00
Twinaphex 287fa45e73 Merge pull request #2871 from lakkatv/master
(XMB) Ribbon: use gfx_coords_t, and unhardcode some numbers
2016-04-17 20:11:29 +02:00
Jean-André Santoni 0410d7a59e (XMB) Ribbon: use gfx_coords_t, and unhardcode some numbers 2016-04-18 01:05:27 +07:00
twinaphex 7b3b4de3b9 Ribbon GLSL fragment shader - remove this unused line 2016-04-17 18:25:25 +02:00
twinaphex 09b0a09ca2 Alpha needs to be set to 0.90 for gradient ribbon background,
otherwise fadeout will not work properly when we are at the info
screen
2016-04-17 18:20:41 +02:00
twinaphex ec4f961348 (XMB Cg) Ribbon works with Cg now too 2016-04-17 17:59:40 +02:00
aliaspider 1465cf1ffc (3DS) allow setting a start offset in the texture 2016-04-17 15:30:44 +01:00
twinaphex 05f2153549 Change uniform_info's uniform type to unsigned 2016-04-17 16:07:32 +02:00
aliaspider a609a748db (3DS) move shaders to a subdirectory. 2016-04-17 13:27:55 +01:00
aliaspider 27fc306b19 (3DS) refactor shaders. 2016-04-17 13:23:56 +01:00
Twinaphex 66ba52eab0 CXX_BUILD fixes 2016-04-17 07:49:54 +02:00
Twinaphex c8d97d05e7 (shader_glsl.c) Fix warnings 2016-04-17 07:45:37 +02:00
twinaphex 0f21ab247c header cleanup 2016-04-17 07:37:00 +02:00
twinaphex 97d5a971a4 Change header includes 2016-04-17 07:34:01 +02:00
twinaphex 811a2d1419 Create input_defines.h 2016-04-17 07:32:08 +02:00
twinaphex ef835f93d5 Change function signature for set_coords 2016-04-17 07:12:48 +02:00
twinaphex e48e294009 (XMB Ribbon) Make gradient background transparent when libretro
core is running
2016-04-17 06:56:26 +02:00
twinaphex 71df73e640 (video_shader_driver.h) Cleanup 2016-04-17 06:17:23 +02:00
twinaphex 58f145282e (XMB) Set uniform to vertex program and add 'add_prefix' to uniform_info struct 2016-04-17 06:11:48 +02:00
twinaphex 6579b5f3c8 Add XMB shader compilation to shader_gl_cg.c 2016-04-17 05:52:26 +02:00
twinaphex 30ade96fc0 Add Cg conversions of XMB ribbon/Zahnrad 2016-04-17 05:48:06 +02:00
twinaphex 641a37ce06 Change some function parameters for gl_ff_matrix/gl_ff_vertex 2016-04-17 05:00:42 +02:00
twinaphex 46b2100132 gl_cg_set_mvp - cleanup 2016-04-17 04:55:58 +02:00
twinaphex 07d28091a2 (GLSL) CLeanups 2016-04-17 04:52:13 +02:00
twinaphex 19367da0ae (GLSL) Cleanups 2016-04-17 04:37:38 +02:00
Twinaphex 0f337d49c8 (XMB) Remove unused variable 2016-04-17 04:29:37 +02:00
twinaphex 1515c299f1 Add connect_ps2adapter to Makefile.common 2016-04-17 04:14:52 +02:00
twinaphex 9386fb2fa0 Move D3D9 HLSL font shader to file 2016-04-17 04:13:23 +02:00
Twinaphex b6c12e5b85 Merge pull request #2870 from netux79/master
Added PS2/PSX Controller Adapter for HID driver.
2016-04-17 04:08:26 +02:00
twinaphex e7ab158a3b (Cg) Refactor/cleanups 2016-04-17 03:56:20 +02:00
twinaphex ade309d1f1 (D3D Cg) Cleanups 2016-04-17 03:51:24 +02:00
twinaphex b3220cf53e Move zahnrad shaders to separate files 2016-04-17 02:36:07 +02:00
Ernesto Ramirez c4f2de321a (GX) Added PS2/PSX Controller Adapter for HID driver. 2016-04-16 19:33:17 -05:00
Twinaphex 8616b21e1f Merge pull request #2869 from aliaspider/master
(3DS) change shader format/assembler
2016-04-17 00:18:00 +02:00
twinaphex e9d16655f0 Create d3d_shaders 2016-04-17 00:16:32 +02:00
twinaphex 02e0be55a8 Move GL stock shader to gfx/drivers/gl_shaders 2016-04-17 00:11:52 +02:00
twinaphex f0f60901ff Move all shader files to header files (gfx/drivers/gl_shaders) 2016-04-17 00:08:45 +02:00
twinaphex 8b6abde2f9 Start moving GL shaders to gfx/drivers/gl_shaders 2016-04-16 23:57:37 +02:00
aliaspider ad0d73d8f0 (3DS) refactor shaders. simplify texture combiner usage. 2016-04-16 22:38:13 +01:00
Twinaphex 6144ca0e31 Merge pull request #2868 from libretro/revert-2867-master
Revert "(XMB) Apply  the fade in animation on the ribbon when launching RA or…"
2016-04-16 23:18:33 +02:00
Twinaphex 3a717adbf9 Revert "(XMB) Apply the fade in animation on the ribbon when launching RA or…" 2016-04-16 23:18:25 +02:00
Twinaphex a8032a6c4c Merge pull request #2867 from lakkatv/master
(XMB) Apply  the fade in animation on the ribbon when launching RA or…
2016-04-16 23:01:28 +02:00
Jean-André Santoni 6f4e3079bd (XMB) Apply the fade in animation on the ribbon when launching RA or toggling the menu 2016-04-17 03:46:39 +07:00
Twinaphex e1512cc473 Merge pull request #2866 from lakkatv/master
XMB ribbon improvements
2016-04-16 22:09:29 +02:00
Jean-André Santoni 8317c5849c (XMB) Draw gradient 2016-04-17 03:06:20 +07:00
Jean-André Santoni 1b0381ca02 (XMB) Slower the ribbon 2016-04-17 02:54:00 +07:00
Jean-André Santoni 5bdd9be52b (XMB) Refactor ribbon init 2016-04-17 02:50:17 +07:00
aliaspider c370afd861 (3DS) start porting shaders to the picasso format. 2016-04-16 20:26:05 +01:00
twinaphex a969547e81 Add XMB_RIBBON_ENABLE switch to XMB 2016-04-16 21:09:54 +02:00
twinaphex d8de78231b Add SHADER_CTL_SET_PARAMETER 2016-04-16 21:04:13 +02:00
twinaphex 5d6b4d0a56 (GLSL) Refactor more code 2016-04-16 20:41:52 +02:00
twinaphex 3b5c4d963a (shader_glsl.c) Lessen calls to glGetUniformLocation 2016-04-16 20:39:57 +02:00
twinaphex a99dcaa929 (Cg) Get rid of pragma_cg_params 2016-04-16 20:35:08 +02:00
twinaphex 6d7dab2e66 (Cg) Fix Cg named parameter lookup 2016-04-16 20:32:45 +02:00
twinaphex 0b4ae30f6b Fix erroneous loop variable passing 2016-04-16 20:23:55 +02:00
twinaphex 7f9249830a set_uniform_parameter - implement parameter lookup properly 2016-04-16 20:06:18 +02:00
twinaphex 4e63113f72 Cleanups 2016-04-16 19:50:23 +02:00
twinaphex d562bf38cb Cleanups 2016-04-16 19:44:44 +02:00
twinaphex 0b7ee2fcf7 Change callback prototype 2016-04-16 19:41:48 +02:00
twinaphex 1230edf1ee Add callback for setting single uniform parameter 2016-04-16 19:38:35 +02:00
twinaphex ae218cf1a5 Expand uniform_set_parameter functions 2016-04-16 19:29:45 +02:00
twinaphex ad627701da (XMB) Cleanups 2016-04-16 17:57:51 +02:00
Twinaphex e0cf1ab450 Merge pull request #2865 from aliaspider/master
(3DS) update.
2016-04-16 15:06:33 +02:00
aliaspider 6be66507d6 (3DS) patch services access for xml takeovers. 2016-04-16 12:44:45 +01:00
aliaspider a5e2585fdc (3DS) update svchax. 2016-04-16 12:27:10 +01:00
aliaspider 864f9d7c2c (3DS) make svchax optional. 2016-04-16 12:06:37 +01:00
twinaphex f45d2db0b1 Change function signature of uniform_set_parameter 2016-04-16 07:39:41 +02:00
twinaphex 00c7d918e9 (XMB) Comment out unused variables 2016-04-16 07:33:56 +02:00
Twinaphex ae561de0c8 (Griffin) Buildfixes 2016-04-16 07:32:39 +02:00
Twinaphex 5bba5813cf Cleanups - remove unused variables 2016-04-16 07:27:47 +02:00
twinaphex 87e8c28749 Favoritize GLSL as default shader type when available 2016-04-16 07:24:22 +02:00
twinaphex 92faefbccc (GL) Cleanups - gl_set_shader 2016-04-16 07:19:21 +02:00
twinaphex dfe723c727 gl_shader_init - cleanup 2016-04-16 07:16:32 +02:00
twinaphex 4e041ff3d0 (GL) gl_shader_init - Cleanups 2016-04-16 05:36:09 +02:00
twinaphex 1dfb29ddaf Add video_shader_set_backend 2016-04-16 05:20:41 +02:00
twinaphex 7b88378952 Add params to video_shader_ctx_init 2016-04-16 05:14:39 +02:00
twinaphex 6f0011fd9f xmb_thumbnails_ident - cleanup 2016-04-16 05:07:08 +02:00
twinaphex 1f7e6690e3 compile_program - if 'program' is NULL, then try to set program
to built-in shader program slot
2016-04-16 04:58:03 +02:00
twinaphex 86cb092b02 Add SHADER_CTL_COMPILE_PROGRAM 2016-04-16 04:56:15 +02:00
twinaphex 79ef0268e5 (Cg) Cleanups 2016-04-16 04:34:32 +02:00
twinaphex 1439b38b20 (Cg shader) Cleanups 2016-04-16 04:31:24 +02:00
twinaphex 2479699131 Cleanups 2016-04-16 01:51:46 +02:00
twinaphex 8a90e2777c Rename GL_SHADER_STOCK_BLEND to VIDEO_SHADER_STOCK_BLEND 2016-04-16 01:50:20 +02:00
Twinaphex 7f6ff3ba84 Merge pull request #2863 from aliaspider/master
(3DS) fixes argc/argv related crashes
2016-04-15 23:49:56 +02:00
aliaspider 3913adbe99 nit. 2016-04-15 22:43:31 +01:00
aliaspider 8bd789389f (3DS) better handling of argc/argv, fixes crash in CIA builds. 2016-04-15 22:40:34 +01:00
Twinaphex 6241f52b90 Merge pull request #2862 from lakkatv/master
(XMB) Thumbnails: workaround for titles containing slashes
2016-04-15 21:38:54 +02:00
Jean-André Santoni b5dc5470a4 (XMB) Thumbnails: workaround for titles containing slashes 2016-04-16 02:10:30 +07:00
aliaspider c85e44d597 (3DS) build fix. 2016-04-15 18:46:10 +01:00
twinaphex 6f6330576c (zr_common.c) Cleanups 2016-04-15 07:45:59 +02:00
twinaphex 9d85afd358 Refactor SHADER_CTL_USE 2016-04-15 07:37:06 +02:00
twinaphex 0f65518118 Add set_active to 'use' function callback for shader driver 2016-04-15 05:08:03 +02:00
twinaphex 934681614f Cleanup 2016-04-15 05:01:32 +02:00
twinaphex 5c0f7876b8 Cleanups 2016-04-15 04:48:07 +02:00
twinaphex b3f486ae44 (Menu drivers display) Cleanups 2016-04-15 04:43:48 +02:00
twinaphex d7cbb4472e Cleanups 2016-04-15 04:20:57 +02:00
twinaphex 84eb56892f Cleanups 2016-04-15 04:17:31 +02:00
twinaphex 31c6bba86a Cut down on code duplication - draw_bg callback no longer necessary 2016-04-15 03:35:19 +02:00
twinaphex 0e984f6c95 Cleanups 2016-04-15 03:31:59 +02:00
twinaphex 3cb6117226 (Menu display) Cleanups 2016-04-15 03:24:21 +02:00
twinaphex f4f839f776 Cleanups 2016-04-15 03:14:18 +02:00
Twinaphex 1583f7de97 Merge pull request #2860 from lakkatv/master
Fix arcade LPL generation
2016-04-15 00:57:00 +02:00
Jean-André Santoni 86cf3243aa Fix arcade LPL generation 2016-04-15 05:55:11 +07:00
Twinaphex 14a8ec050d Merge pull request #2859 from lakkatv/master
Arcade scanning
2016-04-15 00:30:54 +02:00
Jean-André Santoni 4f74976cac Arcade scanning 2016-04-15 05:28:44 +07:00
Rob Loach 6f292fb435 Add documentation for libretro-db compilation 2016-04-14 03:56:58 -04:00
twinaphex 6a39d504e0 Change signature of uniform_set_parameters 2016-04-14 06:24:36 +02:00
twinaphex 7cd10fd707 Start creating stub hlsl_uniform_set_parameter 2016-04-14 03:52:29 +02:00
twinaphex f418c7fde1 Cleanups 2016-04-14 03:41:53 +02:00
twinaphex b9bb75c193 (HLSL) Refactor hlsl_compile_program 2016-04-14 03:38:45 +02:00
twinaphex e61e617e80 (HLSL) Cleanups 2016-04-14 03:20:19 +02:00
twinaphex a2acb0e6f0 Cleanups 2016-04-14 03:16:24 +02:00
twinaphex c6292a38f5 Cleanups 2016-04-14 03:11:13 +02:00
twinaphex 8701af084a (HLSL) Cleanups 2016-04-14 03:09:15 +02:00
twinaphex 5cc1b85f70 (HLSL) Cleanups 2016-04-14 03:06:59 +02:00
twinaphex 930b854272 Refactor compile_programs functions 2016-04-14 01:53:23 +02:00
twinaphex 5f98068e7d Add shader_program_data 2016-04-14 01:33:43 +02:00
twinaphex 90018dbbe0 (Cg) Cleanups 2016-04-14 01:18:27 +02:00
twinaphex 0093e0cbf9 (Cg) Fix state tracker params too 2016-04-14 01:15:16 +02:00
twinaphex 74be1f5906 (Cg) Should fix pragma parameters 2016-04-14 01:12:14 +02:00
Twinaphex 899db8fb37 (libretro-common) Buildfix for OSX 2016-04-13 22:08:23 +02:00
twinaphex 511fbcda93 (Shaders) Refactor shader program compiling code 2016-04-13 20:14:25 +02:00
twinaphex 1e9aed1683 Create struct shader_program_info 2016-04-13 20:06:43 +02:00
twinaphex f28c0475b5 (Shaders) Refactors 2016-04-13 19:58:40 +02:00
twinaphex 29495d4973 (Shaders) Cleanups 2016-04-13 19:27:04 +02:00
twinaphex 7321a9431b Cleanup 2016-04-13 18:24:31 +02:00
twinaphex dfe08c7148 Use menu_entries_prepend 2016-04-13 17:03:13 +02:00
twinaphex b63a3f8fcc (GLSL) CLeanups 2016-04-13 06:52:36 +02:00
twinaphex f2e3789c8e (GLSL) Update 2016-04-13 06:40:59 +02:00
twinaphex 45d4718406 (GLSL) Refactor/cleanup 2016-04-13 06:40:40 +02:00
twinaphex f7c0225e1a (GLSL) More cleanups 2016-04-13 06:30:00 +02:00
twinaphex 015c166b1d (GLSL) Cleanups 2016-04-13 06:25:49 +02:00
twinaphex 9218d57b9d (GLSL) Cleanups 2016-04-13 06:18:53 +02:00
twinaphex 53dad5bc73 (GLSL) Cleanups 2016-04-13 06:04:29 +02:00
twinaphex edcf3fd1ee Cleanups 2016-04-13 05:11:22 +02:00
twinaphex 49e43dd085 (GLSL) Cleanup 2016-04-13 05:06:24 +02:00
twinaphex ea824bdee1 Start implementing glsl_uniform_set_parameter 2016-04-13 04:44:08 +02:00
twinaphex bf39033bc3 Add 'enabled' attribute to uniform_params 2016-04-13 04:21:17 +02:00
twinaphex c3f77efb2c Prepare new GLSL uniform code 2016-04-13 04:16:49 +02:00
twinaphex c5e4c90e88 (Cg) Flesh out uniform switch 2016-04-13 02:54:01 +02:00
twinaphex 960783987d (GLSL) Rename gl_uniforms and glsl_vbo 2016-04-13 02:36:00 +02:00
twinaphex f68d98a6a4 Move uniform info structs to video_shader_driver.h 2016-04-13 02:31:49 +02:00
twinaphex 06ccd36b2f (PS3) Cut down on warnings 2016-04-13 01:49:38 +02:00
twinaphex 928f4e9e65 (Cg) Cleanup 2016-04-13 01:46:29 +02:00
twinaphex df90f233a4 (GL Cg) Refactor uniform param code 2016-04-13 01:42:40 +02:00
twinaphex 1c1cf4535d Remove this too 2016-04-12 22:25:45 +02:00
twinaphex e1a3ceaaee draw_bg operation should not implicitly enable/disable blending -
should be done outside
2016-04-12 22:24:33 +02:00
twinaphex 9976077895 (menu display vulkan) Take out set viewport call 2016-04-12 20:19:13 +02:00
twinaphex 83efd732dd (XMB) Move set viewport call outside 2016-04-12 20:17:50 +02:00
twinaphex 033cecf08c (menu_display) Cleanups 2016-04-12 20:07:23 +02:00
twinaphex 19e86256a7 (menu display GL) Attach white texture to draw info struct if NULL 2016-04-12 19:55:31 +02:00
twinaphex 5f0aa1852e This needs to be properly refactored later 2016-04-12 17:56:34 +02:00
twinaphex c390794452 (XMB) Change types 2016-04-12 16:26:36 +02:00
twinaphex 64f53d8237 (XMB) Refactor blend begin/end 2016-04-12 16:25:13 +02:00
Twinaphex fff07d46b3 Merge pull request #2854 from lakkatv/master
(XMB) White texture that will be used for the ribbon
2016-04-12 04:54:32 +02:00
Jean-André Santoni 0e393211f3 (XMB) White texture that will be used for the ribbon 2016-04-12 09:53:51 +07:00
twinaphex 08632c89b6 Comment this out again now that the test works 2016-04-12 03:19:17 +02:00
twinaphex 8d4d0d16c6 (libretro-common) Update GLSM 2016-04-12 02:22:12 +02:00
Twinaphex 9239c2b349 Merge pull request #2853 from lakkatv/master
(Menu) Move the white texture stuff to menu_display
2016-04-11 23:32:29 +02:00
Jean-André Santoni ea6bd2797c (Menu) Move the white texture stuff to menu_display 2016-04-12 04:30:25 +07:00
twinaphex 3e4d7c404a Should hopefully fix file_list_prepend 2016-04-11 22:35:45 +02:00
Twinaphex 00b398f6d2 Merge pull request #2851 from lakkatv/master
List prepend
2016-04-11 20:50:07 +02:00
Jean-André Santoni 1dea1fa0e2 Rename file_list_push to file_list_prepend 2016-04-12 01:40:48 +07:00
Jean-André Santoni 8e86d11f57 Add list_prepend to the menu ctx drivers 2016-04-11 23:31:49 +07:00
Jean-André Santoni 01c82a09f0 Rename menu_entries_push to menu_entries_prepend 2016-04-11 23:18:16 +07:00
twinaphex a58c77113f Change text 2016-04-11 18:04:24 +02:00
twinaphex a430c7f543 Add experimental menu_entries_push/file_list_push 2016-04-11 18:02:50 +02:00
twinaphex 7e7a1fa5f9 Rename menu_entries_push to menu_entries_add 2016-04-11 05:49:39 +02:00
twinaphex f25581e88d Add print_buf_lines_extended and have core updater use it 2016-04-11 03:09:17 +02:00
twinaphex e555295681 (Shaders) Only show supported shaders 2016-04-10 22:00:50 +02:00
twinaphex 94c042f686 (driver.c) Cleanups 2016-04-10 16:40:36 +02:00
twinaphex 7660b67ad4 (netplay) Cleanups 2016-04-10 16:35:25 +02:00
twinaphex 494ceee05e Update glsm 2016-04-10 16:31:08 +02:00
Twinaphex 2bcc36b387 Remove unused variables 2016-04-10 16:25:24 +02:00
twinaphex 695a93e071 Cleanups 2016-04-10 15:52:06 +02:00
twinaphex 00dce981c8 (runloop.c) Create static functions 2016-04-10 15:40:46 +02:00
twinaphex c015711090 content.c - cleanups 2016-04-10 15:33:04 +02:00
Twinaphex d818578076 Merge pull request #2845 from lakkatv/master
(XMB) Add support for the RetroActive theme
2016-04-09 13:34:26 +02:00
Jean-André Santoni 64e2f9e2f0 (XMB) Subtler drop shadows 2016-04-09 13:23:59 +07:00
Jean-André Santoni 8c02d63f2e (XMB) Add support for the RetroActive theme 2016-04-09 12:46:40 +07:00
twinaphex 6a814229e1 Attempt to fix flip users 2016-04-09 03:16:23 +02:00
Twinaphex 7086277c56 Merge pull request #2843 from lakkatv/master
(XMB) Polish thumbnails settings
2016-04-08 12:53:59 +02:00
Jean-André Santoni 0f8e406a05 (XMB) Polish thumbnails settings 2016-04-08 17:50:20 +07:00
twinaphex 8e2dada12a (libretro-common) message_queue.c - cleanups 2016-04-08 02:59:06 +02:00
twinaphex 8ba1f2fca6 (libretro-common) archive_file_zlib.c - cleanup 2016-04-08 02:54:37 +02:00
twinaphex e88e580832 (libretro-common) archive_file.c - Cleanups 2016-04-08 02:51:17 +02:00
Twinaphex 5218be3a0c Merge pull request #2842 from lakkatv/master
(XMB) Thumbnail type switching
2016-04-07 20:48:19 +02:00
Jean-André Santoni 7dfb3c373a (XMB) Thumbnail type switching 2016-04-08 01:42:53 +07:00
Twinaphex 013e9cd8cb Merge pull request #2841 from lakkatv/master
(XMB) Shadows
2016-04-07 19:32:40 +02:00
Jean-André Santoni 53a1369dba (XMB) Shadows 2016-04-08 00:24:55 +07:00
Twinaphex 01f83ba289 Merge pull request #2840 from lakkatv/master
(XMB) Refactoring, draw_icon can call draw_icon_predone
2016-04-07 18:48:19 +02:00
Jean-André Santoni e96c2b4ef3 (XMB) Refactoring, draw_icon can call draw_icon_predone 2016-04-07 23:43:04 +07:00
twinaphex 175d601a4e Make it possible to initialize memory stream interface in
writable mode
2016-04-07 05:06:41 +02:00
twinaphex 9b4bb51c2e Cleanup filestream_tell 2016-04-07 04:20:09 +02:00
twinaphex 55a28eb8a3 Cleanup filestream_seek 2016-04-07 04:16:46 +02:00
twinaphex 2e66300320 Cleanup filestream_get_fd 2016-04-07 03:35:12 +02:00
twinaphex b20a03f3b9 Add unimplemented message 2016-04-07 03:30:02 +02:00
twinaphex 502c2a41a9 Only define HAVE_BUFFERED_IO if platform is not PS3/PSP or Vita 2016-04-07 03:29:17 +02:00
twinaphex bf017e3a0c Add intfstream_putc 2016-04-07 03:24:41 +02:00
twinaphex 2bb90f3702 Add filestream_putc 2016-04-07 03:23:01 +02:00
twinaphex f0a1b94a11 Update memory_stream.c with FCEUmm update code 2016-04-07 03:07:23 +02:00
twinaphex a8144abbce Add intfstream_tell 2016-04-07 02:44:21 +02:00
twinaphex 0da67ad4f9 Add intfstream_close 2016-04-07 02:30:09 +02:00
twinaphex 99a9769014 Add intfstream_rewind 2016-04-07 02:27:33 +02:00
twinaphex ea037799a4 Add memstream_rewind 2016-04-07 02:24:31 +02:00
twinaphex f51e0f62e5 Add intfstream_seek 2016-04-07 02:21:43 +02:00
twinaphex 67cf1153c6 (streams/memory_stream.c) Cleanup 2016-04-07 02:15:48 +02:00
twinaphex 2a3bba34e0 Add intfstream_gets/intfstream_getc 2016-04-07 02:13:40 +02:00
twinaphex a20a2da85e Add intfstream_read/intfstream_write 2016-04-07 02:06:04 +02:00
twinaphex 554ca4f087 (libretro-common) Add intfstream_open 2016-04-07 01:58:54 +02:00
twinaphex 5eb3bb05f7 Start adding streams/interface_stream.c 2016-04-06 21:58:23 +02:00
twinaphex 7fe34b97a6 (libretro-common) streams - cleanups 2016-04-06 17:03:17 +02:00
twinaphex 734ef07fcc (file_stream.c) Cleanups 2016-04-06 16:55:17 +02:00
twinaphex cce0320bb5 (libretro-common) Cleanups 2016-04-06 16:48:51 +02:00
twinaphex dba04c73e4 Move core options variable 2016-04-06 02:30:20 +02:00
Twinaphex f42911cab7 Remove gloval variable 2016-04-06 01:59:00 +02:00
twinaphex 6e3416b990 Add RARCH_CTL_{USERNAME} 2016-04-06 01:58:11 +02:00
twinaphex c7a9182d59 Create CORE_CTL_{INPUT_DESCRIPTORS} 2016-04-06 01:57:02 +02:00
twinaphex 9a90008543 Frame time needs to be reset back to defaults after we close the
core and its contents - this was causing a crash when jumping
from a core that supports frame time callback (2048) to a core
that doesn't (Mupen64plus)
2016-04-06 01:29:32 +02:00
twinaphex 92dee9b3aa (Android) Refactor argc/argv passed to rarch_main 2016-04-05 23:45:31 +02:00
twinaphex 43860e384a Fixes crash on Close Content on Android.
Bizarre usage of -L argument caused it along with --menu
2016-04-05 23:22:33 +02:00
Twinaphex 20706b51de (iOS) Fix iOS - pass argc/argv 2016-04-05 21:22:23 +02:00
Twinaphex cf9d8a8adb (iOS) rewrite this 2016-04-05 20:58:17 +02:00
twinaphex c536e0fbdc (iOS) argv needs to always be non-NULL 2016-04-05 20:53:02 +02:00
twinaphex 001aa3ba4a Add ssem_get - SDL_SemValue equivalent 2016-04-05 19:08:41 +02:00
twinaphex db24cb1ec5 (libretro-common) Update 2016-04-05 18:52:58 +02:00
twinaphex 78426895db (libretro-common) std=c99 compatibility for rsemaphore.c 2016-04-05 18:42:16 +02:00
twinaphex 26d37e006a (libretro-common) This should allow rthreads.c to compile with -std=c99 2016-04-05 17:52:23 +02:00
twinaphex 15fa7f9cd1 GFX_CTL_CHECK_WINDOW - prevent null pointer dereferences 2016-04-02 20:53:13 +02:00
Twinaphex 90b1db7178 (iOS) Gets past the crash at startup if argv is NULL 2016-04-02 01:05:24 +02:00
twinaphex 490a2f77ae Update libretro-common 2016-03-31 13:27:54 +02:00
Hans-Kristian Arntzen 406f084c4b Vulkan: Set g_inited in Windows. 2016-03-29 18:02:32 +02:00
Hans-Kristian Arntzen e04bbfbae2 Vulkan: Add more logging ... 2016-03-29 17:57:13 +02:00
Hans-Kristian Arntzen c7b96b75b8 Vulkan: Add more error logging. 2016-03-29 17:36:13 +02:00
Twinaphex ffed6b2dd0 Merge pull request #2826 from Themaister/master
Vulkan: Add proc address query functions to HW interface.
2016-03-29 16:38:44 +02:00
Hans-Kristian Arntzen 38a305bb6e Vulkan: Add proc address query functions to HW interface.
Allows cores to avoid linking directly against any extra library.
Update HW interface version to 2 to signal ABI change.

Note that the interface is still experimental and can change at any time.
2016-03-29 16:35:31 +02:00
Twinaphex 7e7eb233a5 Merge pull request #2825 from Themaister/master
Remove dead code with full_x/full_y.
2016-03-29 15:51:27 +02:00
Hans-Kristian Arntzen 02736963bc Vulkan: Implement get_context_data callback in Win32.
Also fix some potential crashes with dinput handling.
2016-03-29 15:50:12 +02:00
Hans-Kristian Arntzen 8ade7fb274 Vulkan: Attempt Windows backend support.
Completely bind since I cannot test myself, but compiles.
2016-03-29 15:50:12 +02:00
Hans-Kristian Arntzen 72f65396c7 Fix cross-compile build on Linux. 2016-03-29 15:50:12 +02:00
Hans-Kristian Arntzen 87a5fd2e44 win32_set_style: Fix broken pointer-to-pointer.
This can't possibly have worked in any sensible way before ...
2016-03-29 15:36:08 +02:00
Hans-Kristian Arntzen 1ff4445ba0 Remove dead code with full_x/full_y.
Very confusing and no longer serves any purpose anyways.
2016-03-29 15:28:13 +02:00
Twinaphex 577f210b30 Merge pull request #2823 from Themaister/master
Vulkan: Add explicit render target format support.
2016-03-26 23:54:19 +01:00
Hans-Kristian Arntzen 8c2664e5fb Vulkan: Add explicit render target format support.
Supports all required formats in Vulkan 1.0 as well as GLES 3.x/GL 3.x
(for future).
2016-03-26 23:49:57 +01:00
Hans-Kristian Arntzen 236200ef63 Vulkan: Add format enum for various possible RT formats.
Include all formats which are required to be supported in Vulkan 1.0 and
GLES 3.x. Not all these formats are supported in GLES2, but that's up to
shaders to decide whether they want to support GLES2 or not.
2016-03-26 22:52:32 +01:00
Twinaphex b454192a43 Merge pull request #2822 from libretro/staging
Vulkan: Another stab at cleaning up implicit menu vs. loading content handling
2016-03-26 20:20:11 +01:00
Twinaphex 8572fb622e Merge pull request #2821 from Themaister/master
Vulkan: Use single UBO for all passes and sync indices.
2016-03-26 20:17:34 +01:00
Hans-Kristian Arntzen 82db5a4950 Vulkan: Use single UBO for all passes and sync indices.
Significantly reduces number of allocations.
2016-03-26 19:39:51 +01:00
Twinaphex 786bdacd4c Merge pull request #2820 from Themaister/master
Vulkan: Further work on shader backend.
2016-03-26 18:46:41 +01:00
Hans-Kristian Arntzen 200b88c3ca Vulkan: Add detection for non-causal filter chains. 2016-03-26 18:27:17 +01:00
Hans-Kristian Arntzen b1bd0f7b7f Ignore known pragmas. 2016-03-26 18:07:59 +01:00
Hans-Kristian Arntzen 7d5eb2bc27 Vulkan: Add pass name handling.
Add #pragma name.
2016-03-26 18:00:09 +01:00
Hans-Kristian Arntzen b96d365968 Only set CORE_TYPE_PLAIN for non-directory -L.
Fixes crash on Android startup which uses -L <core-dir> CLI argument.

-L can also set core directory, even though it's not supposed to
be used anymore.

Also, on Android, the cores directory might not be populated, so ignore
arguments which are not valid.
2016-03-25 23:57:11 +01:00
Hans-Kristian Arntzen 21c7ff99d1 Vulkan: Add semantic name remapping.
Will be useful for custom named passes.
2016-03-25 23:15:23 +01:00
Hans-Kristian Arntzen 3838b3c045 Vulkan: Add frame count suport. 2016-03-25 22:06:31 +01:00
Twinaphex 9083ede9b5 Merge pull request #2819 from Themaister/master
Vulkan: Implement universal FBO feedback.
2016-03-25 19:58:43 +01:00
Hans-Kristian Arntzen b7b03c531a Vulkan: Use single VBO in filter chain.
No need to have two separate buffers here.
2016-03-25 19:23:58 +01:00
Hans-Kristian Arntzen 939bc70ac6 Vulkan: Properly resize and clear feedback textures. 2016-03-25 19:16:39 +01:00
Hans-Kristian Arntzen ca62f342b0 Vulkan: Fix original history.
Verified to work now.
2016-03-25 18:50:49 +01:00
Hans-Kristian Arntzen 79f5e9ca98 Vulkan: Add logging about feedback/history. 2016-03-25 17:45:30 +01:00
Hans-Kristian Arntzen 92601a0fb8 Vulkan: Set arrayed semantic textures. 2016-03-25 17:39:24 +01:00
Hans-Kristian Arntzen 80df588cf0 Vulkan: Implement feedback/history. 2016-03-25 15:32:04 +01:00
Hans-Kristian Arntzen e35e0e0f23 Vulkan: Nits. 2016-03-25 14:53:47 +01:00
Hans-Kristian Arntzen 83ab0d799f Vulkan: Begin implementing history and feedback. 2016-03-25 14:51:37 +01:00
Hans-Kristian Arntzen 4f3ade1b95 Vulkan: Begin sketching out support for complete filter chain. 2016-03-25 13:26:36 +01:00
twinaphex d3f0ca76bc Remove source settings 2016-03-24 19:55:33 +01:00
Twinaphex f23b42b437 Merge pull request #2803 from gouchi/master
Fix inconsistency with parameters
2016-03-24 19:37:25 +01:00
twinaphex 1d5955bced (libretro-common) Update comments 2016-03-24 05:57:48 +01:00
radius 80ea008e77 [zr] make the wizard step 3 match the other steps 2016-03-23 23:46:05 -05:00
radius 9b1ada22b9 remove unused variable 2016-03-23 23:38:22 -05:00
radius 8fcfa3659a add gamepad POC panel 2016-03-23 23:32:49 -05:00
twinaphex 6dc267ef1c Turn cheat_manager_new into static function 2016-03-24 04:51:45 +01:00
twinaphex c142b123a1 (autosave) cleanup 2016-03-24 04:48:40 +01:00
twinaphex 84ff9207f9 (autosave) turn some functions static 2016-03-24 04:47:35 +01:00
twinaphex 1b289c0f05 (libretro-common) Update 2016-03-24 04:23:17 +01:00
twinaphex e41127459e Rename 'filestream' functions 2016-03-24 04:09:25 +01:00
twinaphex 89d896339c Don't need to include system.h 2016-03-24 03:47:22 +01:00
twinaphex d04940a159 (input_keyboard.c) Refactor more functions into static functions 2016-03-24 03:45:16 +01:00
twinaphex ce9573e4c3 Create RARCH_INPUT_KEYBOARD_CTL_LINE_FREE 2016-03-24 03:36:38 +01:00
twinaphex 870bce981d (gl.c) Indenting nits 2016-03-24 03:32:00 +01:00
twinaphex 60681195f8 Fix some concurrency bugs 2016-03-24 03:06:03 +01:00
Twinaphex 0ab6350610 Merge pull request #2818 from lakkatv/master
(XMB) Use a PSP-like layout for screen smaller than 640px
2016-03-24 01:48:23 +01:00
Jean-André Santoni 2640748b89 (XMB) Use a PSP-like layout for screen smaller than 640px 2016-03-24 07:23:04 +07:00
Twinaphex 6f424ebc4c Merge pull request #2816 from lakkatv/master
More Lakka services
2016-03-24 00:21:36 +01:00
Jean-André Santoni 61b044b124 Refactoring 2016-03-24 01:20:26 +07:00
twinaphex c20e9fd6bd Start updating audio/test/Makefile 2016-03-23 18:54:17 +01:00
twinaphex a2f50174dd Update audio/test/Makefile 2016-03-23 18:45:44 +01:00
Jean-André Santoni ab09ebe687 Allow passing LAKKA_PROJECT directly to make 2016-03-23 21:47:10 +07:00
Jean-André Santoni adfb0b5a6d (Menu) Unhardcode Lakka Update Dir 2016-03-23 21:40:41 +07:00
Jean-André Santoni cb7ef6615c (Menu) Remove useless code 2016-03-23 20:24:26 +07:00
Jean-André Santoni 17e2458903 Typo 2016-03-23 20:07:13 +07:00
Jean-André Santoni 288c2c3996 (Menu) Lakka Services : Bluetooth 2016-03-23 20:06:53 +07:00
Jean-André Santoni b82976b206 (Menu) Lakka Services, allow enabling or disabling SAMBA 2016-03-23 19:58:01 +07:00
twinaphex 072d6ff125 Rename gfx_coord_array_add to gfx_coord_array_append 2016-03-23 07:01:54 +01:00
twinaphex e1c47a68fe Take prototype declaration out of video_driver.h 2016-03-23 06:57:29 +01:00
twinaphex 69bcac61dd input_hid_driver.h - cleanups 2016-03-23 06:54:37 +01:00
twinaphex 76d06c89ca Make some functions static 2016-03-23 06:53:19 +01:00
twinaphex 8f7f40b86c Move more functionality to input_keyboard_ctl 2016-03-23 06:44:00 +01:00
twinaphex 56c47bbe56 Change input_driver_ctl calls to input_keyboard_ctl 2016-03-23 06:19:33 +01:00
twinaphex 2fee5edba4 Move linefeed enable enums to input_keyboard.c 2016-03-23 06:18:09 +01:00
twinaphex 92d2765157 Create input_keyboard_ctl 2016-03-23 06:11:39 +01:00
twinaphex 0b9595b7e1 Should fix input_keyboard_wait_keys still being active after
we bind a button with the gamepad
2016-03-23 05:49:38 +01:00
twinaphex e13fd6da41 vsnprintf_s needs to have stdio.h included 2016-03-23 03:47:18 +01:00
twinaphex 9e06843127 Typo fix 2016-03-23 03:45:02 +01:00
twinaphex b6941a045d isblank is available since MSVC 2013 2016-03-23 03:44:31 +01:00
twinaphex 5fe9f8dc11 We need the roundf macro for MSVC versions lower than 1800 2016-03-23 03:40:47 +01:00
Twinaphex 57981b2990 Merge pull request #2814 from Themaister/master
Vulkan: Reflection improvements
2016-03-23 00:32:17 +01:00
Hans-Kristian Arntzen 23c8150b6e Reintroduce new parse_input scheme.
This reverts commit 2323cef8d1.
2016-03-23 00:29:52 +01:00
gouchi c1a7419469 Revert text to Libretro library used 2016-03-23 00:28:23 +01:00
Hans-Kristian Arntzen ce34c4bba8 Vulkan: Expose number of components for semantics. 2016-03-23 00:19:24 +01:00
Hans-Kristian Arntzen d5dc50c436 Vulkan: Allow no UBO even if it makes little sense. 2016-03-23 00:19:24 +01:00
Hans-Kristian Arntzen c17755ab1a Vulkan: Default construct slang_reflection instead.
We will use non-POD when dealing with user-defined inputs.
2016-03-23 00:19:24 +01:00
Hans-Kristian Arntzen 2427351afb Vulkan: Log semantic use for debugging. 2016-03-23 00:19:24 +01:00
Hans-Kristian Arntzen 39149b36b2 Vulkan: Clean up semantic parsing a lot.
Split up into two kinds of semantics, textured and not.
2016-03-23 00:19:24 +01:00
twinaphex 2323cef8d1 Revert "Attempt properly handling CLI options ..."
This reverts commit 6f8a1e8ab2.
2016-03-22 21:42:30 +01:00
twinaphex 3e72b89021 (Android) Disable Vulkan until things can start bulding, compiling
and working properly again
2016-03-22 20:33:12 +01:00
Twinaphex a3007b1604 Merge pull request #2810 from lakkatv/master
Lakka Services
2016-03-22 20:08:24 +01:00
Jean-André Santoni 60f9f8329c (Menu) Forgot that 2016-03-23 01:25:27 +07:00
Jean-André Santoni 6b3a8112d1 (Menu) Fixes for Lakka Services 2016-03-23 01:23:51 +07:00
twinaphex 3b377f2e41 (Android) glslang_tab.cpp got moved 2016-03-22 18:39:26 +01:00
twinaphex 6a6caff671 Update this too 2016-03-22 18:37:40 +01:00
twinaphex 439b3e5007 Take out glslang_tab.cpp 2016-03-22 18:36:48 +01:00
twinaphex f8ac103888 (Android) Change APPL_STL back too 2016-03-22 16:40:47 +01:00
twinaphex 77143179b5 Change back Android.mk file 2016-03-22 16:40:02 +01:00
Jean-André Santoni d5816cb298 (Menu) More ifdef for Lakka Services, and create files with w mode. 2016-03-22 17:10:06 +07:00
twinaphex 3e3cc9f2f2 Replace zr_common_file_load again 2016-03-22 05:58:16 +01:00
twinaphex 2e11895ef9 (zahnrad) Add HAVE_OPENGL ifdef 2016-03-22 05:52:46 +01:00
twinaphex 1af81201a0 Go back to this 2016-03-22 05:50:40 +01:00
twinaphex 4cc122648c Header include cleanup 2016-03-22 04:09:46 +01:00
twinaphex 2064681a67 Cleanup 2016-03-22 04:07:05 +01:00
twinaphex 7fa6b946ce Move defines to audio_driver.h 2016-03-22 04:00:18 +01:00
twinaphex bf9add6325 Header cleanups 2016-03-22 03:51:14 +01:00
twinaphex ab1c4d0c4d Header include cleanups 2016-03-22 03:49:05 +01:00
twinaphex cf7687b49c Cleanups 2016-03-22 03:32:00 +01:00
twinaphex 2e14d0979b Header include cleanups 2016-03-22 03:13:33 +01:00
twinaphex 6360b0ef25 (menu_setting.h) Take out libretro.h header include 2016-03-22 03:08:05 +01:00
twinaphex 6f37163675 CXX_BUILD warning fixes 2016-03-22 02:59:13 +01:00
twinaphex 4c14267f5b Create core_type.h 2016-03-22 02:56:06 +01:00
twinaphex 61bae588fb Header include changes 2016-03-22 02:45:25 +01:00
twinaphex 1303a310e8 retroarch.h - don't include retro_miscellaneous.h 2016-03-22 02:33:49 +01:00
twinaphex bb993c3f27 (menu_displaylist.h) Don't include retro_miscellaneous.h 2016-03-22 02:32:02 +01:00
twinaphex fa0ba621d7 Take out menu_setting_find_prehashed 2016-03-22 02:24:00 +01:00
twinaphex 1e3aba3494 (Linux) Buildfix 2016-03-22 01:58:51 +01:00
twinaphex 33b0a189f5 Changed this back - caused multiple warnings 2016-03-22 01:57:58 +01:00
twinaphex 6f5be6b3b3 (zahnrad) Style nits 2016-03-22 01:40:09 +01:00
twinaphex b00878a595 (zr_common.c) Cleanups 2016-03-22 01:20:41 +01:00
twinaphex ddb912b373 Use uintptr_t instead of GLuint 2016-03-22 01:17:00 +01:00
twinaphex e9fd6863ce Rewrite zr_common_file_load to use file_stream.h 2016-03-22 01:16:08 +01:00
twinaphex 79008d4fd6 (Zahnrad) We don't need the VAO 2016-03-22 01:04:00 +01:00
twinaphex c18da3039f zr_common_image_load - go through video_texture_image_load/video_driver_texture_load 2016-03-22 01:00:34 +01:00
Alcaro b4c6831b56 No need to copy that argument.
The copy also lacked the NUL terminator, wouldn't surprise me if it crashed. Let's just clean it up.
2016-03-22 00:01:25 +01:00
Twinaphex 43c8fc50be Merge pull request #2811 from Themaister/master
Various collection of fixes
2016-03-21 23:51:38 +01:00
Jean-André Santoni 24af521bf1 (Menu) Add a first Lakka Service setting: SSH Enable 2016-03-22 05:46:36 +07:00
Hans-Kristian Arntzen 75003b65f1 Revamp Android NDK build system.
Split up into separate modules to avoid the pain with cross-defines from
C and C++.

Move to c++_static STL. It's the recommended way since a while back and
fixes some build issues as well.
2016-03-21 23:43:59 +01:00
Hans-Kristian Arntzen ef79734e7c Use same system as dynamic cores to get system info. 2016-03-21 22:58:13 +01:00
Hans-Kristian Arntzen fdaf6ffead Remove bison file. 2016-03-21 22:58:13 +01:00
Hans-Kristian Arntzen 6bd88e6848 Update glslang. 2016-03-21 22:58:13 +01:00
twinaphex 5eba4984cf (zr_common.c) Refactor 2016-03-21 21:51:24 +01:00
twinaphex 42725179ec Refactor zr_common.c 2016-03-21 21:50:23 +01:00
twinaphex e83d460997 (zr_common) Call menu_display_ctl for blend end 2016-03-21 21:45:06 +01:00
twinaphex f27d2b70f6 (menu_navigation.c) Cleanup 2016-03-21 21:36:49 +01:00
twinaphex 8a7c233e3f (menu_navigation.c) Simplify 2016-03-21 21:34:49 +01:00
Jean-André Santoni 1cb8faf6c9 (Menu) Add a setting group for Lakka Services 2016-03-22 03:31:34 +07:00
twinaphex 7b48a0c57e (XMB) Prevent symbol collission 2016-03-21 21:18:25 +01:00
Twinaphex cf0dd7f5e8 Merge pull request #2809 from lakkatv/master
(XMB) Theme switching
2016-03-21 20:56:53 +01:00
twinaphex 7cc6c477b8 Start using menu_setting_find_prehashed 2016-03-21 20:56:11 +01:00
Jean-André Santoni 66544dcea4 (XMB) Theme switching 2016-03-22 02:54:16 +07:00
twinaphex 552959933d Create menu_setting_find_internal 2016-03-21 20:53:07 +01:00
twinaphex b961a2b2b2 menu_displaylist_info - add hash for label 2016-03-21 20:50:06 +01:00
twinaphex 908e266cc4 Generate hash for setting_bool_setting/setting_int_setting 2016-03-21 20:43:27 +01:00
twinaphex b80b52b806 Rename file_list_push to file_list_append 2016-03-21 20:20:24 +01:00
twinaphex d5a0819aba Nit 2016-03-21 19:53:48 +01:00
twinaphex 3d7bc4f7fe (playlist.c) Style nits 2016-03-21 19:52:33 +01:00
twinaphex 5a37033803 (libretro-common) Update 2016-03-21 19:46:14 +01:00
twinaphex 483699357d (RPNG) cleanups 2016-03-21 19:43:29 +01:00
twinaphex 4d30df7a64 Header cleanup 2016-03-21 19:23:45 +01:00
twinaphex ca63357b54 (X11) Do not keep appending to suspend screensaver if not available 2016-03-21 19:12:16 +01:00
twinaphex b20989d31d (libretro-common) Update headers 2016-03-21 18:51:44 +01:00
twinaphex c8f4d97839 Move config_file_userdata outside libretro-common 2016-03-21 18:49:50 +01:00
twinaphex f960e9ad26 Move files 2016-03-21 18:37:19 +01:00
twinaphex 32a8b57826 Move test files 2016-03-21 18:27:02 +01:00
twinaphex 12e51eb4b5 (libretrodb) Add headers and cleanups 2016-03-21 18:16:05 +01:00
Hans-Kristian Arntzen 6f8a1e8ab2 Attempt properly handling CLI options ... 2016-03-21 17:59:40 +01:00
Twinaphex 0af195c2df Merge pull request #2807 from libretro/revert-2806-master
Revert "Fix "retroarch --verbose"."
2016-03-21 17:21:33 +01:00
Twinaphex 2c8b558dac Revert "Fix "retroarch --verbose"." 2016-03-21 17:21:17 +01:00
Twinaphex 570bd93eed Merge pull request #2806 from Themaister/master
Fix "retroarch --verbose".
2016-03-21 17:19:19 +01:00
Hans-Kristian Arntzen fd443082a7 Fix "retroarch --verbose".
We want to go straight to menu in this case, so make a special case
for this fairly common pattern.
2016-03-21 17:11:39 +01:00
Twinaphex dfeef5b78d Merge pull request #2805 from Themaister/master
Vulkan: Fix lots of dubious barrier usage and add initial SPIR-V shader reflection
2016-03-21 17:05:17 +01:00
Hans-Kristian Arntzen f1a5725f66 Vulkan: Host writes are implicitly flushed on submit.
Use TOP_OF_PIPE/0 access instead to work
around spammy asserts on Anvil.

We still have to invalidate the caches however.
2016-03-21 16:57:04 +01:00
Hans-Kristian Arntzen 6add83e3ec Vulkan: Use reflection output for source/original.
Fix some logging messages in reflection.
2016-03-21 16:18:43 +01:00
Hans-Kristian Arntzen dce96d0869 Vulkan: Find OutputSize semantic uniform as well. 2016-03-21 15:31:01 +01:00
Hans-Kristian Arntzen 1822f3bf90 Vulkan: Begin hooking up SPIR-V reflection. 2016-03-21 15:12:12 +01:00
Twinaphex 3b97ee2c75 Merge pull request #2804 from lakkatv/master
(Lakka) Disable UI settings, and history boolean with HAVE_LAKKA
2016-03-21 13:34:06 +01:00
Jean-André Santoni c2b0f8faea (Lakka) Disable UI settings, and history boolean with HAVE_LAKKA 2016-03-21 18:50:34 +07:00
Hans-Kristian Arntzen 72cdd37ad2 Vulkan: Add #include support to slang shaders. 2016-03-21 12:14:11 +01:00
Hans-Kristian Arntzen 5dcb78ea21 Vulkan: Include spir2cross in shader_vulkan.cpp. 2016-03-21 11:56:09 +01:00
Hans-Kristian Arntzen 7899d449e6 Vulkan: Also invalidate fragment uniform buffer 2016-03-21 11:49:27 +01:00
Hans-Kristian Arntzen 840278796e Vulkan: Refactor out common resources in filter chain. 2016-03-21 11:45:59 +01:00
Hans-Kristian Arntzen 6f01b8dc2c Add spir2cross submodule. 2016-03-21 11:22:31 +01:00
Hans-Kristian Arntzen a21687b5d7 Vulkan: Ensure vertex caches are invalidated. 2016-03-21 10:10:29 +01:00
Hans-Kristian Arntzen fa7eeb57b8 Vulkan: Use 1.0.6.
1.0.2 is pre public release version I think ...
2016-03-21 10:03:15 +01:00
Hans-Kristian Arntzen 84923a0465 Vulkan: Tighten up pipeline barrier usage.
Lots of memory barriers used with TOP_OF_PIPE which is not valid.
2016-03-21 10:02:00 +01:00
Hans-Kristian Arntzen 07524fe433 Vulkan: Log about format use. 2016-03-21 09:29:41 +01:00
twinaphex f9992c5e47 Update libretro-common 2016-03-21 05:44:45 +01:00
twinaphex 1114e3960e Add HAVE_CHEEVOS ifdef 2016-03-21 04:40:49 +01:00
gouchi 0b8afdd5b4 Adding more space 2016-03-21 00:12:56 +01:00
gouchi 05d5e8b7dd Fix inconsistency with parameters 2016-03-20 23:51:07 +01:00
twinaphex 26a858b66c Cleanups 2016-03-20 20:46:34 +01:00
twinaphex 26bcd42698 Cleanup menu_setting_new_internal 2016-03-20 20:45:06 +01:00
twinaphex 4ba6dcd69b (menu_setting.c) Cleanups 2016-03-20 19:56:03 +01:00
twinaphex a1225c570f (menu_setting.c) Cleanups 2016-03-20 19:54:16 +01:00
twinaphex b0434b4811 Cleanup menu_setting_new 2016-03-20 19:29:59 +01:00
twinaphex 6e9e5b6907 Put up with deprecations 2016-03-20 19:14:58 +01:00
twinaphex a8f34c6960 (record_ffmpeg.c) Try to avoid some deprecation warnings 2016-03-20 18:05:14 +01:00
twinaphex bfef3b6191 Get rid of unused file_list_get_entry_index 2016-03-20 17:52:47 +01:00
radius fba912834d bump up version 2016-03-20 11:48:10 -05:00
twinaphex 1164adb902 (gfx/video_coord_array.c) Cleanups 2016-03-20 17:46:53 +01:00
twinaphex f59e334ceb Cleanups 2016-03-20 17:44:13 +01:00
twinaphex 5c0f4f4ac8 Cleanups 2016-03-20 17:41:28 +01:00
twinaphex ac6362cae4 Combine list_special files 2016-03-20 17:28:24 +01:00
twinaphex 972d3faabb (libretro-common) Cleanups 2016-03-20 17:15:40 +01:00
twinaphex f55ee11554 (libretro-common) Header updates 2016-03-20 17:13:31 +01:00
twinaphex 7508eab655 (CXX_BUILD) Avoid some C++ warnings + buildfix 2016-03-20 17:01:15 +01:00
twinaphex 0955fac195 (ffmpeg core) Avoid some deprecation warnings 2016-03-20 16:59:09 +01:00
twinaphex f0fd3895b6 Updates 2016-03-20 16:36:39 +01:00
twinaphex 3720cf87e7 Rename retro_file to file_stream 2016-03-20 16:29:14 +01:00
twinaphex be9bf7dc44 (libretro-common) Move memory_stream 2016-03-20 16:17:44 +01:00
twinaphex c7e13e2bcd (libretro-common) Rename file_archive to archive_file 2016-03-20 16:14:40 +01:00
twinaphex 435aa5ee7c (libretro-common) file_list.c - update function description 2016-03-20 15:59:38 +01:00
twinaphex f7d4cc25e5 (libretro-common) file_list.c 2016-03-20 15:56:33 +01:00
Twinaphex 43b931129d (iOS) Buildfix 2016-03-20 15:07:49 +01:00
twinaphex 93b7dc1bdd (libretro-common) move 'lists' files to lists/ 2016-03-20 14:53:54 +01:00
twinaphex ef4a1a3c0f (libretro-common) Rename fifo_buffer to fifo_queue 2016-03-20 14:06:21 +01:00
twinaphex 87840e5b6c (rbmp) Change typedef enum 2016-03-20 05:35:52 +01:00
twinaphex 70bb4c69f3 CXX_BUILD - silence some warnings 2016-03-20 05:26:16 +01:00
twinaphex 8b4a41155d C89_BUILD buildfixes 2016-03-20 05:24:05 +01:00
twinaphex 6b3c3f326a Cleanups 2016-03-20 05:12:53 +01:00
twinaphex 48347053cd (Griffin) Add compat_snprint for Griffin 2016-03-20 04:52:15 +01:00
twinaphex 1270d8f96a Update libretro-common 2016-03-20 04:50:29 +01:00
twinaphex b40b169098 Copy over libretro-common changes 2016-03-20 04:49:59 +01:00
twinaphex 97981c7a9d Header cleanups 2016-03-20 04:44:29 +01:00
twinaphex c46032c63a Some header cleanups 2016-03-20 04:29:40 +01:00
twinaphex ea7cf9d9ca (file_archive.c) Style nits 2016-03-20 04:21:47 +01:00
twinaphex 84c62cfb2b CONFIG_STRING_OPTIONS - driver changes get applied now 2016-03-20 03:07:51 +01:00
twinaphex 34958ec39a (Vulkan) Don't use VK_API_VERSION any more 2016-03-20 03:04:52 +01:00
twinaphex 41cf1df5a9 Update 2016-03-20 02:53:51 +01:00
twinaphex efb8649027 Add representations for config string options 2016-03-20 02:51:41 +01:00
radius 52b6d73c5a update version script 2016-03-19 13:18:53 -05:00
Twinaphex 1c56e86da4 Merge pull request #2800 from joolswills/config_save
fix config path saving when saving new config - can't use overlapping…
2016-03-19 04:55:46 +01:00
Jools Wills 797e62f604 fix config path saving when saving new config - can't use overlapping buffers in snprintf - fixes #2793 2016-03-19 03:30:04 +00:00
radius 2169f89946 - save osd color so it's copied correctly between per-core configs
- don't save nor load libretro core name
2016-03-18 20:28:49 -05:00
radius 7f5a6cdbf9 use string_is_empty instead 2016-03-18 20:28:48 -05:00
twinaphex 8d06c32d18 Clean this up 2016-03-18 23:32:40 +01:00
twinaphex 1bf76bc1f6 Create MENU_SETTING_CTL_ACTION_RIGHT 2016-03-18 23:31:11 +01:00
twinaphex 033cf569e4 Add MENU_SETTING_CTL_NEW 2016-03-18 22:31:14 +01:00
twinaphex a5cbafe0e5 Add MENU_SETTING_CTL_FREE 2016-03-18 22:27:40 +01:00
twinaphex 71f2fa531c Add MENU_SETTING_CTL_IS_OF_PATH_TYPE 2016-03-18 22:23:51 +01:00
twinaphex 6b01dd86ae Add menu_setting_ctl 2016-03-18 22:16:57 +01:00
twinaphex 9259b141a6 (menu_setting.c) Try to use 'string target' as little as possible 2016-03-18 20:45:25 +01:00
Twinaphex da7430be52 Merge pull request #2798 from DannyGlover/master
Fix compilation issue on iOS
2016-03-18 20:27:37 +01:00
Danny Glover 9102a9d999 Fix compilation issue on iOS
- Compilation failed out of the box due to a missing directory added
to the copy build phase
2016-03-18 18:39:24 +00:00
twinaphex e2fc8900b5 (menu_setting.c) Add source setting 2016-03-18 19:04:49 +01:00
twinaphex 2af2b4eebf (menu_setting.c) Add 'target' pointers 2016-03-18 19:01:42 +01:00
twinaphex 2c7cc41f1b Prevent null pointer dereference 2016-03-18 18:04:21 +01:00
Alcaro f8c31dd56a No point checking this twice. 2016-03-18 17:19:30 +01:00
Alcaro ba90c4afaf Fix some use-after-free holes. 2016-03-18 17:18:45 +01:00
radius 160118ff6c fix android build error 2016-03-17 20:31:33 -05:00
radius 90b7875f21 add banner 2016-03-17 20:29:09 -05:00
radius e02cc9ae5f make xmb default on atv 2016-03-17 20:10:03 -05:00
radius 6df0249d3e make xmb default on atv 2016-03-17 20:08:00 -05:00
radius 9b6e97f967 remove stray OSD message 2016-03-17 19:06:19 -05:00
radius 9fea079af3 update manifest 2016-03-17 19:03:27 -05:00
twinaphex a446f9040b Push these updates 2016-03-18 00:32:57 +01:00
twinaphex 91d14cbb62 Revert "Create RARCH_NETPLAY_CTL_IS_ENABLED, RARCH_NETPLAY_CTL_SET_ENABLE,"
This reverts commit 1a978b0f3c.
2016-03-18 00:32:02 +01:00
twinaphex 7f1c4fa2ff Rename sinc_neon.S to sinc_resampler_neon.S 2016-03-14 15:49:02 +01:00
twinaphex 55bb739996 Rename some files 2016-03-14 15:43:40 +01:00
twinaphex 2ce76ff147 Add null resampler so we can iterate over the rsamplers and
start from right to left again when touching
2016-03-14 15:42:12 +01:00
twinaphex 1a978b0f3c Create RARCH_NETPLAY_CTL_IS_ENABLED, RARCH_NETPLAY_CTL_SET_ENABLE,
and RARCH_NETPLAY_CTL_USNET_ENABLE
2016-03-14 15:03:42 +01:00
twinaphex 29bc5b1d50 Should now properly hide cursor when mouse grabbed 2016-03-14 14:41:46 +01:00
twinaphex d8ebcde5ec Implement GFX_CTL_SHOW_MOUSE 2016-03-14 14:39:58 +01:00
twinaphex 2e080967b0 Reimplement grab mouse code a bit - we really need to drastically
rewrite this
2016-03-14 14:37:18 +01:00
Twinaphex 3f3983c19d Merge pull request #2790 from DSkywalk/master
CHEEVOS - Implemented Hardcore Mode
2016-03-14 13:00:23 +01:00
David Skywalker 1a5273a73b just check hardcore mode changes on menu
also fix a rewind deinit
2016-03-14 12:53:56 +01:00
David Skywalker 91361f26de cheevos - added hardcore mode, in this mode savestates and rewind are disabled. 2016-03-14 11:51:54 +01:00
Twinaphex 8f867427db Merge pull request #2789 from Yogarine/master
Fix emscripten build
2016-03-14 10:54:51 +01:00
Alwin Garside 36117750af Merge branch 'master' of https://github.com/libretro/RetroArch 2016-03-13 15:30:41 +01:00
Alwin Garside 97b60b1e20 Fixed emscripten build 2016-03-13 15:30:30 +01:00
Twinaphex 4d3f187db0 Merge pull request #2787 from aliaspider/master
(3DS) update assets.
2016-03-12 18:12:58 +01:00
aliaspider b5f35ec39b (3DS) nit. 2016-03-12 17:52:03 +01:00
aliaspider aea164f3c8 (3DS) update core assets/ids 2016-03-12 17:47:46 +01:00
aliaspider bb6fe9cceb (3DS) update core icons/banners.
source:
- https://gbatemp.net/threads/retroarch-emulation-thread-nightly-builds-
- https://gbatemp.net/threads/retroarch-emulation-thread-nightly-builds-
2016-03-12 17:46:56 +01:00
twinaphex 69998b0d6c Memset runloop_frame_time to NULL at RUNLOOP_CTL_PREPARE_DUMMY
time
2016-03-12 15:17:02 +01:00
twinaphex 3d19ec2e9e Reimplement frame time code 2016-03-12 14:47:10 +01:00
twinaphex 8467ce114c (Android) Followup to earlier commit 2016-03-12 08:53:27 +01:00
twinaphex 432d7a358a (Android) Move Android-specific Moto G2 DPI workaround to android graphics context
driver
2016-03-12 08:52:29 +01:00
radius 48d61f33ab attempt to fix moto g2 issue 2016-03-12 00:00:05 -05:00
Twinaphex c5ed4f1f65 Merge pull request #2785 from Kivutar/patch-2
Reorder static functions in vivante context
2016-03-11 22:30:04 +01:00
Jean-André Santoni 0863a8eb84 Reorder static functions in vivante context 2016-03-12 04:29:26 +07:00
Twinaphex 0e4a8dfd97 Merge pull request #2784 from DSkywalk/master
Bettler Cheevos NES detection game_id to avoid unresolved game_id requests.
2016-03-11 21:54:40 +01:00
David Skywalker d62d80c1ce cheevo - fixed md5 nes compute to fix unresolved game_id request. 2016-03-11 21:26:07 +01:00
Twinaphex ca480ef459 Prevent possible crash 2016-03-11 10:16:23 +01:00
radius 761ece0f3c set SAVE directory correctly when using content dir on cores that don't use the SRAM interface 2016-03-10 17:36:46 -05:00
radius 82084205d8 [zr] we don't need to pass the context we already have that in the menu handle 2016-03-09 20:14:01 -05:00
radius 53be91af9e style nits 2016-03-09 16:17:18 -05:00
radius 6a17168739 Merge branch 'master' of github.com:libretro/RetroArch 2016-03-09 15:39:50 -05:00
radius 7f8c6f50e3 [zr] split GL code in another file
This makes zahnrad reusable in other menu drivers
2016-03-09 15:33:27 -05:00
Alcaro b6c1b9f7a0 Merge pull request #2778 from Kivutar/patch-1
Fix a typo in mali_fbdev_ctx
2016-03-09 19:55:10 +01:00
Jean-André Santoni a16ce4a146 Fix a typo in mali_fbdev_ctx 2016-03-10 01:50:30 +07:00
Twinaphex 809398b740 Merge pull request #2777 from lakkatv/master
(Lakka) If HAVE_LAKKA is defined, display Shutdown and Reboot entries…
2016-03-09 19:10:31 +01:00
Jean-André Santoni 1d69f55b37 (Lakka) If HAVE_LAKKA is defined, display Shutdown and Reboot entries in RGUI 2016-03-10 00:52:17 +07:00
twinaphex b12367c781 Update 2016-03-09 12:42:58 +01:00
twinaphex 341d0f9998 Update 2016-03-09 12:00:45 +01:00
twinaphex f79418459f Ability to compile now with --enable-wayland and --disable-x11
defined
2016-03-09 09:21:07 +01:00
twinaphex 08ed4d0e57 Cleanup 2016-03-08 16:11:53 +01:00
twinaphex 0de724d066 Update glsm 2016-03-08 16:09:09 +01:00
radius 26e171cfbc [zr] add wizard page indicator 2016-03-07 18:17:57 -05:00
radius 58ef1541c2 [zr] start implementing wizard 2016-03-07 00:27:40 -05:00
radius 4e4c69a3dc [zr] save window state so it can be restored after a context reset 2016-03-07 00:27:39 -05:00
twinaphex bdb8edb708 Update to glsm 2016-03-07 01:46:47 +01:00
radius 34d618238b [zr] tidy up zr_common 2016-03-06 14:13:20 -05:00
radius f41280e82c [remapping] fix saving for players other than 1 2016-03-06 13:15:05 -05:00
Twinaphex 787924fc8f Merge pull request #2775 from Themaister/master
Vulkan: Various fixes and cleanups
2016-03-06 12:38:43 +01:00
Hans-Kristian Arntzen f02faeea27 Vulkan: Fix segfault on nVidia. 2016-03-06 12:33:46 +01:00
Hans-Kristian Arntzen c00d32f30f Vulkan: Get correct window mode size. 2016-03-06 12:18:11 +01:00
Hans-Kristian Arntzen 6cde59a8ad Vulkan: Add more detailed counters. 2016-03-06 12:11:44 +01:00
Hans-Kristian Arntzen e6fb3c3a1c Update Vulkan headers. 2016-03-06 11:31:30 +01:00
Hans-Kristian Arntzen 9954d03f2a Strip out some warnings in glslang. 2016-03-06 11:31:10 +01:00
Hans-Kristian Arntzen ebdb7168ed Vulkan: Clean up symbol loading.
Should use GetDeviceProcAddr when appropriate.
2016-03-06 11:27:36 +01:00
radius cc250f755b [zr] fix message 2016-03-05 23:09:28 -05:00
radius 1ee45f2162 [zr] add an extra image to the wizard stub 2016-03-05 23:05:16 -05:00
radius f73d086abd [zr] add image loading code (stb) 2016-03-05 23:02:29 -05:00
radius 992c66ffc8 [zr] add image loading code (stb) 2016-03-05 22:54:56 -05:00
radius 0eba3fe791 [zr] add wizard window stub 2016-03-05 22:24:01 -05:00
radius a0eb17200b [zr] rename function 2016-03-05 21:59:01 -05:00
twinaphex 5e87fd5ecc Include stdarg.h 2016-03-06 03:57:37 +01:00
radius d860642c75 [zr] split the window code to zr_common 2016-03-05 21:52:09 -05:00
radius c2e4eb772d [zr] refactor structures pt.2 2016-03-05 21:13:25 -05:00
radius 2809074ccd [zr] refactor structures pt.1 2016-03-05 21:13:24 -05:00
twinaphex e5ce152b95 Update submodule 2016-03-06 02:59:21 +01:00
twinaphex 15c9e0ae7e Add fallback 2016-03-06 01:31:46 +01:00
twinaphex 5e99d163de Puti n call to input_keyboard_event when compiling without HAVE_XKBCOMMON 2016-03-05 22:18:22 +01:00
twinaphex f4ea4bfdda Bump up version 2016-03-05 20:33:23 +01:00
Twinaphex 74629ab4b5 Bump up version to 1.3.1 2016-03-05 19:07:22 +01:00
Twinaphex 644de4ae9e Merge pull request #2774 from lordhoto/cg2glsl-fragment-uniform-fix
cg2glsl: Write uniform declarations for fragment shaders.
2016-03-05 17:05:06 +01:00
Johannes Schickel 3a658172f8 (tools/cg2glsl.py) Write uniform declarations for fragment shaders.
Formerly, the fragment shader conversion pass did not write required uniform
declarations. This resulted in use of undefined symbols in some cases. In turn
conversion of some shaders to GLSL were broken.

This fixes conversion of some shaders, most prominently the hq shaders.
2016-03-05 12:49:21 +01:00
Twinaphex e0d7c25ea0 Add gfx_coord_array_resize 2016-03-05 09:43:15 +01:00
twinaphex a73cbb6114 (zahnrad) Use menu_texture_item 2016-03-05 08:42:35 +01:00
twinaphex 1742b96ec0 Add menu_texture_item 2016-03-05 08:40:28 +01:00
twinaphex 72303888c8 Remove unused menu_increment_menu_stack 2016-03-05 07:41:44 +01:00
twinaphex eebcde721b Rename video_coord_array 2016-03-05 07:28:02 +01:00
radius d647c1b215 [zr] hook up the scroll wheel 2016-03-05 01:26:45 -05:00
radius 145979ddcb [zr] label fix 2016-03-05 00:52:59 -05:00
radius 052730bbf1 [zr] refactor most of the menu, have a global state, width, height now 2016-03-05 00:50:57 -05:00
twinaphex 94ec0fc94d Fix fastforward mode 2016-03-04 22:35:39 +01:00
twinaphex 1c6d58e6c6 Cleanups 2016-03-04 22:22:03 +01:00
twinaphex d56bde43e8 audio_driver_ctl - cleanups 2016-03-04 22:10:47 +01:00
twinaphex 508d849fa5 Cleanups 2016-03-04 22:07:47 +01:00
twinaphex 50e70bf707 (audio_driver.c) Cleanups 2016-03-04 22:02:51 +01:00
twinaphex 9f50ab2534 Cleanups 2016-03-04 21:51:33 +01:00
twinaphex 009329969a Refactor away audio_driver_set_callback_state 2016-03-04 21:47:24 +01:00
twinaphex b7d3f3b01c Remove functions audio_driver_set_callback/audio_driver_unset_callback 2016-03-04 21:44:44 +01:00
twinaphex f3a9a38987 (audio_driver.c) Cleanup 2016-03-04 21:38:18 +01:00
twinaphex 3d6e6efe49 audio_driver.c - cleanup 2016-03-04 21:35:54 +01:00
radius 0ce76cbf5b [zr] remove more glui code 2016-03-04 15:08:43 -05:00
twinaphex 64a77af881 Use RARCH_DISPLAY_CTL_HW_CONTEXT_GET directly instead of
going through video_driver_callback
2016-03-04 20:49:55 +01:00
twinaphex a9d29041a3 (gfx/video_driver.c) Cleanup 2016-03-04 20:14:53 +01:00
radius 6066ab3ecc [zr] update toolkit 2016-03-04 14:06:04 -05:00
twinaphex c717ebdfda Rename callbacks 2016-03-04 20:00:49 +01:00
twinaphex acdf0eb74e Fix C89_BUILD 2016-03-04 19:48:05 +01:00
twinaphex 0140f989c3 Fix CXX_BUILD 2016-03-04 19:46:25 +01:00
twinaphex e9a0aba85b Silence bunch of warnings and fix an error 2016-03-04 19:42:30 +01:00
twinaphex 90fbc6330c Create RARCH_DISPLAY_CTL_SET_TITLE_BUF 2016-03-04 19:38:15 +01:00
twinaphex 2d158b809c Cleanups 2016-03-04 19:29:22 +01:00
twinaphex 05ce32efe4 Add RUNLOOP_CTL_FORCED_NONBLOCK_{} actions 2016-03-04 19:20:00 +01:00
twinaphex fe9ad4825d (gfx/video_driver.c) Cleanups 2016-03-04 19:12:54 +01:00
twinaphex f9ef8d4cc7 Move variables to camera_driver_ctl 2016-03-04 19:02:14 +01:00
twinaphex a9038e3b0a Remove these enums 2016-03-04 18:16:57 +01:00
twinaphex e34943194c Refactor camera driver code 2016-03-04 18:16:07 +01:00
twinaphex 9ba753993b Create RUNLOOP_CTL_{GET/SET}_FRAME_TIME 2016-03-04 17:54:54 +01:00
twinaphex 81e13aa2c1 (command.c) Cut down on some functions 2016-03-04 17:35:44 +01:00
twinaphex 95314700f9 Turn menu_displaylist_parse_settings into static function 2016-03-04 07:42:38 +01:00
twinaphex ed54600b41 (XMB) Start using DISPLAYLIST_SETTING 2016-03-04 07:41:45 +01:00
twinaphex b03487dc4f Start using DISPLAYLIST_SETTING 2016-03-04 07:37:40 +01:00
twinaphex 0c517434f3 Add DISPLAYLIST_SETTING 2016-03-04 07:29:17 +01:00
twinaphex 9fdbde1b4c Add menu_displaylist_ctx_parse_entry 2016-03-04 07:24:30 +01:00
twinaphex 3d8e1e0f6c Revert "Change signature of menu_displaylist_parse_settings"
This reverts commit 280431114e.
2016-03-04 07:23:07 +01:00
twinaphex 280431114e Change signature of menu_displaylist_parse_settings 2016-03-04 07:20:37 +01:00
twinaphex 418c5cbb76 (Win32) Buildfix 2016-03-04 05:01:49 +01:00
twinaphex 6d4212ca06 Check OS version before going down screensaver path 2016-03-04 04:51:57 +01:00
radius f86097aefb [zr] remove a lot of glui code 2016-03-03 22:31:38 -05:00
twinaphex f687fec624 Makefile.win - cleanups 2016-03-04 04:24:47 +01:00
twinaphex f828de24db Remove this 2016-03-04 04:19:35 +01:00
twinaphex 297abae623 (Mingw) Add program files include dir check 2016-03-04 04:06:43 +01:00
twinaphex be95858b16 Add DirectX SDK path if not already included inside PATH 2016-03-04 02:11:15 +01:00
twinaphex 93de657952 (retro_inline.h) Fix backwards compatibility with older mingw versions 2016-03-04 01:43:09 +01:00
radius 5b11e290dd [zr] add entry for test window 2016-03-03 18:39:14 -05:00
radius d9bc760b46 [zr] fix window opening and closing 2016-03-03 18:39:13 -05:00
radius 041af7cdb8 [zr] update zahnrad 2016-03-03 18:39:11 -05:00
radius dfefefb416 [zr] change the window hiding method a bit 2016-03-03 18:39:10 -05:00
twinaphex 5a1d8a96d0 (Menu) Create new input_ctl actions for pointer dragging 2016-03-03 23:21:02 +01:00
twinaphex 242b511387 Ifdef with RARCH_INTERNAL 2016-03-03 18:18:41 +01:00
twinaphex d15eb9a570 Add HAVE_SSA switch to qb 2016-03-03 18:17:48 +01:00
twinaphex e663a69c0b (Network Information) Show title bar 2016-03-03 07:27:47 +01:00
twinaphex 869cb8a1be (net_ifinfo.c) Bugfix 2016-03-03 07:17:17 +01:00
twinaphex ec0d9f0a70 (net_ifinfo.c) Style nits 2016-03-03 07:16:06 +01:00
twinaphex fe3c279f73 Cleanups 2016-03-03 06:59:54 +01:00
twinaphex 5cef419209 (zahnrad) Get past crash when shader is NULL 2016-03-03 06:21:40 +01:00
twinaphex 97eea9e71f (net_ifinfo/Win32) Adapter name shows up now - IP address doesn't yet 2016-03-03 05:50:45 +01:00
radius 4617f792c5 [zr] implement combo box for recents 2016-03-02 22:41:28 -05:00
twinaphex 4d630189a2 Start adding Windows implementation for net_ifinfo.c - will
need to link against iphlpapi for mingw
2016-03-03 04:40:25 +01:00
twinaphex 966f267285 (Win32) Start trying to implement Win32 backend for net_ifinfo.c 2016-03-03 04:11:24 +01:00
twinaphex dfa315f0d5 Fix compat_ifaddrs.c - network addresses are now shown on Android 2016-03-03 03:44:16 +01:00
twinaphex 5b4ba2a449 Add Network Information now 2016-03-03 03:06:54 +01:00
twinaphex e99a97d9b7 Some compilation fixes for compat_ifaddrs.c 2016-03-03 02:51:06 +01:00
twinaphex 4fce2e74ac (Win32) Buildfix 2016-03-03 02:10:34 +01:00
twinaphex 88b3b9a08d Include boolean.h 2016-03-03 02:09:30 +01:00
twinaphex c9e6a91137 (Android) Bake in ifaddrs for Android 2016-03-03 02:08:47 +01:00
twinaphex a3234f3f17 (net_ifinfo.c) ifndef this out for _WIN32 so far 2016-03-03 01:34:45 +01:00
radius c2bd46e3cb [zr] remove most glui drawing code 2016-03-02 19:28:46 -05:00
Twinaphex d5bc3c4d5b (OSX) Silence some warnings - just use plain numbers instead of enums
which can rapidly grow out of date
2016-03-03 00:48:45 +01:00
twinaphex b7ef5271ea zrmenu_set_style - C89 fix 2016-03-03 00:43:53 +01:00
twinaphex 7de6a0f005 (menu_displaylist.c) Turn this into enum with name 2016-03-03 00:37:32 +01:00
twinaphex 61faa0a04b Bake in net_ifinfo 2016-03-03 00:26:26 +01:00
twinaphex 191b233334 Cleanup net_ifinfo 2016-03-03 00:22:38 +01:00
twinaphex cbc8bab8e2 Cleanup 2016-03-03 00:19:37 +01:00
twinaphex d805845e29 Add net_ifinfo 2016-03-03 00:17:14 +01:00
radius 1cea6cd7be [zr] implement 'bool' parameters 2016-03-02 18:08:57 -05:00
radius e9ce64e854 [zr] implement shader parameters dialog 2016-03-02 17:14:50 -05:00
twinaphex 414c63b59a (VG) Silence some warnings
(Libretro-common) Add some headers
2016-03-02 23:09:31 +01:00
Twinaphex 6a2449bd1e Merge pull request #2770 from dankcushions/master
Fix compilation error:
2016-03-02 23:06:14 +01:00
Christopher Bransden 2d0c02d21e Fix compilation error:
gfx/drivers_context/vc_egl_ctx.c:591:13: error: static declaration of ‘gfx_ctx_vc_set_swap_interval’ follows non-static declaration
gfx/drivers_context/vc_egl_ctx.c:312:4
2016-03-02 21:31:56 +00:00
radius 55530dcbc3 [zr] implement exit, make clics respond even when the window is innactive 2016-03-02 16:24:36 -05:00
radius 7853815d45 [zr] change layout 2016-03-02 16:24:35 -05:00
radius 89cccb111b [zr] update zahnrad 2016-03-02 16:24:34 -05:00
twinaphex 1645ae54be (Zarch) Cleanups 2016-03-02 22:21:12 +01:00
twinaphex 30fa73dc8d (Zarch) Create typedef zarch_texture_item 2016-03-02 22:19:20 +01:00
twinaphex 7df467422b Create typedefs 2016-03-02 22:17:05 +01:00
twinaphex 885966c16b Nit 2016-03-02 22:08:37 +01:00
twinaphex 138e4bc78b menu_input_mouse_state - cleanups 2016-03-02 22:02:35 +01:00
twinaphex 4ba487df99 (menu_input.c) Turn some variables into static local variables 2016-03-02 22:01:00 +01:00
twinaphex 0f8e31cad3 (iOS) Use -1 instead of UIUserInterfaceIdiomUnspecified for backwards
compatibility
2016-03-02 17:25:13 +01:00
radius 1d0beeb665 [zr] set focus properly 2016-03-02 11:03:10 -05:00
radius 4eb6f26d92 [zr] update zahnrad 2016-03-02 11:01:22 -05:00
radius 780974ef32 [zr] change menu label 2016-03-02 02:51:03 -05:00
radius 8c86c6a47c [zr] hide/unhide window concept 2016-03-02 02:49:07 -05:00
radius 272563f3ca [zr] hide/unhide window concept 2016-03-02 02:48:51 -05:00
radius 8d89b1fa86 [zr] draw window offscreen till a better solution is available 2016-03-02 01:49:57 -05:00
twinaphex 75c05a5d7f Do away with no_content member 2016-03-02 06:20:36 +01:00
twinaphex 50f0e19263 Remove unused variable 2016-03-02 06:11:03 +01:00
radius 2807f94a14 [zr] hide/unhide windows 2016-03-01 23:43:15 -05:00
twinaphex 5dfc3f31db Move game_options_path to paths 2016-03-02 05:29:24 +01:00
radius 1b1b59692b [zr] add menu bar 2016-03-01 23:20:43 -05:00
twinaphex 0b78b07573 Cleanups 2016-03-02 05:17:30 +01:00
twinaphex b038b4ae41 Move some variables to menu_input_ctl as static local variables 2016-03-02 05:09:09 +01:00
radius d2d4312128 [zr] start adding main window 2016-03-01 21:49:30 -05:00
twinaphex 7d0205deac (vulkan_common.c) Add log error when vkCreateInstance fails 2016-03-02 03:13:31 +01:00
radius 0b9ea0943b [zr] cleanups 2016-03-01 18:54:46 -05:00
twinaphex fa1662412b Use MIN/MAX 2016-03-02 00:11:45 +01:00
twinaphex 130f0749d4 (Android) Update 2016-03-02 00:09:43 +01:00
twinaphex 6f80e09ce1 Change MIN/MAX to upper-case 2016-03-02 00:07:31 +01:00
twinaphex 784df92f8d (Android) Compile in Vulkan support 2016-03-01 23:37:27 +01:00
twinaphex 702d4f9e3a (Android) Buildfix 2016-03-01 22:26:57 +01:00
twinaphex d2a798e9cf (Griffin) Add files to griffin.c 2016-03-01 22:25:53 +01:00
twinaphex efb1c88215 (opendingux_fbdev_ctx.c) Another ifdef 2016-03-01 22:23:40 +01:00
twinaphex f3cc1a9b59 (opendingux_fbdev_ctx.c) More HAVE_EGL ifdefs 2016-03-01 22:23:17 +01:00
twinaphex ac584330bb (Android) Bugfix 2016-03-01 21:58:35 +01:00
twinaphex 1b0a9d0b1d Backport Opendingux/GCW Zero patches courtesy of gama.coder 2016-03-01 21:50:23 +01:00
twinaphex d2645e9087 Add more glslang include dirs 2016-03-01 19:19:39 +01:00
twinaphex 800d54a7fb (Android) Start setting up include dirs 2016-03-01 19:04:20 +01:00
twinaphex 77001a5577 (Android) More preparation for Vulkan 2016-03-01 18:59:12 +01:00
twinaphex 86a8899b0f (Android) Start preparing Android JNI Makefiles for Android 2016-03-01 18:46:40 +01:00
twinaphex c44107949d (Vulkan) Pass width and height to vulkan_surface_create 2016-03-01 18:35:41 +01:00
twinaphex 5f125bc1f6 (Android) Only need to pass window for Android 2016-03-01 18:22:17 +01:00
twinaphex eaa0b08bc2 (Android) Hook up Vulkan for gfx_ctx_bind_api 2016-03-01 18:21:09 +01:00
twinaphex b8c1e31c13 (Android/Vulkan) Start hooking up Vulkan for Android context driver 2016-03-01 18:16:22 +01:00
twinaphex cbc575eec0 (zarch) Prevent some more NULL pointer dereferences when using the mouse 2016-03-01 17:33:36 +01:00
twinaphex 81690601c0 (gl_raster_font.c) Fix some race issues 2016-03-01 17:24:33 +01:00
Twinaphex 89bcdeaf0b Merge pull request #2768 from Themaister/master
Vulkan: Allocate correct number of descriptors.
2016-03-01 14:28:41 +01:00
Themaister bce0d55a43 Vulkan: Allocate correct number of descriptors.
Have to allocate for entire pool, not per set.
2016-03-01 09:44:18 +01:00
twinaphex b57b5f3624 load_content_from_compressed_archive - prevent warning 2016-03-01 07:20:16 +01:00
twinaphex dc12f07a55 (mali_fbdev) Add some ifdefs 2016-03-01 07:17:57 +01:00
twinaphex 59ed4b939f Cleanups 2016-03-01 07:09:55 +01:00
twinaphex 47fddf28e5 (Emscripten context) Cleanups 2016-03-01 07:07:56 +01:00
twinaphex 32c4f13761 (XEGL) Add HAVE_VG ifdefs 2016-03-01 06:56:41 +01:00
twinaphex e938be3747 Have to rewrite EGL context code 2016-03-01 06:49:05 +01:00
twinaphex ae6302ede2 (Android EGL context) Add missing break 2016-03-01 05:09:07 +01:00
twinaphex 00741d06fb Add android_gfx_ctx_bind_hw_render 2016-03-01 05:08:18 +01:00
twinaphex c5667d8253 (Android EGL context) Refactor more code 2016-03-01 05:07:11 +01:00
twinaphex 2480181469 (Android) Add android_api variable 2016-03-01 04:53:48 +01:00
twinaphex 481196c55c Add some more ifdefs 2016-03-01 04:19:33 +01:00
twinaphex f8f2f7d03c Rename androidegl_ctx.c to android_ctx.c 2016-03-01 04:18:43 +01:00
twinaphex 0ec1c5ade5 Start adding HAVE_OPENGLES ifdefs to androidegl_ctx.c 2016-03-01 04:17:02 +01:00
twinaphex dff5aa35d6 Update glslang 2016-03-01 03:48:29 +01:00
twinaphex de27720044 We don't need to link against libvulkan.so implicitly anymore 2016-03-01 02:47:16 +01:00
twinaphex b0834a0f17 Remove this 2016-03-01 02:22:25 +01:00
twinaphex b79edb6095 Reimplement function pointers 2016-03-01 02:21:53 +01:00
twinaphex 937230564d move more code to vksym.h 2016-03-01 01:53:48 +01:00
twinaphex a6048b4218 Add vksym.h 2016-02-29 23:38:49 +01:00
twinaphex 7a907a97a7 Start preparing to split this code up 2016-02-29 23:31:51 +01:00
twinaphex 9a10ef5591 (Vulkan) Add more Vulkan function pointers 2016-02-29 23:28:12 +01:00
twinaphex 860b7fde62 (Vulkan) Add DeviceWaitIdle function pointer 2016-02-29 23:25:25 +01:00
twinaphex 1d9220d9d1 (Vulkan) Add vkCmdBindVertexBuffers function pointer 2016-02-29 23:22:56 +01:00
twinaphex c8b9bb609f (Vulkan) More image function pointers 2016-02-29 23:19:23 +01:00
twinaphex 30eac5b778 (Vulkan) Add vkDestroyDescriptorPool fp 2016-02-29 23:13:13 +01:00
twinaphex 6023a5f06e Add vkAllocateDescriptorSets fp 2016-02-29 23:11:00 +01:00
twinaphex 4a1a623099 (Vulkan) Add more funcptrs 2016-02-29 23:09:05 +01:00
twinaphex 0e60d20705 Add Command Function pointers 2016-02-29 23:04:17 +01:00
twinaphex 67ea4e1d6b (Vulkan) Pipeline function pointers 2016-02-29 22:55:31 +01:00
twinaphex 1fbac78e35 (Vulkan) Go through function pointer for vkDestroyPipelineCache 2016-02-29 22:38:58 +01:00
twinaphex a7df7be64b Add vkAllocateMemory/vkFreeMemory 2016-02-29 22:36:53 +01:00
twinaphex a53e7a5437 (Vulkan) Add pipeline barrier function pointer 2016-02-29 22:30:23 +01:00
twinaphex bd96ab3585 (vulkan_common.c) Cleanups 2016-02-29 22:26:20 +01:00
twinaphex 1b85ee442f Go through funcptr for vkAllocateCommandBuffers 2016-02-29 22:23:35 +01:00
twinaphex 83dc7db6c7 (Vulkan) Add descriptor set layout function callbacks 2016-02-29 22:04:23 +01:00
twinaphex caed6c61cb (Vulkan) Function pointer for vkFreeCommandBuffers 2016-02-29 21:58:10 +01:00
twinaphex 1e407079e4 Add function pointers for image view functions 2016-02-29 21:55:54 +01:00
twinaphex a6eb40b3d2 Add funcptr for vkAllocateCommandBuffers 2016-02-29 21:51:42 +01:00
twinaphex 4771c45ed3 Add render pass command function pointers 2016-02-29 21:43:04 +01:00
twinaphex 7f5d0f2763 (Vulkan) More function pointers for command buffer functions 2016-02-29 21:37:35 +01:00
twinaphex 860ffff3c9 (Vulkan) Go through funcptr for vkEndCommandBuffer 2016-02-29 21:31:51 +01:00
twinaphex a1c8a47665 (Vulkan) Go through funcptr for vkDestroyInstance 2016-02-29 21:27:18 +01:00
twinaphex c62971042d (Vulkan) Cleanups 2016-02-29 21:20:36 +01:00
twinaphex eae652d6a5 Go through funcptr for vkDestroyCommandPool 2016-02-29 21:17:21 +01:00
twinaphex 8232135922 Cleanups 2016-02-29 20:08:56 +01:00
twinaphex e669f92399 (Vulkan) Cleanups 2016-02-29 20:07:11 +01:00
twinaphex 3b9552bd36 (vulkan_raster_font.c) Style nits 2016-02-29 20:02:44 +01:00
twinaphex 8a06e27c22 (Vulkan) Cleanups 2016-02-29 19:44:46 +01:00
twinaphex 59ad8fcfde (Vulkan) Cleanups 2016-02-29 19:43:54 +01:00
twinaphex f0458495f4 Go through funcptr for vkDestroyPipeline 2016-02-29 19:41:25 +01:00
twinaphex d45f0e0946 Some cleanups 2016-02-29 19:39:49 +01:00
twinaphex 670eede306 Go through function pointer for vkCmdClearAttachments 2016-02-29 19:34:40 +01:00
twinaphex b09a19d9a0 (Vulkan) Style nits 2016-02-29 19:26:57 +01:00
twinaphex ae5d7849af (shader_vulkan.cpp) Don't have to include general.h for this 2016-02-29 19:23:51 +01:00
twinaphex fc7a972466 Go through function pointers for vkMapMemory/vkUnmapMemory 2016-02-29 19:20:42 +01:00
twinaphex 28d5ca6a86 (Vulkan) Style nits 2016-02-29 19:16:21 +01:00
twinaphex b660fb8878 Create sampler function pointers 2016-02-29 19:11:09 +01:00
twinaphex 0e91bb6852 Go through more function pointers 2016-02-29 19:03:18 +01:00
twinaphex dfde6f833a (Vulkan) Nits 2016-02-29 18:46:17 +01:00
twinaphex 1d96e80b05 (Vulkan) More funcptrs 2016-02-29 18:40:30 +01:00
twinaphex fbf527eac2 (vulkan_common.c) Style nits 2016-02-29 18:24:12 +01:00
twinaphex ef93f92ea2 Cleanups 2016-02-29 17:22:57 +01:00
twinaphex a8ccf2531d Cleanups 2016-02-29 17:21:40 +01:00
twinaphex e6da374bb5 Cleanups 2016-02-29 17:18:28 +01:00
twinaphex a4c9d02953 Add DestroyImage funcptr 2016-02-29 17:16:01 +01:00
twinaphex 874b5b7e17 Go through more funcptrs 2016-02-29 17:13:13 +01:00
twinaphex 8fd280967b Go through funcptr 2016-02-29 17:08:25 +01:00
twinaphex 5863996d83 Go through VKFUNC 2016-02-29 17:06:41 +01:00
twinaphex 8f69470c25 Go through VKFUNC macro 2016-02-29 17:00:08 +01:00
twinaphex d6005c224c Go through VKFUNC 2016-02-29 16:55:50 +01:00
twinaphex 6836b5f868 vkCreateImage - go through funcptr 2016-02-29 16:48:55 +01:00
twinaphex 3677144d18 Start going through VKFUNC 2016-02-29 16:47:21 +01:00
twinaphex 6c9e8041c6 Add function pointer for vkCreateCommandPool 2016-02-29 16:41:49 +01:00
twinaphex 6dce80ea07 Add function pointers for vkCreatePipelineCache and vkCreatePipelineLayout 2016-02-29 16:37:15 +01:00
twinaphex 778b50fc28 Add funcptr for vkCreateFramebuffer 2016-02-29 16:32:34 +01:00
twinaphex 361cce328d vkCreateRenderPass - add funcptr 2016-02-29 16:30:45 +01:00
twinaphex 277e2977ff (Vulkan) Add function pointer to vkDestroyDevice 2016-02-29 16:28:12 +01:00
twinaphex 4248e244a8 Go through funcptr for vkCmdCopyImage 2016-02-29 06:52:08 +01:00
twinaphex 01f5a7ad84 Go through vkQueueWaitIdle function pointer 2016-02-29 06:31:55 +01:00
twinaphex 89ee08214d We need to grab a function pointer to vkCmdDraw later after
vkCreateDevice
2016-02-29 06:21:42 +01:00
twinaphex be5333371b (Vulkan) More funcptrs 2016-02-29 06:16:31 +01:00
twinaphex bfd38e171b (Vulkan) More Vulkan funcptrs 2016-02-29 05:57:38 +01:00
radius 3f22d5cb33 make the gui a bit flatter 2016-02-28 23:52:33 -05:00
twinaphex 3abea50cbf Move function pointers to vulkan_context 2016-02-29 05:49:05 +01:00
radius 7e1e330463 add context menu to demo window 2016-02-28 23:43:02 -05:00
twinaphex 2a621a8424 Go through vkEnumeratePhysicalDevices funcptr 2016-02-29 05:37:37 +01:00
twinaphex cf03851cc8 Add vkGetDeviceQueue funcptr 2016-02-29 05:37:37 +01:00
radius a6f015623a stub function for kbd input 2016-02-28 23:35:22 -05:00
twinaphex 5e970637d4 (Vulkan) Add more function pointers 2016-02-29 05:32:10 +01:00
twinaphex 25d741e26a Start setting up more function pointers 2016-02-29 04:21:08 +01:00
twinaphex 82f5d917f0 Start trying to roll our own Vulkan loader based on PPSSPP
approacha
2016-02-29 03:14:17 +01:00
twinaphex a8185f0b81 Cleanups 2016-02-29 02:54:46 +01:00
twinaphex 042e4b0ba7 (Zarch) Style nits 2016-02-29 02:52:00 +01:00
twinaphex 070f25131a (Zarch) Cleanups 2016-02-29 02:48:29 +01:00
Twinaphex e5e11ae716 Remove unused variable 2016-02-29 02:41:06 +01:00
twinaphex 28a02da5bf Cleanups 2016-02-29 02:38:11 +01:00
twinaphex 91d19a15ec Take this out 2016-02-29 02:36:18 +01:00
twinaphex 28bb5295f7 (menu/drivers/zarch.c) Use strlcpy instead of strncpy 2016-02-29 02:17:53 +01:00
twinaphex b4e872476b Prevent some more crashes 2016-02-29 02:09:10 +01:00
twinaphex 4f1ab1f9c3 (gl_raster_font.c) Add early return in case gl pointer is NULL 2016-02-29 01:54:54 +01:00
twinaphex 65b628cf20 Cover more edge cases for crashes initiated by Zarch 2016-02-29 01:49:58 +01:00
twinaphex 09f2b64c1f gl_render_overlay -add early return 2016-02-29 01:43:40 +01:00
twinaphex 34f3963e4e Simplify RUNLOOP_CTL_IS_SLOWMOTION 2016-02-29 01:33:14 +01:00
twinaphex 6fbad68561 (gl.c) Cleanup 2016-02-29 01:29:49 +01:00
twinaphex 7d346d627f Robustness fixes 2016-02-29 01:22:39 +01:00
Twinaphex d9750591d2 Merge pull request #2764 from IlDucci/master
Updating Spanish Translation
2016-02-28 23:04:06 +01:00
IlDucci 86a94a5d95 Updating Spanish Translation
Added the two missing lines.
2016-02-28 22:57:34 +01:00
twinaphex 6f9b7a4c87 Silence CXX_BUILD warnings 2016-02-28 22:51:02 +01:00
twinaphex ea94d33de5 Avoid CXX_BUILD warnings 2016-02-28 22:49:52 +01:00
twinaphex ca497533db Fix C89_BUILD warning 2016-02-28 22:47:46 +01:00
Twinaphex edf296a06c Merge pull request #2763 from IlDucci/master
Updating Spanish Translation
2016-02-28 22:45:26 +01:00
IlDucci 76ef4bd44a Updating Spanish Translation
Adding changes to the Spanish translation
2016-02-28 22:30:31 +01:00
twinaphex 5104e05a89 Cleanup 2016-02-28 21:18:06 +01:00
twinaphex cec6701c0d (config_file.C) Fix segfaultthat happened at freeing of tmp->key
when tmp->key is NULL
2016-02-28 18:44:07 +01:00
twinaphex f13b630d57 Reimplement pending_action OK 2016-02-28 18:35:34 +01:00
twinaphex 841a647d0c Revert "Remove the pending_action code"
This reverts commit b19f12ec66.
2016-02-28 18:28:11 +01:00
twinaphex b19f12ec66 Remove the pending_action code 2016-02-28 18:03:57 +01:00
twinaphex 96c21eeb0d Reimplement gamepad action OK button 2016-02-28 17:45:14 +01:00
twinaphex b4acda26a2 Remove unused struct variables 2016-02-28 17:35:52 +01:00
twinaphex ae66fc95cc Start refactoring 'Load' menu 2016-02-28 17:33:56 +01:00
twinaphex 6726b64d0d Refactor zarch_zui_gamepad_input - introduce cutoff point 2016-02-28 17:20:14 +01:00
twinaphex 49d751e6c3 Create zarch_zui_gamepad_input 2016-02-28 16:49:46 +01:00
twinaphex 5c18dc8a04 (Zarch) Better gamepad controls 2016-02-28 16:44:41 +01:00
twinaphex 004ca19fe4 (Zarch) Start implementing gamepad controls 2016-02-28 15:39:20 +01:00
Twinaphex 77cec284f4 Merge pull request #2762 from Monroe88/menu_filter
Add option for menu linear filter
2016-02-28 04:11:30 +01:00
Monroe88 a669039523 Add option for menu linear filter 2016-02-27 17:30:12 -06:00
radius 11423ac52e look for assets in the correct folder 2016-02-27 15:02:13 -05:00
radius 87c2f16ca7 readd the cursor for fullscreen mode 2016-02-27 14:59:42 -05:00
radius a4720acf22 disable oversampling leads to some font alignment issues 2016-02-27 13:10:07 -05:00
radius 88dfabf92f change texture filtering to nearest 2016-02-27 12:42:16 -05:00
twinaphex 5f00e6ee56 Dehardcode 54 2016-02-27 16:44:22 +01:00
twinaphex 5e4e30abe9 Change extraction_directory to cache_directory 2016-02-27 03:22:32 +01:00
twinaphex 12d6d56199 (Zarch) Reimplement gamepad navigation 2016-02-27 02:51:46 +01:00
radius 16fb6d5f07 remove stray printf 2016-02-26 20:49:59 -05:00
radius 1bac8c8649 Use the same font for the underlying glui 2016-02-26 20:49:58 -05:00
twinaphex 75200b8e11 (Zarch) Cleanups 2016-02-26 23:31:34 +01:00
twinaphex 7ef56a2e46 Cleanup 2016-02-26 23:10:01 +01:00
twinaphex ae5640fa25 (Zarch) Cleanups 2016-02-26 22:57:04 +01:00
twinaphex f34288781e Remove unneeded macro 2016-02-26 22:54:43 +01:00
twinaphex 58073b937f (Zarch) Variables should not be all-caps 2016-02-26 22:53:17 +01:00
twinaphex 7beff1adaa (D3D) Silence warnings 2016-02-26 22:46:01 +01:00
twinaphex c14e281544 (Win32) Buildfix 2016-02-26 22:45:30 +01:00
twinaphex 0f8f980c8f Start reimplementing Zarch joypad input 2016-02-26 22:29:10 +01:00
twinaphex 2c69bc7d79 Cleanups 2016-02-26 22:09:02 +01:00
twinaphex a82cc0d31f Remove MENU_INPUT_CTL_SET_FRAME_INPUT 2016-02-26 21:47:25 +01:00
twinaphex d443ac53ef Cleanups 2016-02-26 21:46:26 +01:00
twinaphex 13a3bfeee7 Cleanups 2016-02-26 21:43:20 +01:00
twinaphex 6aa2fbea47 Cleanups 2016-02-26 21:30:54 +01:00
twinaphex a3aba22c6e Cleanups 2016-02-26 21:29:01 +01:00
twinaphex d40af3143f Remove this - unneeded 2016-02-26 21:09:35 +01:00
twinaphex 678ec1b662 Remove unused MENU_INPUT_CTL_SCROLL_UP/SCROLL_DOWN 2016-02-26 21:07:32 +01:00
twinaphex fe60a7d813 Cleanup 2016-02-26 21:04:56 +01:00
twinaphex 4bda039f62 Cleanup menu_input_mouse_frame 2016-02-26 21:02:29 +01:00
twinaphex c83c242e3a Cleanups 2016-02-26 20:43:12 +01:00
twinaphex 02b456f3a1 Turn some variables into static local variables 2016-02-26 20:38:47 +01:00
twinaphex 59db6de385 Refactor more mouse input code for the menu 2016-02-26 20:35:56 +01:00
twinaphex 0f83f48cb4 Cleanups 2016-02-26 20:31:02 +01:00
twinaphex 4a097af3e4 Cleanups 2016-02-26 20:23:07 +01:00
twinaphex c31ef24412 Add MENU_INPUT_CTL_SET_FRAME_INPUT 2016-02-26 18:01:10 +01:00
twinaphex 583d4fd283 Cleanups 2016-02-26 17:55:47 +01:00
twinaphex faee785aaa Add more to menu_ctx_iterate_t 2016-02-26 17:40:24 +01:00
twinaphex ac3cb48302 (VG) Style nits 2016-02-26 17:36:39 +01:00
twinaphex d9b86c4f6b Remove stub xshm video driver for now 2016-02-26 17:29:35 +01:00
twinaphex 2746bf0cb1 (xvideo.c) Cleanups 2016-02-26 17:26:26 +01:00
twinaphex 94b8e8820e (xvideo.c) Style nits 2016-02-26 17:24:36 +01:00
twinaphex eaf08ad88c (Zahnrad) Take out mouse code 2016-02-26 15:57:22 +01:00
twinaphex 55abe2e38f 80-char width limit nits 2016-02-26 15:41:28 +01:00
Twinaphex ea2094126b (iOS) Buildfix(iOS) Buildfix(iOS) Buildfix(iOS) Buildfix(iOS) Buildfix(iOS) Buildfix(iOS) Buildfix(iOS) Buildfix(iOS) Buildfix 2016-02-26 14:25:57 +01:00
twinaphex 2de97c9176 Cleanup 2016-02-26 13:54:04 +01:00
Twinaphex 77373e9ba4 Remove unused variable 2016-02-26 13:46:47 +01:00
Twinaphex 7e641b7274 (OSX) Silence deprecation warnings 2016-02-26 13:44:45 +01:00
Twinaphex 33356f2df6 (OSX) Buildfix 2016-02-26 13:40:29 +01:00
Twinaphex 353072c9cd (OSX) Fix build now for real 2016-02-26 13:39:32 +01:00
twinaphex 4dfed7e930 Cast to NSOpenGLContext * 2016-02-26 13:39:01 +01:00
twinaphex dcefb740f2 Create glcontext_get_ptr 2016-02-26 13:36:12 +01:00
twinaphex 93e17b46bd Cleanups 2016-02-26 13:32:56 +01:00
twinaphex 61a4d47feb (ui_win32.c) 80-char width limit 2016-02-26 13:31:34 +01:00
twinaphex 4939a9ea22 (zahnrad) Rename alloc to zr_alloc 2016-02-26 13:15:07 +01:00
twinaphex 0a74bcc080 Get rid of texture uniform 2016-02-26 12:37:20 +01:00
twinaphex b4425d4524 Look in assets directory 'zahnrad' instead of 'wimp' 2016-02-26 12:30:39 +01:00
twinaphex ce51396fb4 (zahnrad) Correct name 2016-02-26 12:21:42 +01:00
radius e303b62635 re-enable antialiasing 2016-02-25 23:11:06 -05:00
radius e9682c1122 refactor zr menu, using zrmenu for our functions. Context reset should work fine now 2016-02-25 23:08:33 -05:00
twinaphex 46c48fa4b8 (CXX_BUILD) FIxes 2016-02-26 00:49:23 +01:00
twinaphex a8b834f2c8 (C89_BUILD) Fix 2016-02-26 00:47:53 +01:00
twinaphex ee8c5bfa98 (Zahnrad) Don't call glViewport directly 2016-02-26 00:44:09 +01:00
twinaphex ac084a5175 Change typo 2016-02-25 23:40:27 +01:00
twinaphex b171be802e (Zahrand) Cleanups 2016-02-25 23:16:36 +01:00
twinaphex fa7ea1d20a (Zahrand) Cleanups 2016-02-25 23:15:28 +01:00
twinaphex 198ecd263d (Zahrand) Don't need this I think 2016-02-25 22:54:30 +01:00
twinaphex 1516ee8e76 Silence this warning too for C89 - not correct but whatever -
never used
2016-02-25 22:36:08 +01:00
twinaphex 4b9143430c Add C89 workaround 2016-02-25 22:26:48 +01:00
twinaphex 4c7ae72c62 Some C89_BUILD fixes 2016-02-25 22:16:25 +01:00
twinaphex 7da6797112 CXX_BUILD - More buildfixes 2016-02-25 22:13:12 +01:00
twinaphex 68cd176d63 Some CXX_BUILD fixes 2016-02-25 22:11:02 +01:00
twinaphex eb9971703b (Zahrand) Cleanups 2016-02-25 22:08:02 +01:00
twinaphex 5ca0085e22 (Zahrand) Dehardcode some OpenGL code 2016-02-25 22:04:36 +01:00
twinaphex d44aa37be0 Some renames 2016-02-25 21:55:42 +01:00
twinaphex 4e5d66547a (Zahrand) Cleanups 2016-02-25 21:47:32 +01:00
twinaphex 816539f9df (Zahrand) Rename wimp.c to zahrand 2016-02-25 21:29:38 +01:00
twinaphex c6dc2b6c3e (WIMP) Rebase WIMP driver 2016-02-25 21:09:44 +01:00
Twinaphex 42600fa74b Merge pull request #2726 from fr500/master
New driver implementation for the WIMP UI
2016-02-25 20:57:31 +01:00
twinaphex 7d61fbb780 Respect 80-char width limit 2016-02-25 20:53:52 +01:00
twinaphex f15effe68b (menu_displaylist.c) 80-char width limit 2016-02-25 20:32:46 +01:00
twinaphex 63c4b7c772 Cleanups 2016-02-25 19:52:40 +01:00
twinaphex bc6e9ee3bf Cleanups 2016-02-25 19:50:45 +01:00
twinaphex 0eb3feff64 Cleanups 2016-02-25 19:48:07 +01:00
twinaphex c3f3207b0d Cleanups 2016-02-25 19:33:46 +01:00
twinaphex 05f2a2d18c Communicate better that these are enums 2016-02-25 19:30:14 +01:00
twinaphex 255ee8766f Communicate better that this is an enum 2016-02-25 19:27:06 +01:00
twinaphex a2d4d832f6 Move defines to menu_input.c 2016-02-25 19:23:28 +01:00
twinaphex 37d895d77b Create MENU_INPUT_CTL_BIND_SET_MIN_MAX 2016-02-25 19:01:51 +01:00
twinaphex 00a958edc2 Cleanups 2016-02-25 18:37:43 +01:00
twinaphex b870aaf2fa Create MENU_INPUT_CTL_START_LINE 2016-02-25 18:36:29 +01:00
twinaphex 27b5617cd9 Create MENU_INPUT_CTL_BIND_ITERATE 2016-02-25 17:55:45 +01:00
twinaphex a9fc111ea2 Refactor code 2016-02-25 17:41:33 +01:00
twinaphex 22f6d1ce1d Cleanups 2016-02-25 17:32:12 +01:00
twinaphex 60c551fe75 Cleanups 2016-02-25 17:26:55 +01:00
twinaphex b1a3d5bb25 Create MENU_INPUT_CTL_CHECK_INSIDE_HITBOX 2016-02-25 17:11:00 +01:00
twinaphex 6b0e0adf27 Rename IDEAL_DT 2016-02-25 16:06:23 +01:00
twinaphex 1d84894e09 Create MENU_ANIMATION_CTL_IDEAL_DELTA_TIME_GET 2016-02-25 16:05:30 +01:00
twinaphex c32e828c6f Cleanups 2016-02-25 15:47:03 +01:00
twinaphex afcb3f1e5d Create MENU_ANIMATION_CTL_PUSH 2016-02-25 15:44:30 +01:00
twinaphex 835e5e751b Move variables to menu_animation_ctl as static local variables 2016-02-25 15:25:16 +01:00
twinaphex b5f4332e74 Create MENU_ANIMATION_CTL_TICKER 2016-02-25 15:19:33 +01:00
twinaphex 5dbca80ed8 Add MENU_ANIMATION_CTL_KILL_BY_SUBJECT 2016-02-25 15:05:18 +01:00
twinaphex e424d432a2 Cleanups 2016-02-25 13:30:02 +01:00
twinaphex f6f306903c Cleanup 2016-02-25 13:26:51 +01:00
twinaphex bd0347f1ae Create MENU_ANIMATION_CTL_KILL_BY_TAG 2016-02-25 13:23:39 +01:00
radius ee6a0e40b0 set rounding to zero, elements look better like this 2016-02-24 22:58:11 -05:00
radius 1e74f02b94 add control window from the demo 2016-02-24 22:36:15 -05:00
radius 777be51eb6 add a few more elements 2016-02-24 21:55:34 -05:00
twinaphex 433155c95f Move UTF8 helper functions to encoding_utf.c (libretro-common) -
hopefully did not introduce any regressions
2016-02-25 00:57:46 +01:00
twinaphex c834b7825e Have to use PATH_MAX_LENGTH in menu_animation_ticker_str 2016-02-25 00:42:40 +01:00
twinaphex 090a68f9cf Take out header include 2016-02-25 00:13:55 +01:00
Alcaro 3c9b39f4bd Fix cutoff text, we don't need that. 2016-02-24 23:52:28 +01:00
Alcaro 6c69cdb93c Fix missing define. 2016-02-24 23:34:08 +01:00
twinaphex 2c18bf12f5 Add DISPLAYLIST_PUSH_ONTO_STACK 2016-02-24 23:31:51 +01:00
Alcaro 353795b25e Wipe debug code. 2016-02-24 23:29:12 +01:00
Alcaro 9b35965ce1 Wipe test code again. 2016-02-24 23:29:12 +01:00
Alcaro 75b91e3ddc Rewrite that function to work properly. 2016-02-24 23:29:12 +01:00
Alcaro c0cd5256a2 Stupid signed chars... 2016-02-24 23:29:12 +01:00
Alcaro 9587efde67 Use these two functions. 2016-02-24 23:29:12 +01:00
Alcaro f8aefd0030 Add this counter function too. 2016-02-24 23:29:12 +01:00
Alcaro f14624370d Add UTF-8 string copy function. 2016-02-24 23:29:12 +01:00
twinaphex 77c583ae47 Create DISPLAYLIST_PROCESS 2016-02-24 23:19:53 +01:00
radius ba43724fec fix slider 2016-02-24 17:13:06 -05:00
twinaphex e8eaa54218 Refactor menu_displaylist_ctl 2016-02-24 23:05:54 +01:00
twinaphex 7968914453 Refactor menu_displaylist_push_list to menu_displaylist_ctl 2016-02-24 22:56:41 +01:00
radius 4c738b9645 add volume slider 2016-02-24 16:47:50 -05:00
twinaphex e8a5f6194e Create MENU_ENTRIES_CTL_CLEAR 2016-02-24 22:45:21 +01:00
twinaphex 1c06843811 Remove dead function prototype 2016-02-24 22:42:07 +01:00
twinaphex 1dcd6856db Remove dead code 2016-02-24 22:40:44 +01:00
radius 8a6c2568de remove glui mouse support 2016-02-24 16:16:12 -05:00
radius 4158248b77 add boolean wrapper thanks to Alcaro 2016-02-24 16:08:36 -05:00
twinaphex 2f98073fc1 Add setting 'Menu Throttle Framerate' to 'Frame Throttle' 2016-02-24 21:24:32 +01:00
Alcaro 3f52b9e246 Let's not rely on integer underflows canceling each other... 2016-02-24 20:26:28 +01:00
twinaphex b398a0c185 Fix build with UTF-8 2016-02-24 19:25:54 +01:00
Alcaro a5a666071b Fix tpyo. 2016-02-24 19:23:44 +01:00
twinaphex 51db7e695e Add preliminary russian translation - can't get it to compile yet 2016-02-24 19:19:24 +01:00
Alcaro cb9976a125 Wipe debug code. 2016-02-24 18:56:29 +01:00
twinaphex 60a303e144 Edit README.md 2016-02-24 18:52:44 +01:00
Alcaro d98c7a1c34 (RGUI) Fix string alignment under UTF8. 2016-02-24 18:50:21 +01:00
Alcaro 67e1c82575 Update this pseudolocalization thingy. 2016-02-24 18:24:50 +01:00
twinaphex eb62d5f4a4 Add HAVE_ZLIB ifdef to content.c 2016-02-23 22:05:32 +01:00
twinaphex c4b80e0e44 Fix CXX_BUILD - doesn't like a variable being named 'template' 2016-02-23 17:11:30 +01:00
Alcaro 949cbcac07 Always poll input even if core doesn't have any input. 2016-02-23 16:28:32 +01:00
Alcaro eeccb63c4e Avoid build fails due to missing submodule. 2016-02-23 16:26:36 +01:00
Alcaro 7a6463a300 Add escape hatch if rarch (or the core) is in an infinite loop. 2016-02-23 16:11:39 +01:00
Alcaro 04ac09f579 One thing less to worry about when copypasting this, less risk of repeating 2d5e10e840. 2016-02-23 16:08:57 +01:00
Alcaro f8452e23c8 Don't use uninitialized variables. 2016-02-23 16:06:37 +01:00
Twinaphex c7b5d41151 Merge pull request #2751 from FIX94/master
GX resolution and custom viewport changes
2016-02-23 09:14:09 +01:00
FIX94 1ed54b8683 Merge branch 'master' of https://github.com/FIX94/RetroArch 2016-02-23 03:40:40 +01:00
FIX94 4f48e61b98 (GX) allow all resolutions to use aspect ratio settings and allow custom viewport x and y to use as much of the screen as possible while making sure to keep the system screen position in mind 2016-02-23 03:40:14 +01:00
twinaphex 6f6ba98576 (DRM) Add more HAVE_EGL ifdefs 2016-02-23 01:34:28 +01:00
twinaphex ffd94d3ac0 We cannot rely on vulkan_intel.h being available, so just
include its contents inside vulkan_common.h
2016-02-23 01:24:15 +01:00
twinaphex 32353b10bb Take out async job code from imageviewer core 2016-02-22 18:18:12 +01:00
twinaphex 8aa429bd67 Refactor imageviewer code 2016-02-22 16:55:02 +01:00
twinaphex 6429bb6a40 (X context) rename g_api to x_api 2016-02-22 13:29:32 +01:00
twinaphex e688770e64 (SDL GL Ctx) Rename g_api to sdl_api 2016-02-22 13:26:26 +01:00
twinaphex f8a2014b7e (DRM) Rename g_drm to drm 2016-02-22 13:25:48 +01:00
twinaphex aa4015837f (DRM) DRM context driver should compile now without OpenGL 2016-02-22 13:04:34 +01:00
twinaphex d537b6ee9f Rename some files 2016-02-22 13:01:16 +01:00
twinaphex 1a5d2ce85c Start divorcing DRM context from EGL 2016-02-22 12:59:13 +01:00
twinaphex 85804838ad (DRM) More refactors 2016-02-22 12:56:16 +01:00
twinaphex 09fba6016b (DRM) Cleanups 2016-02-22 12:50:45 +01:00
twinaphex 034f1769c9 (DRM) Cleanups 2016-02-22 12:43:18 +01:00
twinaphex cc622b6905 Start getting rid of 'egl' namespace conventions in drm_egl context
driver
2016-02-22 12:37:38 +01:00
twinaphex a2a4a365a3 We're able now to create a Vulkan build without any GL support
whatsoever
2016-02-22 12:33:42 +01:00
twinaphex ef1feca097 Some C89_BUILD fixes 2016-02-22 12:25:41 +01:00
twinaphex 47b34b38d2 (DRM) More HAVE_EGL ifdefs 2016-02-22 12:10:23 +01:00
twinaphex 7da0739b61 Get rid of global g_egl_api now too 2016-02-22 11:54:55 +01:00
twinaphex 22a677b3a8 Don't use egl_common's 'api' variable anymore 2016-02-22 11:54:19 +01:00
twinaphex fd7a62f5ca (Wayland) Context driver doesn't use egl api anymore 2016-02-22 11:48:17 +01:00
twinaphex a8a871bd4e (DRM) Create drm_api 2016-02-22 11:47:18 +01:00
twinaphex e4935d490c (DRM) Uses its own sighandler and atomic quit variable 2016-02-22 11:46:08 +01:00
twinaphex 3bebc2284f DRM gets its own interval variable inside data struct 2016-02-22 11:42:36 +01:00
twinaphex b421bdf687 (drm_egl_ctx.c) More ifdefs 2016-02-22 11:37:37 +01:00
twinaphex eceadcde2b (drm_egl_ctx.c) Add HAVE_EGL/HAVE_OPENGL ifdefs 2016-02-21 23:49:50 +01:00
twinaphex cedc6506b5 Show display metric height label 2016-02-21 22:09:38 +01:00
Twinaphex 902026ec86 Merge pull request #2747 from Themaister/master
Wayland: Add metrics support.
2016-02-21 22:07:41 +01:00
Hans-Kristian Arntzen c4104ae37c Wayland: Add metrics support. 2016-02-21 22:04:56 +01:00
Twinaphex 44688b1424 Merge pull request #2746 from Themaister/master
Wayland: Add HiDPI awareness.
2016-02-21 21:46:23 +01:00
Hans-Kristian Arntzen 52a515f0d3 Wayland: Add HiDPI awareness. 2016-02-21 21:35:06 +01:00
Twinaphex 765e229c35 Merge pull request #2745 from Themaister/master
Vulkan: Attempt workaround for Ivy Bridge.
2016-02-21 20:16:37 +01:00
Hans-Kristian Arntzen 8cab56e806 Vulkan: Attempt workaround for Ivy Bridge.
Reset command buffer instead of pool.
2016-02-21 20:13:22 +01:00
Twinaphex cfe06ce730 Merge pull request #2744 from Themaister/master
Fix silly bug in libretro-test-vulkan.
2016-02-21 20:02:12 +01:00
radius 66a8e08252 remove saving remapping, use the automated method instead 2016-02-21 13:55:04 -05:00
Hans-Kristian Arntzen 7acd82e189 Fix silly bug in libretro-test-vulkan.
Forgot to set sType correctly, fixes nVidia.
2016-02-21 19:53:36 +01:00
twinaphex 90850799b7 Remove saving of input_remapping_path 2016-02-21 19:10:33 +01:00
twinaphex d5429f00e1 silence warning 2016-02-21 19:05:58 +01:00
twinaphex e93e75321f Revert "don't save remapping path and don't load the library at startup"
This reverts commit 1638df4ae7.
2016-02-21 19:05:01 +01:00
radius 1638df4ae7 don't save remapping path and don't load the library at startup 2016-02-21 12:51:49 -05:00
radius 7cc72520f7 add message to save current config 2016-02-21 12:37:11 -05:00
radius 5f3b27417b fix save new config 2016-02-21 12:30:22 -05:00
Twinaphex d0e1802436 Merge pull request #2743 from Themaister/master
Vulkan: Add workaround for broken VkImageView swizzling.
2016-02-21 13:56:14 +01:00
Hans-Kristian Arntzen cece4e5ae2 Vulkan: Add workaround for broken VkImageView swizzling.
Certain early drivers fail to apply swizzle mask.
2016-02-21 13:52:30 +01:00
Twinaphex 1b4318d89b Merge pull request #2742 from Themaister/master
Vulkan: Set alphaBlendOp correctly.
2016-02-21 13:43:18 +01:00
Hans-Kristian Arntzen f09338b1b8 Set alphaBlendOp correctly. 2016-02-21 13:40:19 +01:00
Twinaphex 7bb5b749a0 Merge pull request #2741 from Themaister/master
Vulkan: Various improvements
2016-02-21 13:18:00 +01:00
Hans-Kristian Arntzen b87106e61a Vulkan: Implement menu display clear color. 2016-02-21 13:12:51 +01:00
Twinaphex 0bbac8da97 Silence unused variable warning 2016-02-21 13:10:49 +01:00
Hans-Kristian Arntzen 6e7f1371dd Vulkan: Fix scenario where we limit the number of frames too much. 2016-02-21 13:03:26 +01:00
Hans-Kristian Arntzen 9e060bf088 Fix STATIC texture upload. 2016-02-21 13:01:53 +01:00
Hans-Kristian Arntzen 0dddd671f8 Vulkan: Use more approriate barrier 2016-02-21 12:59:11 +01:00
Hans-Kristian Arntzen 4259ea3d06 Merge branch 'master' of git://github.com/libretro/RetroArch 2016-02-21 12:45:26 +01:00
Hans-Kristian Arntzen 36eb07e067 Vulkan: Use copy paths if needed. 2016-02-21 12:33:16 +01:00
twinaphex 6512e5ff6e Move this check - this should serve as a framerate limiter for the
menu
2016-02-21 12:11:08 +01:00
twinaphex 254e0bbd90 vulkan_common.h - style nits 2016-02-21 10:11:35 +01:00
twinaphex f462954609 Style nits pt. 2 2016-02-21 10:09:41 +01:00
twinaphex 8ce2665383 Style nits 2016-02-21 10:08:36 +01:00
twinaphex b57dbd5028 Style nits 2016-02-21 09:57:24 +01:00
twinaphex a5d39ba38d Style nits 2016-02-21 09:54:53 +01:00
twinaphex 5beb71711b zarch.c - Respect 80-char width limit 2016-02-21 09:51:16 +01:00
twinaphex 5f50034514 Refactor gfx_ctx_x_bind_api 2016-02-20 20:47:06 +01:00
twinaphex fbc7eaf287 (vulkan.c) Style nits 2016-02-20 20:29:52 +01:00
twinaphex 1426cf7fb2 (vulkan.c) Style nits 2016-02-20 20:15:46 +01:00
twinaphex 25c1c6202f Silence warning 2016-02-20 19:46:35 +01:00
twinaphex 9aeceadee6 Style nits for header 2016-02-20 16:37:59 +01:00
twinaphex 4bb3f35a02 80-char width limit style nits 2016-02-20 16:36:54 +01:00
Twinaphex f41ee75a82 Merge pull request #2740 from Themaister/master
Vulkan: Small tweaks
2016-02-20 15:30:17 +01:00
Hans-Kristian Arntzen 8550c16f86 Always try to use cached memory if we can for linear textures.
Should improve cores which use SOFTWARE_FRAMEBUFFER.
2016-02-20 15:17:25 +01:00
Hans-Kristian Arntzen b61c05e10f Log the number of swapchain images we get. 2016-02-20 14:24:36 +01:00
Hans-Kristian Arntzen 111c37832a Make sure we get a queue which also supports compute.
Graphics + Compute queue must be supported.
2016-02-20 14:20:17 +01:00
Twinaphex 74f1b3aa34 Merge pull request #2739 from Themaister/master
Fix some issues with Vulkan readback.
2016-02-20 14:07:53 +01:00
Hans-Kristian Arntzen fa449646e9 Bug fixes for Vulkan readback.
We were getting weird and inconsistent viewport sizes back.
2016-02-20 14:04:33 +01:00
Hans-Kristian Arntzen bcac4a204f Vulkan: Set initial viewport after keep_aspect is correct.
Fixes fullscreen recording.
2016-02-20 13:46:20 +01:00
Twinaphex 720a519987 Merge pull request #2738 from Themaister/master
Try to use cached memory for readbacks.
2016-02-20 12:07:41 +01:00
Hans-Kristian Arntzen 5542427246 Try to use cached memory for readbacks.
Speeds up nVidia readbacks by order of magnitude.
2016-02-20 12:04:53 +01:00
Twinaphex 452898c0f8 Merge pull request #2736 from Themaister/master
Use vkCmdCopyImage for readbacks.
2016-02-20 11:49:36 +01:00
Hans-Kristian Arntzen 459c55989a Use vkCmdCopyImage for readbacks.
Blits often imply render targets.
2016-02-20 11:21:39 +01:00
Twinaphex 9108ee773f Merge pull request #2735 from Themaister/master
Before unloading game, make sure we stop the threaded audio driver.
2016-02-20 10:33:55 +01:00
Hans-Kristian Arntzen 9c21c9ea1f Before unloading game, make sure we stop the threaded audio driver. 2016-02-20 10:28:39 +01:00
twinaphex dbe6bc5cfb Move wayland context driver up the context driver foodchain,
should hopefully have Gnome Wayland default to it instead of the
slower X11/XCB context
2016-02-20 09:23:17 +01:00
twinaphex 481fa56f2c Move some code 2016-02-20 06:36:32 +01:00
twinaphex fde9f1ce2c Start making GL optional (previously we assumed pretty much - hardware
context = GL) Still have the issue where the menu driver auto-switches
back to rgui instead of glui/xmb
2016-02-20 06:16:34 +01:00
twinaphex 9bc889b908 Add improved preprocessor conditionals for x context 2016-02-20 05:50:37 +01:00
twinaphex 11c1535fe3 Rename glx context driver to x 2016-02-20 05:48:45 +01:00
Twinaphex b1c614f1ca Merge pull request #2734 from Themaister/vulkan
Vulkan: X11 backend
2016-02-20 03:33:41 +01:00
Hans-Kristian Arntzen 4540369fcb Use correct cast for WSI_XLIB. 2016-02-19 22:25:51 +01:00
Hans-Kristian Arntzen 0bcdf6ebe0 More properly enumerate GPUs.
Just pick the first one for now.
2016-02-19 21:55:11 +01:00
Hans-Kristian Arntzen 88ec0f522b Vulkan: Add Vulkan backend to GLX context.
Also fixes some snags with libretro-test-vulkan.
2016-02-19 21:37:24 +01:00
Hans-Kristian Arntzen 1b5cc1ca9c Fix some types for WSI. 2016-02-19 19:50:04 +01:00
twinaphex 4e510247f5 Cleanups 2016-02-19 15:44:03 +01:00
twinaphex d6906ee7df (xcb) Buildfix 2016-02-19 15:43:12 +01:00
twinaphex 575cd4e3be Add xcb detection 2016-02-19 15:08:23 +01:00
twinaphex 11831a8b47 move shareable vulkan initialization code to vulkan_common.c 2016-02-19 14:38:15 +01:00
twinaphex 5cb0aa51c0 Add includes to vulkan_common.h 2016-02-19 14:26:45 +01:00
twinaphex e1a1843edc Start moving code to vulkan_common.h 2016-02-19 14:23:51 +01:00
twinaphex 2d5e10e840 Fix this 2016-02-19 13:17:03 +01:00
twinaphex 140d65b994 Setup specific WSI extensions 2016-02-19 13:11:30 +01:00
twinaphex 7ec1a6836c (Vulkan WSI) Add Mir bits (we don't have Mir context driver yet
but whatever, add them all)
2016-02-19 13:06:38 +01:00
twinaphex 50efe142b9 Go through function pointers 2016-02-19 13:03:35 +01:00
twinaphex eb1fe0476d Start implementing xlib/xcb bits (for when these context drivers
get added)
2016-02-19 12:46:42 +01:00
twinaphex 14d39be698 Move code around 2016-02-19 12:30:18 +01:00
twinaphex 72fed0d871 Add VULKAN_WSI_MIR (for when we ever get around to adding Mir support) 2016-02-19 12:24:20 +01:00
twinaphex cebefa6ae1 Refactor vulkan_surface_create 2016-02-19 12:23:16 +01:00
twinaphex db074e1c1a Start implementing more WSI variants 2016-02-19 12:15:16 +01:00
twinaphex 353c421a5c Add function pointer for vkCreateAndroidSurfaceKHR 2016-02-19 12:08:34 +01:00
twinaphex 6fcd097e4c Start setting up vulkan_init_context for multiple WSI types 2016-02-19 12:04:56 +01:00
twinaphex 1c412eea5a Start adding preliminary implementation for vulkan_surface_create 2016-02-19 12:00:52 +01:00
twinaphex 96c9687a8a Create vulkan_surface_create 2016-02-19 11:55:57 +01:00
twinaphex 98990d6afc Add more WSI enum types 2016-02-19 11:50:25 +01:00
twinaphex 7205d76ab0 Cleanups 2016-02-19 11:36:46 +01:00
twinaphex c105fb22f3 Style nits 2016-02-19 11:29:15 +01:00
twinaphex a61536ffdc More refactors - create vulkan_destroy_context 2016-02-19 11:12:43 +01:00
twinaphex 6be1453d9c Create vulkan_init_context 2016-02-19 11:04:51 +01:00
twinaphex 50a605e9db Cleanups 2016-02-19 10:54:00 +01:00
twinaphex 1165d1c0b7 Create gfx_ctx_vulkan_data_t 2016-02-19 10:35:59 +01:00
twinaphex 02e3d6eba7 Only one Wayland context driver now 2016-02-19 07:58:14 +01:00
twinaphex acf4931ad1 (Testcore Vulkan) Hook up one button - makes input response work 2016-02-19 05:53:25 +01:00
Twinaphex 7e9f66ad39 Merge pull request #2733 from Themaister/vulkan
Vulkan: Workaround broken push constant support on Ivy Bridge
2016-02-19 01:32:10 +01:00
Hans-Kristian Arntzen c74c7ae053 Vulkan: Work around broken push constants on Ivy Bridge.
Use UBOs instead, should be more compatible with early drivers.
2016-02-18 18:36:49 +01:00
Hans-Kristian Arntzen a1ae86a808 Remove obsolete shaders. 2016-02-18 18:36:49 +01:00
twinaphex 0b85951abe (Wayland context) Cleanup some defines 2016-02-18 07:40:13 +01:00
twinaphex a21444fc9a (Wayland ctx) More improvements to Vulkan support 2016-02-18 07:29:20 +01:00
twinaphex f5c5c82729 Add extra conditionals for all possible usecases (HAVE_EGL/HAVE_OPENGL/HAVE_OPENGLES/etc) 2016-02-18 07:18:58 +01:00
twinaphex bd672b8b72 Add vulkan path in registry_handle_global 2016-02-18 05:31:24 +01:00
twinaphex 620fbe8976 Forgot to set this 2016-02-18 00:20:23 +01:00
twinaphex eeada0c458 Start making general-purpose Wayland context driver that could work
for both Vulkan and EGL/GL
2016-02-17 23:22:54 +01:00
twinaphex 56a14ffc3c Start adding HAVE_OPENGL/HAVE_VG ifdefs 2016-02-17 22:20:43 +01:00
twinaphex 51a94d6ac7 Remove unix_common 2016-02-17 22:09:37 +01:00
twinaphex 17e5e57bed Add unix_common 2016-02-17 08:01:30 +01:00
twinaphex a84ebda75c Replace some strcmp usage 2016-02-17 07:29:10 +01:00
twinaphex 207c87e551 Add glslang files to griffin_cpp 2016-02-17 07:23:32 +01:00
twinaphex d4daf25c2a Remove stdin stub paths 2016-02-17 07:15:51 +01:00
twinaphex b6a9f5c239 Start adding vulkan files to Griffin 2016-02-17 05:22:17 +01:00
twinaphex a539a6512b (D3D) Buildfix 2016-02-17 02:25:24 +01:00
twinaphex 263efc965b Add Vulkan string to system information 2016-02-17 02:01:51 +01:00
twinaphex d78787d70e Add feature to print_features 2016-02-17 01:55:35 +01:00
twinaphex 0058e1ba51 Remove commented out code 2016-02-17 01:25:45 +01:00
twinaphex 2e853b3f04 Another ifdef 2016-02-17 01:24:38 +01:00
twinaphex 22452f6cb2 Ifdef hw_render_context_is_vulkan 2016-02-17 01:23:55 +01:00
Twinaphex 8f73779acb Merge pull request #2729 from Themaister/vulkan
Vulkan backend for RetroArch
2016-02-16 21:24:58 +01:00
Hans-Kristian Arntzen adbf9fed16 Vulkan implementation. 2016-02-16 20:42:02 +01:00
twinaphex 0d3c30978d Add log 2016-02-16 05:42:45 +01:00
twinaphex 46cc21029b Add CONTENT_CT_LOAD 2016-02-16 05:34:33 +01:00
twinaphex bebf9abfb2 Fix RARCH_CTL_UNSET_STDIN_CLAIMED 2016-02-16 05:19:04 +01:00
twinaphex ee24cfce31 Roll this back 2016-02-16 05:18:39 +01:00
twinaphex 9097727452 Revert "Fix RARCH_CTL_UNSET_STDIN_CLAIMED"
This reverts commit 25787c2ce6.
2016-02-16 05:16:44 +01:00
twinaphex 25787c2ce6 Fix RARCH_CTL_UNSET_STDIN_CLAIMED 2016-02-16 05:09:57 +01:00
radius 8f41174fca remove btn/axis identifier when no descriptor was available 2016-02-15 22:54:28 -05:00
twinaphex 7ef5bd5534 Cleanups 2016-02-16 04:54:26 +01:00
twinaphex a3ce07b5af Add preliminary backport of stdin ROM loading - doesn't work
for me yet
2016-02-16 04:52:36 +01:00
radius e97de06f24 add a fallback for cases when an autoconf is present but it doesn't have descriptors 2016-02-15 22:48:35 -05:00
radius 17f616e3dc use descriptors in core input remapping 2016-02-15 22:07:50 -05:00
twinaphex d14f9e6f08 Cleanup 2016-02-15 23:50:46 +01:00
twinaphex f71611251f Cleanups 2016-02-15 23:49:23 +01:00
twinaphex 620dac1abd Make some functions static 2016-02-15 21:51:30 +01:00
twinaphex f8b866c8c1 Combine file_ops.c and content.c 2016-02-15 21:49:29 +01:00
twinaphex d4f59c2a0e Rename more functions 2016-02-15 21:43:01 +01:00
twinaphex 0b8efb7736 Rename some functions 2016-02-15 21:40:54 +01:00
twinaphex 4aa36501fb Call RARCH_CTL_VERIFY_STDIN_PATHS 2016-02-15 21:30:11 +01:00
twinaphex d3a9b04223 Add back stdin features - pt. 1 2016-02-15 21:27:14 +01:00
twinaphex d7ebb49fd0 (ffmpeg) Style nits 2016-02-15 07:44:45 +01:00
twinaphex bdbd3098dd Style nits 2016-02-15 07:16:09 +01:00
twinaphex b2fa47ef43 Cleanups 2016-02-15 06:53:22 +01:00
twinaphex cd9f567fc2 Create RARCH_AUDIO_CTL_RESAMPLER_* functions 2016-02-15 06:43:32 +01:00
Andrés 1f951656a3 Update command_event.c 2016-02-14 23:23:29 -05:00
radius 7f1f345066 change the windows to the other side 2016-02-14 22:48:21 -05:00
twinaphex d4846b9021 Refactor content_load 2016-02-15 04:04:14 +01:00
twinaphex b4b50d1972 Create content_push_to_history_playlist 2016-02-15 03:56:10 +01:00
radius 97f2a2dfb1 add a settings 2016-02-14 21:44:03 -05:00
radius f00f09a549 fix input click 2016-02-14 21:12:06 -05:00
radius dfbe4cc049 positioning seems ok now, click is not 2016-02-14 21:01:27 -05:00
radius e189f35caf try to implement mouse 2016-02-14 20:42:45 -05:00
radius 96f1cb4175 try to implement mouse 2016-02-14 20:16:24 -05:00
radius 80284d760f make the window half of the GLUI window for now 2016-02-14 20:04:31 -05:00
radius 9109ea3dde make the window half of the GLUI window for now 2016-02-14 19:54:24 -05:00
twinaphex f621165adf Cleanups 2016-02-15 01:50:49 +01:00
twinaphex 8d4bb1326c menu_content.c - cleanups 2016-02-15 01:39:07 +01:00
twinaphex 300aac33cf Rename rarch_main_init_wrap 2016-02-15 01:34:15 +01:00
twinaphex a10fae4e8b Move main_load_content to content.c 2016-02-15 01:22:28 +01:00
radius a236c559f0 pass viewport size 2016-02-14 18:32:36 -05:00
twinaphex 0784608604 Buildfix 2016-02-14 22:23:30 +01:00
twinaphex 954ac39b91 Create SHADER_CTL_GET_PREV_TEXTURES 2016-02-14 22:22:40 +01:00
twinaphex 5a2816c6da Remove unused functions
t# Please enter the commit message for your changes. Lines starting
2016-02-14 22:18:46 +01:00
radius 4fbb08210c add some comments 2016-02-14 16:17:34 -05:00
twinaphex e790b503d9 Add SHADER_CTL_GET_IDENT 2016-02-14 22:17:00 +01:00
twinaphex debb5dd0ce Add SHADER_CTL_GET_CURRENT_SHADER 2016-02-14 22:13:21 +01:00
radius e5feaacf2c fix indentation a bit 2016-02-14 15:56:54 -05:00
twinaphex 38034abce6 Add SHADER_CTL_DIRECT_GET_CURRENT_SHADER 2016-02-14 21:55:19 +01:00
radius 0cbdd4f3a6 fix indentation a bit 2016-02-14 15:45:19 -05:00
twinaphex 46b963619a Create SHADER_CTL_WRAP_TYPE 2016-02-14 21:41:16 +01:00
radius 172cdc1f49 remove more unused code and deinit properly 2016-02-14 15:39:54 -05:00
radius 3376799768 remove more unused code 2016-02-14 15:35:19 -05:00
radius 031fc859ce remove init and zdraw functions 2016-02-14 15:33:24 -05:00
radius dbfc9ff370 remove init and zdraw functions 2016-02-14 15:30:48 -05:00
radius 76dc51faeb re-add POC implementation 2016-02-14 14:33:20 -05:00
radius 50929c9809 add gui toolkit 2016-02-14 14:33:17 -05:00
radius 1e31f06200 clone glui 2016-02-14 14:33:13 -05:00
twinaphex bd74390cde Add SHADER_CTL_USE 2016-02-14 20:01:39 +01:00
twinaphex b4dcbb235f Add SHADER_CTL_FILTER_TYPE 2016-02-14 19:51:32 +01:00
twinaphex 37c2b47915 Add SHADER_CTL_SET_MVP 2016-02-14 19:43:47 +01:00
twinaphex 02ec7830d9 Create SHADER_CTL_INFO 2016-02-14 19:30:48 +01:00
twinaphex cdd6684bb9 Create SHADER_CTL_SCALE 2016-02-14 19:21:54 +01:00
twinaphex 47cf62cdbd Header cleanups 2016-02-14 19:01:37 +01:00
twinaphex 6c1b96f50d Add SHADER_CTL_SET_COORDS 2016-02-14 18:59:42 +01:00
twinaphex 20441299e1 Add SHADER_CTL_MIPMAP_INPUT 2016-02-14 18:48:17 +01:00
twinaphex fab6903522 Create SHADER_CTL_INIT 2016-02-14 18:41:45 +01:00
twinaphex 8c867394a0 Cleanups 2016-02-14 18:23:47 +01:00
twinaphex 678cabc48c Add SHADER_CTL_DEINIT 2016-02-14 18:22:38 +01:00
twinaphex 7c4b372208 Add SHADER_CTL_GET_FEEDBACK_PASS 2016-02-14 18:19:48 +01:00
twinaphex fe3c3f5203 Create SHADER_CTL_INIT_FIRST 2016-02-14 18:17:43 +01:00
twinaphex f906e828ba Add SHADER_CTL_SET_PARAMS 2016-02-14 18:14:51 +01:00
twinaphex 8b714895a8 Create video_shader_driver_ctl 2016-02-14 18:12:42 +01:00
twinaphex f9824dd53e Simplify video_shader_driver_set_params 2016-02-14 18:09:12 +01:00
twinaphex bb0b6a6b68 Style nits 2016-02-14 17:44:00 +01:00
twinaphex 3f265360db Style nits 2016-02-14 17:40:20 +01:00
twinaphex 6957f57111 Cleanups 2016-02-14 17:29:03 +01:00
twinaphex 349892debf Cleanup 2016-02-14 17:27:14 +01:00
twinaphex 35ea059f82 Style nits - 80-char width limit 2016-02-14 17:22:01 +01:00
twinaphex 5e1f289cd4 80-char width limit, style nits 2016-02-14 17:02:55 +01:00
twinaphex 57c4db4338 Style nits 2016-02-14 16:59:21 +01:00
twinaphex cbf84b8d6e Style nits 2016-02-14 16:39:27 +01:00
twinaphex 64e891124c (ps3_ctx.c) Cleanups 2016-02-14 16:36:06 +01:00
twinaphex b0995e6eee (GLX) 80-char width limit style nits 2016-02-14 16:34:31 +01:00
twinaphex e842ebbfc4 80-char width limit style nits 2016-02-14 16:31:39 +01:00
twinaphex 602c40c228 (bbqnx) Style nits 2016-02-14 16:29:58 +01:00
twinaphex 5b581e70ba 80-char width limit style nits 2016-02-14 16:27:29 +01:00
twinaphex c2d7b330aa vg.c - buildfix 2016-02-14 16:15:01 +01:00
twinaphex 89f0c4211c Create menu_input_frame_build 2016-02-14 07:40:09 +01:00
twinaphex 76f7114b47 Remove duplicate prototype 2016-02-14 05:44:10 +01:00
twinaphex f1a572822b Create RARCH_DISPLAY_CTL_VIEWPORT_INFO 2016-02-14 05:42:27 +01:00
twinaphex d078682a3c Add RARCH_DISPLAY_CTL_GET_CURRENT_SOFTWARE_FRAMEBUFFER 2016-02-14 05:31:33 +01:00
twinaphex 4fcb1469cc Cleanups 2016-02-14 05:26:17 +01:00
twinaphex ead20f9ba5 Action OK toggles boolean setting now too 2016-02-14 04:33:42 +01:00
twinaphex 4941cd7dbd gl_ff_vertex - avoid glLoadIdentity 2016-02-14 03:47:33 +01:00
twinaphex 9f26e3bc69 Move static local variables to gfx_ctx_ctl - and other cleanups 2016-02-14 02:30:24 +01:00
twinaphex 68969d1363 Add GFX_CTL_GET_VIDEO_SIZE 2016-02-14 02:26:20 +01:00
twinaphex bcaf08ad2d Add GFX_CTL_SET_RESIZE 2016-02-14 02:15:43 +01:00
twinaphex 5516ff05b5 Create GFX_CTL_SET_VIDEO_MODE 2016-02-14 02:12:18 +01:00
twinaphex 637ee33ab6 Add GFX_CTL_IDENT_GET 2016-02-14 02:05:20 +01:00
twinaphex 6413449944 (Android/EGL Images) Buildfixes 2016-02-14 02:00:14 +01:00
twinaphex 1d7fdc64ba (D3D) Buildfix 2016-02-13 23:59:45 +01:00
twinaphex 154f85c6fa Add GFX_CTL_SUPPRESS_SCREENSAVER 2016-02-13 23:39:12 +01:00
twinaphex f6afe72a1e Add GFX_CTL_IMAGE_BUFFER_WRITE 2016-02-13 23:35:47 +01:00
twinaphex 0a9787ec49 Create GFX_CTL_INPUT_DRIVER 2016-02-13 23:26:33 +01:00
twinaphex 098fc0a860 Cleanups 2016-02-13 23:20:04 +01:00
twinaphex 82dcd2cd94 Cleanups 2016-02-13 23:17:09 +01:00
twinaphex 75d73ab658 (D3D) Buildfix 2016-02-13 23:12:49 +01:00
Twinaphex 3a924231a6 (OSX) Silence warnings 2016-02-13 22:31:49 +01:00
twinaphex 3140e5f980 Implement GFX_CTL_GET_METRICS 2016-02-13 22:14:33 +01:00
twinaphex ce41c5bbca Create GFX_CTL_TRANSLATE_ASPECT 2016-02-13 22:07:56 +01:00
twinaphex f94e9c532e Create GFX_CTL_PROC_ADDRESS_GET 2016-02-13 22:02:49 +01:00
twinaphex 39bc6c1e9e Add structs 2016-02-13 21:58:35 +01:00
twinaphex 254d2d1fff Avoid crash in gl_frame 2016-02-13 21:15:18 +01:00
twinaphex 9e186b4587 Create GFX_CTL_SWAP_INTERVAL 2016-02-13 20:45:45 +01:00
twinaphex 46c9ff36ef Create GFX_CTL_CHECK_WINDOW 2016-02-13 19:53:14 +01:00
twinaphex b9a5c326cd Create GFX_CTX_GET_VIDEO_OUTPUT_SIZE 2016-02-13 19:36:02 +01:00
twinaphex 46d210e977 Create GFX_CTL_FIND_NEXT_DRIVER/GFX_CTL_FIND_PREV_DRIVER 2016-02-13 19:12:08 +01:00
twinaphex 7c28ddbfc5 Add GFX_CTL_IMAGE_BUFFER_INIT 2016-02-13 18:51:16 +01:00
twinaphex ef6ef13143 Add GFX_CTL_GET_VIDEO_OUTPUT_PREV/GFX_CTL_GET_VIDEO_OUTPUT_NEXT 2016-02-13 18:47:38 +01:00
twinaphex 00e4793bed Add GFX_CTL_BIND_HW_RENDER 2016-02-13 18:36:23 +01:00
twinaphex b7c41c9fcd Remove gfx_ctx_show_mouse 2016-02-13 18:29:07 +01:00
twinaphex 8721c857e9 Add GFX_CTL_SET 2016-02-13 18:27:05 +01:00
twinaphex 6a697ef2e1 GFX_CTL_SHOW_MOUSE added 2016-02-13 17:48:25 +01:00
twinaphex 425a290ced Remove gfx_ctx_destroy 2016-02-13 16:33:38 +01:00
twinaphex ef1b0b0965 Add GFX_CTL_UPDATE_WINDOW_TITLE 2016-02-13 08:50:22 +01:00
twinaphex f079ca29e4 Add GFX_CTL_HAS_WINDOWED 2016-02-13 08:37:10 +01:00
twinaphex 752e9abd4e Add GFX_CTL_SWAP_BUFFERS 2016-02-13 08:33:33 +01:00
twinaphex 0a7c481ff0 Create GFX_CTL_FOCUS 2016-02-13 08:29:58 +01:00
twinaphex fab6c9b8c4 Add GFX_CTL_FREE 2016-02-13 08:26:54 +01:00
twinaphex 753fd86c2e Create gfx_ctx_ctl 2016-02-13 08:21:35 +01:00
twinaphex e3b2abed9e video_context_driver - cleanups 2016-02-13 08:19:56 +01:00
twinaphex 6d8ee1f8d4 Remove input_driver_data_ptr_is_same 2016-02-13 07:40:02 +01:00
twinaphex 016ee293cd Remove input_driver_grab_mouse 2016-02-13 07:38:09 +01:00
twinaphex 24bafd7ab9 Create RARCH_INPUT_CTL_GRAB_MOUSE 2016-02-13 07:36:45 +01:00
twinaphex ac31eeb360 Cleanups 2016-02-13 07:29:02 +01:00
twinaphex 3393a32547 Cleanup 2016-02-13 07:27:22 +01:00
twinaphex fcac9a8401 Cleanups 2016-02-13 07:20:55 +01:00
twinaphex 954c5a86f6 Add rarch_cmd_ctl 2016-02-13 07:19:21 +01:00
twinaphex ff9f433243 Create CHEEVOS_CTL_GET_DESCRIPTION 2016-02-13 06:30:39 +01:00
twinaphex e8e0917c9c Cleanups 2016-02-13 06:24:49 +01:00
twinaphex 3fab9843fd Create CHEEVOS_CTL_POPULATE_MENU 2016-02-13 06:15:38 +01:00
twinaphex 6c06ffbf1d Create CHEEVOS_CTL_SET_CHEATS 2016-02-13 06:13:46 +01:00
twinaphex fc6d22d47b Create CHEEVOS_CTL_UNLOAD 2016-02-13 06:11:17 +01:00
twinaphex a36382b938 Create CHEEVOS_CTL_TEST 2016-02-13 06:09:37 +01:00
twinaphex d255d6609b Create cheevos_ctl 2016-02-13 06:06:51 +01:00
twinaphex 4517d18fc0 cheevos.c - cleanups 2016-02-13 05:47:41 +01:00
twinaphex f75f0beb08 Add EVENT_CMD_EXEC 2016-02-13 05:30:57 +01:00
twinaphex 8c8ea6c167 Cleanups 2016-02-13 05:22:07 +01:00
twinaphex f1ea400456 Refactor away runloop_msg_queue_pull 2016-02-13 05:17:36 +01:00
twinaphex 45a663c100 Add header 2016-02-13 05:08:29 +01:00
twinaphex af1e698b05 Add retro_assert.h to sdl_gfx.c 2016-02-13 04:49:42 +01:00
twinaphex fed8570ec3 (Menu) Spacebar toggles 'RetroPad Start' action 2016-02-13 04:18:07 +01:00
twinaphex 0f35e0639e Fix subsystem loading 2016-02-13 04:07:46 +01:00
Twinaphex 14227c101b Merge pull request #2717 from netux79/master
(GX) Resolution Saving re-enabled. Video Corruption Fix.
2016-02-13 02:09:40 +01:00
netux79 a2851ab70b (GX) Resolution Saving's Video Corruption Fix.
Also some cleanups for the RA GX version included.
2016-02-12 16:58:59 -05:00
Alcaro 03e9577686 Fix compile fail. 2016-02-12 15:27:48 +01:00
Twinaphex 28ddefc467 Properly handle key down latch instead of hoky timer stuff 2016-02-12 08:10:35 +01:00
twinaphex 410e750d24 Style nits 2016-02-12 08:02:29 +01:00
twinaphex b9fde7bb24 (Windows) Windows likes autorepeating of keys too much - have to do
some ugly timer stuff here
2016-02-12 08:02:07 +01:00
Twinaphex cf4d31cd80 Shouldn't repeat keys now 2016-02-12 07:49:49 +01:00
twinaphex 37875fb242 Add MENU_CTL_*PENDING_ACTION 2016-02-12 07:30:34 +01:00
twinaphex 63d216ad1f (Menu controls) Keyboard 'Enter' does Retropad 'OK' and
Backspace does 'RetroPad Cancel'
2016-02-12 07:13:58 +01:00
radius 44e309e7c8 allow a debuggable release build for the buildbot 2016-02-12 01:09:33 -05:00
twinaphex 267c9f8225 Toggle after EVENT_CMD_RESET if UI companion driver is on
foreground
2016-02-12 06:56:43 +01:00
twinaphex 314d683228 Only toggle UI companion driver if UI is on foreground 2016-02-12 06:52:42 +01:00
Twinaphex 485750c8ba Remove unused variable 2016-02-12 06:50:44 +01:00
Twinaphex b4fdab79fe Pressing 'Resume Content' will now toggle the UI companion driver 2016-02-12 06:47:48 +01:00
twinaphex cfe884f0b7 Add ui_companion_driver_toggle 2016-02-12 06:43:06 +01:00
twinaphex c6220a9e66 Reimplement rarch_task_push_content_load_default 2016-02-12 04:55:18 +01:00
twinaphex e26c88b4bb (OSX) Buildfix 2016-02-12 04:40:53 +01:00
twinaphex ab3591df73 (Zarch) Remove unused variable 2016-02-12 04:39:35 +01:00
twinaphex 7d00f945b8 Implement RARCH_MENU_CTL_IS_PENDING_QUICK_MENU, RARCH_MENU_CTL_SET_PENDING_QUICK_MENU, RARCH_MENU_CTL_UNSET_PENDING_QUICK_MENU 2016-02-12 04:28:09 +01:00
twinaphex ce93da7cbf Updates to glsm 2016-02-12 01:42:33 +01:00
twinaphex 9b521d665d Update glsm 2016-02-11 22:08:45 +01:00
twinaphex 49e7347f3d Update glsm 2016-02-11 20:20:55 +01:00
twinaphex 99804e2427 Update glsm 2016-02-11 19:10:40 +01:00
twinaphex c1fbccfc06 Don't try to open IPS/UPS/BPS patches if they don't exist 2016-02-11 18:57:27 +01:00
twinaphex bd008748da Update 2016-02-11 18:44:48 +01:00
twinaphex 74547ca990 Update 2016-02-11 18:30:16 +01:00
twinaphex d09ea1bb57 Add glsm to libretro-common 2016-02-11 18:25:27 +01:00
twinaphex 36b420ec17 Revert "Remove core_info_list_num_info_files"
This reverts commit 9d96e9e452.
2016-02-11 07:20:04 +01:00
radius 8a043a9c6d Revert "Cleanups"
This reverts commit f7d47bb956.
2016-02-10 21:50:54 -05:00
twinaphex a6c2e2981d Move comment to driver.c 2016-02-11 02:29:49 +01:00
twinaphex e2e1471946 Only attempt to create default directories if they don't already
exist
2016-02-11 02:25:16 +01:00
twinaphex db77e1e6ec Refactor menu_input_ctl 2016-02-11 01:57:52 +01:00
twinaphex b881908c91 menu_content_ctl - change return value 2016-02-11 01:55:23 +01:00
twinaphex 2585145b10 Cleanups 2016-02-11 01:54:09 +01:00
twinaphex 14aac016a9 Cleanups 2016-02-11 01:52:11 +01:00
twinaphex 774ec5b7ca Some runloop_ctl changes 2016-02-11 01:47:24 +01:00
twinaphex 3a6484d0ad Change input_driver_ctl default return values 2016-02-11 01:44:39 +01:00
twinaphex c75557d204 Cleanups 2016-02-11 01:42:47 +01:00
twinaphex 712a38083b Style nits 2016-02-11 01:40:43 +01:00
twinaphex 4364ce92c3 Create RARCH_MENU_CTL_LIST_GET_ENTRY 2016-02-11 01:12:19 +01:00
twinaphex b3944a21d5 Create RARCH_MENU_CTL_LIST_GET_SIZE 2016-02-11 01:07:30 +01:00
twinaphex 48e67d5546 Create RARCH_MENU_CT_LIST_GET_SELECTION 2016-02-11 00:59:55 +01:00
twinaphex 9e69551408 Add RARCH_MENU_CTL_BIND_INIT 2016-02-11 00:53:49 +01:00
twinaphex ddf5283ecd Cleanups 2016-02-11 00:47:00 +01:00
twinaphex f17f786234 Use menu_cbs_exit in more places 2016-02-10 21:42:18 +01:00
twinaphex da590b00a8 Add action_ok_exit 2016-02-10 21:38:51 +01:00
twinaphex 71507808c9 Create RARCH_MENU_CTL_LIST_FREE 2016-02-10 21:21:19 +01:00
twinaphex 84d64c4042 Add RARCH_MENU_CTL_DRIVER_DATA_GET 2016-02-10 21:15:23 +01:00
twinaphex 46750ff3e6 Cleanups 2016-02-10 21:01:55 +01:00
twinaphex 8620b4c33b Cleanups 2016-02-10 20:58:45 +01:00
twinaphex 96a6f8ec77 Cleanup 2016-02-10 20:40:39 +01:00
twinaphex 859a04e6ee Create RARCH_MENU_CTL_LIST_PUSH 2016-02-10 20:36:13 +01:00
twinaphex c9ec688a7e Cleanups 2016-02-10 20:29:17 +01:00
twinaphex 35ff9c35b3 Respect 80-char width limit 2016-02-10 20:24:09 +01:00
twinaphex f77722a213 Add RARCH_MENU_CTL_ENVIRONMENT 2016-02-10 20:19:21 +01:00
twinaphex b5e28cda58 Create RARCH_MENU_CTL_ITERATE 2016-02-10 20:13:12 +01:00
twinaphex 9db5d45361 Change return value to menu_driver_iterate 2016-02-10 20:08:10 +01:00
twinaphex 86e8c7a9f8 Free rdb 2016-02-10 20:01:38 +01:00
twinaphex e9e6fd7b80 (Menu) Implement pending shutdown 2016-02-10 19:56:35 +01:00
twinaphex c447f6d1bd Start implementing RARCH_MENU_CTL_SET_PENDING_QUIT 2016-02-10 19:20:58 +01:00
twinaphex 2df631a36f Add menu pending quit mechanism 2016-02-10 19:19:30 +01:00
fr500 2f787604e5 Sort list like on the Load Core section 2016-02-10 12:14:19 -05:00
twinaphex dd8d01a1cb Reorder this code a bit 2016-02-10 17:41:10 +01:00
Twinaphex c9c4c77d38 Prevent yet even more crashes - sigh 2016-02-10 17:18:06 +01:00
twinaphex 21c4a07cf0 (OSX) Buildfix 2016-02-10 07:20:54 +01:00
twinaphex 9b0034ccb2 Fix resolution toggle 2016-02-10 07:19:06 +01:00
twinaphex 9bb1127727 Add more state to RARCH_MENU_CTL_DEINIT 2016-02-10 07:17:26 +01:00
twinaphex 1e05027785 Don't need these headers 2016-02-10 06:54:32 +01:00
twinaphex 55927d5957 Better way to prevent crash 2016-02-10 06:51:47 +01:00
twinaphex b077113aff Prevent crash on calling RARCH_MENU_CTL_CONTEXT_DESTROY 2016-02-10 06:49:00 +01:00
twinaphex 99d21fd701 Implement RARCH_MENU_CTL_LIST_CACHE 2016-02-10 06:43:56 +01:00
twinaphex 23e48f1821 Add RARCH_MENU_CTL_LIST_INSERT 2016-02-10 06:38:57 +01:00
twinaphex b48c900129 Add RARCH_MENU_CTL_LIST_CACHE 2016-02-10 06:15:40 +01:00
twinaphex f2952c530c Cleanups 2016-02-10 06:01:11 +01:00
Twinaphex 259ac2ddbd Merge pull request #2710 from fr500/master
save only modified values when saving remaps
2016-02-10 05:46:17 +01:00
twinaphex 1721a23d54 Style nits 2016-02-10 05:41:53 +01:00
radius 80845f1cd6 save only modified values when saving remaps 2016-02-09 23:39:16 -05:00
twinaphex 788951958c Cleanups 2016-02-10 05:25:30 +01:00
twinaphex 85e0ab9a8e Cleanups 2016-02-10 05:23:33 +01:00
twinaphex 5164b8a058 Cleanups 2016-02-10 05:21:44 +01:00
twinaphex 33f0f72adc Cleanups 2016-02-10 04:30:33 +01:00
twinaphex 0e017ea925 Cleanups 2016-02-10 04:22:59 +01:00
twinaphex 65742d250b Cleanup 2016-02-10 04:16:58 +01:00
twinaphex 0541a9866e menu_entries_ctl - change returncode 2016-02-10 04:15:18 +01:00
twinaphex bbe7221d95 driver_ctl - return default return value to true 2016-02-10 04:12:20 +01:00
twinaphex 3763c6d4c0 Cleanups 2016-02-10 03:59:17 +01:00
twinaphex bb1fa17718 Cleanups 2016-02-10 03:53:20 +01:00
twinaphex efc580c071 (menu_driver.c0 Cleanups 2016-02-10 03:52:02 +01:00
twinaphex e0a29599f4 Cleanups 2016-02-10 03:49:47 +01:00
Twinaphex 8c910b73dc return true here 2016-02-10 03:35:13 +01:00
twinaphex dd0136e2d5 Refactor this code 2016-02-10 03:29:31 +01:00
twinaphex 9af5b44453 task_queue.c - Prevent warning 2016-02-09 18:39:41 +01:00
twinaphex d9de92f48b Buildfix 2016-02-09 18:38:57 +01:00
twinaphex 5b6d310abd Rename enums 2016-02-09 18:26:27 +01:00
twinaphex 8b9c7a47e4 Move task_queue to queues/ dir 2016-02-09 18:13:47 +01:00
twinaphex 31112e937b Move task_queue.c to libretro-common 2016-02-09 18:11:11 +01:00
twinaphex 8d47203ad1 Rename some functions 2016-02-09 18:00:17 +01:00
twinaphex e4d983646d Rename push_task_progress 2016-02-09 17:56:36 +01:00
twinaphex 4210ee197b Rename tasks.c to task_queue.c 2016-02-09 17:55:15 +01:00
twinaphex 6e9bc55dd6 Rename task_ctl to task_queue_ctl 2016-02-09 17:51:51 +01:00
twinaphex 08eb091610 Rename rarch_ to retro_ 2016-02-09 17:47:04 +01:00
twinaphex 0378463130 Remove configuration.h dependencies from tasks.c 2016-02-09 17:41:30 +01:00
Alcaro a12e307039 Whitespace cleanup 2016-02-09 17:36:59 +01:00
twinaphex 76770321b4 Cleanup 2016-02-09 17:27:29 +01:00
twinaphex ce2869b4d8 Create tasks_internal and split up RA-specific task code to outside 2016-02-09 17:12:39 +01:00
twinaphex c60c9fbd86 tasks.c - cleanups 2016-02-09 17:01:07 +01:00
twinaphex f604afeede Create RARCH_MENU_CTL_FIND_DRIVER 2016-02-09 16:49:23 +01:00
twinaphex 5cd66a19b2 Create RARCH_MENU_CTL_INIT 2016-02-09 16:45:28 +01:00
twinaphex a306d3acc7 Cleanups 2016-02-09 16:13:00 +01:00
twinaphex 88c68f479a Cleanups 2016-02-09 16:11:37 +01:00
twinaphex 2026401cc0 (D3D) Buildfix 2016-02-09 16:00:34 +01:00
twinaphex c6cc006223 pass draw pointer instead of plenty of params 2016-02-09 15:55:31 +01:00
twinaphex 159ebcc8a2 (XMB) Fix icons 2016-02-09 15:21:45 +01:00
twinaphex 1c3d8c5740 Cleanups 2016-02-09 05:17:42 +01:00
twinaphex e86bd1b021 Cleanups 2016-02-09 05:11:40 +01:00
twinaphex 07632702fb Cleanups 2016-02-09 05:07:36 +01:00
twinaphex e7798ed511 Refactor datetime menu display function 2016-02-09 05:03:13 +01:00
twinaphex a0f35e56fa Cleanups 2016-02-09 04:55:45 +01:00
twinaphex da1a5ad2cc Cleanup 2016-02-09 04:54:04 +01:00
twinaphex 0bfaf26993 Cleanup 2016-02-09 04:50:59 +01:00
twinaphex 41088165f5 Get rid of menu_display_get_tex_coords 2016-02-09 04:49:47 +01:00
twinaphex 7c7b170ceb Refactor rotate Z draw calls 2016-02-09 04:43:15 +01:00
twinaphex 2b86b9dbe6 (menu_display.c) Refactor draw functions 2016-02-09 04:34:07 +01:00
twinaphex 2dba1aaef4 Add new structs 2016-02-09 04:12:33 +01:00
twinaphex 82991afb36 Remove unnecessary menu_display_msg_queue_push 2016-02-09 03:29:37 +01:00
twinaphex 9f2e61cddd Cleanup 2016-02-09 03:21:03 +01:00
twinaphex a3fd1868c1 Turn function static 2016-02-09 03:11:14 +01:00
twinaphex ad4e633e11 Add MENU_DISPLAY_CTL_CLEAR_COLOR 2016-02-09 03:04:23 +01:00
twinaphex 38a341e6b5 Use video_driver_texture_load and video_driver_texture_unload
directly from menu drivers
2016-02-09 01:45:37 +01:00
twinaphex cdf272665e Cleanups 2016-02-09 01:39:01 +01:00
twinaphex c3c408f9d6 Add MENU_DISPLAY_CTL_RESTORE_CLEAR_COLOR 2016-02-09 01:36:00 +01:00
twinaphex 690c5c2bc8 Cleanups 2016-02-09 01:32:42 +01:00
twinaphex c6e0a38906 Move more variables to menu_display_ctl 2016-02-09 01:31:02 +01:00
twinaphex dd106ee8d2 Add more menu_display_ctl actions 2016-02-09 01:24:35 +01:00
twinaphex 28f3ea355a 80-char width limit cleanups 2016-02-09 01:01:11 +01:00
twinaphex e743f4377e 80-char width limit cleanups 2016-02-09 00:59:42 +01:00
twinaphex d0e9881f46 Add MENU_DISPLAY_CTL_FONT_BIND_BLOCK 2016-02-09 00:57:10 +01:00
twinaphex 3e0d3cbd55 Create MENU_DISPLAY_CTL_INIT_FIRST_DRIVER 2016-02-09 00:49:37 +01:00
twinaphex 9f2bc8d55e Move msg_queue to menu_display_ctl 2016-02-09 00:13:33 +01:00
twinaphex 486184d1eb Create MENU_DISPLAY_CTL_INIT/MENU_DISPLAY_CTL_DEINIT 2016-02-09 00:12:09 +01:00
twinaphex 5e9f8b276b Create MENU_DISPLAY_CTL_DEINIT 2016-02-09 00:07:23 +01:00
Andrés a8b5c4f3b1 Merge pull request #2706 from fr500/master
save libretro device and analog dpad mode with remap files
2016-02-08 17:03:47 -05:00
twinaphex bd1291dd71 Simplify framebuffer code for RGUI 2016-02-08 22:42:23 +01:00
radius 67a68c0595 save libretro device and analog dpad mode with remap files 2016-02-08 16:06:54 -05:00
twinaphex 459c18f5de Attempt to make blit_line more robust 2016-02-08 19:18:40 +01:00
twinaphex 2f13fe0ece Turn some variables into static local functions 2016-02-08 19:11:44 +01:00
twinaphex 88a8ac5370 Move framebuf_data to menu_display_ctl as static local variable 2016-02-08 18:58:02 +01:00
twinaphex c1e4a852cc Turn variable into static local variable 2016-02-08 18:55:22 +01:00
twinaphex d092e20b5a Simply 'framebuffer dirty' code 2016-02-08 18:54:19 +01:00
twinaphex 72ce7e8fd2 Add ability to set audio latency to 8ms 2016-02-08 16:43:24 +01:00
Twinaphex 94d227863f Merge pull request #2705 from fr500/master
xmb && per-game options improvements
2016-02-08 07:18:11 +01:00
radius 2fca1cccd3 add xmb font 2016-02-08 01:11:56 -05:00
radius cfa01e930d add settings for xmb font 2016-02-08 01:08:03 -05:00
radius 5c4ab83d98 add XMB settings for scale and opacity 2016-02-08 00:34:13 -05:00
radius 14cd4af752 don't create directories when checking for game options, only create when the user selects the menu entry 2016-02-08 00:07:41 -05:00
twinaphex ce1b86993b Style nits 2016-02-08 05:58:27 +01:00
twinaphex fc821fc5b4 Make rarch_task_http_finder more robust 2016-02-08 05:48:36 +01:00
Twinaphex 1924b8396b Merge pull request #2703 from diablodiab/master
Enables keyboard to be mapped to gamepad buttons
2016-02-08 02:41:02 +01:00
Diablodiab 84b6b505ad Fix crash when defining gamepad keys 2016-02-08 01:53:33 +01:00
Diablodiab bdb9471d13 Added support for using keyboards in the Retroarch menu and for mapping to gamepad keys. 2016-02-08 01:06:15 +01:00
twinaphex f8051d846f Turn function static 2016-02-08 00:36:32 +01:00
twinaphex b3e72f6f42 Respect 80-char width limit 2016-02-08 00:31:11 +01:00
twinaphex c30a2ec990 Cleanups 2016-02-08 00:28:05 +01:00
twinaphex 95deab8f1d Cleanup 2016-02-08 00:26:33 +01:00
twinaphex 29d1326c4f We assume deinit/init is going to be correct from now on on
console
2016-02-08 00:24:20 +01:00
twinaphex cd578521e4 Cleanups 2016-02-08 00:23:03 +01:00
twinaphex b578ffb056 Create RARCH_DISPLAY_CTL_HW_CONTEXT_GET 2016-02-07 21:53:38 +01:00
twinaphex a2b2869ca6 Cleanup 2016-02-07 21:46:57 +01:00
twinaphex 0584b3c072 Create RARCH_DISPLAY_CTL_IS_HW_CONTEXT 2016-02-07 20:32:53 +01:00
twinaphex d8bfa7ab7d Rename RARCH_DISPLAY_CTL_DEINIT_VIDEO_CACHE_CONTEXT to RARCH_DISPLAY_CTL_DEINIT_HW_CONTEXT 2016-02-07 20:15:58 +01:00
twinaphex 702d9d4728 Create RARCH_DISPLAY_CTL_DEINIT_VIDEO_CACHE_CONTEXT 2016-02-07 20:11:16 +01:00
twinaphex 3e69eb5a8e video_driver_unset_callback - have destroy_callback do this
implicitly
2016-02-07 20:06:07 +01:00
twinaphex 772aa6ef0c Move destroy and unsetting of video driver callback to RETRO_UNLOAD_GAME
time
2016-02-07 19:29:40 +01:00
twinaphex 76b726d154 Cleanup 2016-02-07 19:02:09 +01:00
twinaphex 81c4160a5a Cleanups 2016-02-07 19:01:17 +01:00
twinaphex eb33197a9b Cleanup core_info_get_name - reuse core_info_list_iterate 2016-02-07 18:32:56 +01:00
twinaphex c7b9625460 Create core_info_list_iterate 2016-02-07 18:27:27 +01:00
twinaphex f7d47bb956 Cleanups 2016-02-07 18:19:58 +01:00
twinaphex d384cb351f Cleanup 2016-02-07 17:40:42 +01:00
twinaphex a1ee49bf1d Cleanups 2016-02-07 17:39:10 +01:00
twinaphex 496a69c796 Cleanup 2016-02-07 17:35:52 +01:00
twinaphex fac18641cd Turn function static 2016-02-07 17:34:22 +01:00
twinaphex d3b9356958 Create CORE_INFO_CTL_LOAD 2016-02-07 17:26:10 +01:00
twinaphex e566665885 Cleanup 2016-02-07 17:19:27 +01:00
Alcaro b600e6e032 Fix typo. 2016-02-07 16:23:36 +01:00
twinaphex b647e8186d Create CORE_INFO_CTL_LIST_UPDATE_MISSING_FIRMWARE 2016-02-07 16:19:02 +01:00
twinaphex 452df47c14 Remove core_info_list_get_all_extensions 2016-02-07 16:10:42 +01:00
twinaphex 9d96e9e452 Remove core_info_list_num_info_files 2016-02-07 16:03:53 +01:00
twinaphex 71bc817e99 Remove unused STRING_LIST_CORES_NAMES 2016-02-07 15:54:37 +01:00
twinaphex c78c542aea Remove unused STRING_LIST_CORES_PATHS 2016-02-07 15:53:34 +01:00
twinaphex a67082865c N/A 2016-02-07 13:38:23 +01:00
twinaphex 26737dbf49 N/A 2016-02-07 13:33:56 +01:00
twinaphex 3fe210bb41 N/A 2016-02-07 13:29:50 +01:00
twinaphex 534a838472 Header cleanups 2016-02-07 13:25:55 +01:00
twinaphex 0b1b56214e Try to reduce dependence on general.h 2016-02-07 13:18:48 +01:00
twinaphex 04591cfc5c Header cleanups 2016-02-07 13:10:04 +01:00
twinaphex 1b2cf74e12 Add more ways to gracefully fail during content loading 2016-02-07 13:08:14 +01:00
twinaphex ff90a13a5e Turn core_info_does_support_any_file static 2016-02-07 12:59:50 +01:00
twinaphex 418fb62cfc Cleanups 2016-02-07 12:55:21 +01:00
twinaphex 6576348198 Turn core_info_does_support_file static 2016-02-07 12:53:45 +01:00
twinaphex bd56e0c02e Turn some functions static 2016-02-07 12:51:45 +01:00
twinaphex 487b295182 Turn core_info_find into static function 2016-02-07 02:53:00 +01:00
twinaphex 9e9723e721 Create CORE_INFO_CTL_FIND 2016-02-07 02:50:16 +01:00
twinaphex 490c023fe3 Add core_info_ctl actions 2016-02-07 02:37:57 +01:00
twinaphex 7a01fb1616 Create CORE_INFO_CTL commands 2016-02-07 02:24:08 +01:00
twinaphex e1bd5ca335 Create core_info_ctl 2016-02-07 02:18:26 +01:00
twinaphex 4448145532 Cleanups 2016-02-07 01:56:03 +01:00
twinaphex f1ca9604b7 Header include changes 2016-02-07 01:50:08 +01:00
twinaphex 0e89523fa8 Move function prototype to patch.c 2016-02-07 01:46:20 +01:00
twinaphex d9b3412922 (patch) Turn functions static 2016-02-07 01:44:54 +01:00
twinaphex c4c4ee4eee Respect 80-char width limit 2016-02-07 01:22:19 +01:00
twinaphex fbcad4e117 (core_info.c) Respect 80-char width limit 2016-02-07 01:15:10 +01:00
twinaphex 71a8098037 Refactor RARCH_DISPLAY_CTL_HAS_WINDOWED 2016-02-07 01:11:07 +01:00
twinaphex ac09b7eb29 (deps/zlib) Rollback changes 2016-02-07 01:05:40 +01:00
twinaphex 3c2f7fadcc (GX) Fix 'Restart RetroArch' 2016-02-07 00:04:19 +01:00
twinaphex 694ef7570e (PS3) Take out LIBRETRODB and silence some warnings 2016-02-07 00:04:00 +01:00
twinaphex 506645dd8d (PS3) Exclude GLUI/XMB 2016-02-06 23:13:40 +01:00
twinaphex fccb635f19 (PS3) Compile without stb font support 2016-02-06 22:53:57 +01:00
twinaphex b8b7ee530c Respect 80-char width limits 2016-02-06 21:51:37 +01:00
twinaphex ca2c38cd9f Respect 80-char width limit 2016-02-06 21:41:26 +01:00
twinaphex 7e8ea3f6fb Add better fallback for 'no items found' 2016-02-06 21:34:54 +01:00
twinaphex 05d9827830 Revert "Get rid of SL_FLAG_ALLOW_EMPTY_LIST"
This reverts commit bb0b8764c5.
2016-02-06 21:33:45 +01:00
twinaphex 788ded0138 Revert "Add better fallback for 'no items found'"
This reverts commit b208ce443c.
2016-02-06 21:33:38 +01:00
twinaphex b208ce443c Add better fallback for 'no items found' 2016-02-06 21:31:22 +01:00
twinaphex bb0b8764c5 Get rid of SL_FLAG_ALLOW_EMPTY_LIST 2016-02-06 21:29:44 +01:00
twinaphex 8b20409d32 Rename rarch_defer_core_wrapper 2016-02-06 19:43:42 +01:00
twinaphex 609fa8394e (GX) Fix FRONTEND_FORK_CORE when game has already been selected 2016-02-06 18:18:17 +01:00
twinaphex 24354f477e (GX) Fix FRONTEND_FORK_CORE_WITH_ARGS 2016-02-06 18:06:49 +01:00
twinaphex f29c61bacc (Linux) Restarting of core in non-HAVE_DYNAMIC mode now properly
implemented
2016-02-05 19:16:35 +01:00
twinaphex c67771fab6 Buildfix 2016-02-05 19:00:30 +01:00
twinaphex 8c2ed9f750 Rename FRONTEND_FORK_SALAMANDER_RESTART to FRONTEND_FORK_RESTART
and call FRONTEND_FORK_CORE instead of FRONTEND_FORK_RESTART
when selecting a core from 'Load Core' list
2016-02-05 18:57:44 +01:00
twinaphex 6a64ab1137 (platform_linux.c) Try to stay within 80-char width limit 2016-02-05 18:53:01 +01:00
twinaphex 6130f20d47 (XDK) Reimplement fork mode 2016-02-05 18:47:27 +01:00
twinaphex 17f885d158 (PSP) Refactor fork mode 2016-02-05 18:43:23 +01:00
twinaphex 9e497c1b11 (PS3) Reimplement set_fork_mode 2016-02-05 18:40:24 +01:00
twinaphex d59ffbdd2c (GX/Untested) Reimplement set fork mode 2016-02-05 18:34:28 +01:00
twinaphex 5f3ae10f20 (Linux) Reimplement fork mode functionality 2016-02-05 17:58:50 +01:00
twinaphex d9113b8bc4 (Linux non-HAVE_DYNAMIC) Can now exit properly 2016-02-05 17:44:51 +01:00
twinaphex feb744fafe dist-cores.sh : Add big stack rule for unix target 2016-02-05 17:38:09 +01:00
twinaphex 0ed22af4f5 Update dist-cores.sh - turn 'linux' target into 'unix' 2016-02-05 17:03:00 +01:00
twinaphex 02ab043ff5 Setup dist-cores.sh for Linux statically linked cores 2016-02-05 15:13:06 +01:00
twinaphex d3aaa7ac88 Style nits 2016-02-05 14:42:20 +01:00
twinaphex 341e8f8f15 Cleanup 2016-02-05 14:35:16 +01:00
twinaphex 6b55a5f20b Cleanup 2016-02-05 14:15:32 +01:00
twinaphex ce200823b8 Cleanup 2016-02-05 14:13:49 +01:00
twinaphex 8e2818bbeb Cleanups 2016-02-05 14:11:38 +01:00
twinaphex 36c36aa558 Cleanups 2016-02-05 14:09:46 +01:00
twinaphex 8fc2a05a70 Cleanups 2016-02-05 14:06:43 +01:00
twinaphex 188029373f Header include changes 2016-02-05 14:00:27 +01:00
twinaphex 0643b83f7d Header include changes 2016-02-05 13:57:08 +01:00
twinaphex ab64daf5aa Cleanups 2016-02-05 13:51:30 +01:00
twinaphex 2fa46bcef8 Cleanups 2016-02-05 13:36:18 +01:00
twinaphex ca3f352ed1 Remove unused udev_common 2016-02-05 13:30:19 +01:00
twinaphex 32ee695f9d Create udev_ctl 2016-02-05 01:49:31 +01:00
twinaphex 24f5275001 Use wiiugca for non-Wii too 2016-02-04 23:49:04 +01:00
twinaphex 407d85f604 Use nesusb/snesusb for non-Wii too 2016-02-04 23:43:33 +01:00
Twinaphex a90c5a9861 Merge pull request #2695 from netux79/master
(GX) Refactor of the Wii USB HID support. Now it's working!
2016-02-04 23:36:46 +01:00
netux79 bca4ccb155 (GX) Refactor of the Wii USB HID support. Now it's working!
In order to have a controller working you need:
1) Have a matching HID autoconfig file in autoconfig/hid for your controller.
2) Create a "connect" driver for the pad in "input/connect" folder (source code of RA).
3) Once you are in RA, change the joystick driver to HID and restart.
4) You may be now able to use you USB HID compatible pad in RA.

I included some "connect" drivers as an example. It also need to include them for compilation.
2016-02-04 17:01:03 -05:00
twinaphex 6623bdc054 (XMB) Fix text being cut off 2016-02-04 22:03:36 +01:00
twinaphex deb3c73ae0 Nits 2016-02-04 21:42:42 +01:00
twinaphex 9a75893cff Nits 2016-02-04 21:40:29 +01:00
twinaphex f747196e21 Style nits 2016-02-04 21:31:41 +01:00
twinaphex 3a5ddf15cf Nits 2016-02-04 21:27:58 +01:00
twinaphex 050cf545bf NIts 2016-02-04 21:24:51 +01:00
twinaphex 7bde72a8ec Nits 2016-02-04 21:20:28 +01:00
twinaphex 03199b564f Create MENU_ENTRIES_CTL_REFRESH 2016-02-04 21:13:38 +01:00
twinaphex 2e8f015de3 Cleanups 2016-02-04 21:07:02 +01:00
twinaphex 3d56dd1ef8 Cleanup 2016-02-04 21:03:28 +01:00
twinaphex dbef4d9b2b Nits 2016-02-04 20:58:53 +01:00
twinaphex 878c4e3833 Cleanup 2016-02-04 20:56:22 +01:00
twinaphex 958860dea7 Remove obsolete static function 2016-02-04 20:47:34 +01:00
Twinaphex da34967857 (OSX) Include <sys/types.h> - provide prototype for ssize_t 2016-02-04 20:36:00 +01:00
twinaphex d773dd8d45 Cleanups 2016-02-04 20:28:28 +01:00
Twinaphex a120ab1084 Cleanup RARCH_CTL_DEINIT 2016-02-04 20:26:36 +01:00
twinaphex 2901c3c737 (menu_driver.c) 80-char width limit 2016-02-04 20:23:52 +01:00
Twinaphex 9c9fdcfa58 (iOS 9) Fix iOS 9 build 2016-02-04 20:17:26 +01:00
twinaphex 543e680961 Rewrite menu_driver_list_free 2016-02-04 20:15:34 +01:00
twinaphex c039e4c6ab Make menu_driver_free a static function 2016-02-04 20:12:58 +01:00
Twinaphex 667e33e82b Buildfix 2016-02-04 20:05:20 +01:00
twinaphex 73684cb361 Set these static variables initially to NULL 2016-02-04 20:04:06 +01:00
twinaphex 12d1de4232 Set these static variables initially to NULL 2016-02-04 20:03:31 +01:00
twinaphex 12e453c29a Set these static variables initially to NULL 2016-02-04 20:02:50 +01:00
twinaphex 5b74105add Set these static variables to NULL 2016-02-04 20:02:02 +01:00
twinaphex 58219f897a Dehardcode frontend_linux_exec 2016-02-04 18:28:42 +01:00
twinaphex be94309808 Use execv - seems to work 2016-02-04 17:56:34 +01:00
twinaphex 77d6eb560c Fix 'statement is unreachable' warning 2016-02-04 17:47:56 +01:00
twinaphex 7a5db5a73a Reimplement frontend_driver_set_fork 2016-02-04 17:46:50 +01:00
twinaphex 332f48f2df Hardcode path for now as a test 2016-02-04 17:28:58 +01:00
twinaphex 84c3b5a546 Implement frontend_linux_exitspawn 2016-02-04 17:16:15 +01:00
twinaphex c3c14c162e Change signature of set_fork so that we can optionally implement
restarting RetroArch (or not)
2016-02-04 17:08:09 +01:00
twinaphex b8a418d6f5 Update description 2016-02-04 15:46:52 +01:00
twinaphex 957f58a033 Rename static function 2016-02-04 15:46:24 +01:00
twinaphex cb2a7b59f3 Turn some functions static 2016-02-04 15:44:25 +01:00
twinaphex 94d10f9d4b Seems to be no longer used? 2016-02-04 15:37:41 +01:00
twinaphex 9d9c6827f5 (menu_content.c) Cleanup to menu_content_load_from_playlist 2016-02-04 15:29:37 +01:00
Twinaphex 05dd8eb6b4 Merge pull request #2693 from lakkatv/master
Display genre from tgdb
2016-02-04 15:24:34 +01:00
twinaphex 4e674e15ab Create MENU_CONTENT_CTL_FIND_FIRST_CORE 2016-02-04 15:21:42 +01:00
Jean-André Santoni b1f22127b2 Display genre from tgdb 2016-02-04 21:20:56 +07:00
twinaphex 24a04ce201 Create MENU_CONTENT_CTL_LOAD_PLAYLIST 2016-02-04 15:00:38 +01:00
twinaphex b646b548ff Create menu_content_ctl 2016-02-04 14:51:01 +01:00
twinaphex 8709657d4d Start implementing frontend_linux_exec 2016-02-04 14:10:29 +01:00
twinaphex cad629a36b (Load Core) Show 'No Items' when no core could be found inside the list. 2016-02-04 13:40:07 +01:00
twinaphex 4d8e579779 Add 'elf' as executable extension for Linux when compiling with
non-HAVE_DYNAMIC
2016-02-04 12:52:49 +01:00
Twinaphex f6bcc209ab Merge pull request #2692 from lakkatv/master
Add support for TGDB Rating
2016-02-04 12:04:22 +01:00
Jean-André Santoni ab413672a9 Add support for TGDB Rating 2016-02-04 17:55:08 +07:00
twinaphex dad456afd9 N/A 2016-02-04 11:45:34 +01:00
twinaphex ea28f992ac Refactor frontend_driver_set_fork 2016-02-04 11:44:10 +01:00
twinaphex 8574315f52 N/A 2016-02-04 11:31:34 +01:00
twinaphex 18a8b0f29d Silence warnings with non-HAVE_DYNAMIC 2016-02-04 11:28:12 +01:00
twinaphex a332643003 (Linux) Start adding frontend_linux_set_fork for non-HAVE_DYNAMIC 2016-02-04 11:25:13 +01:00
twinaphex 5d27033b2e Nit 2016-02-04 11:12:57 +01:00
twinaphex 6896e85f01 Attempt to stay within 80-char width limit 2016-02-04 11:11:23 +01:00
twinaphex 0c03ee0afa Style nits 2016-02-04 11:05:34 +01:00
twinaphex 9c547ab541 Move define to top of file 2016-02-04 10:30:12 +01:00
twinaphex 2251517774 Respect 80-char width limit 2016-02-04 10:25:22 +01:00
twinaphex 16ba94b531 Revert "(task_database.c) Style nits"
This reverts commit 0f46d42c26.
2016-02-04 10:17:54 +01:00
twinaphex 24adcc8e68 Create RUNLOOP_CTL_MSG_QUEUE_PUSH 2016-02-03 17:56:40 +01:00
twinaphex e6d04b2fb4 Create RUNLOOP_CTL_MSG_QUEUE_CLEAR 2016-02-03 17:50:53 +01:00
twinaphex 7803b0d925 Create RUNLOOP_CTL_MSG_QUEUE_PULL 2016-02-03 17:48:01 +01:00
twinaphex c57995b3eb Style nits/cleanups 2016-02-03 17:41:04 +01:00
twinaphex 0f46d42c26 (task_database.c) Style nits 2016-02-03 17:31:19 +01:00
twinaphex 52a5ff73fa Style nits 2016-02-03 17:20:36 +01:00
twinaphex ad323a159d Take out outdated log message 2016-02-03 17:17:25 +01:00
twinaphex 32b9303a79 Create RARCH_MENU_CTL_LIST_SET_SELECTION 2016-02-03 17:15:00 +01:00
twinaphex 03ddb7baa2 Style nits 2016-02-03 17:10:54 +01:00
twinaphex d764c51eae Style nits 2016-02-03 17:07:45 +01:00
twinaphex 482740b5fa (netplay) Style nits 2016-02-03 17:05:32 +01:00
twinaphex 66f9295253 Style nits 2016-02-03 17:00:43 +01:00
twinaphex 9b9efc745c Style nit 2016-02-03 16:58:30 +01:00
twinaphex f70a082626 Create event_cmd_exec - get rid of libretro_private.h 2016-02-03 16:58:06 +01:00
twinaphex aeb5a8e32f (screenshot.c) Cleanup 2016-02-03 16:13:37 +01:00
twinaphex f77f66450e (cheevos.c) More style nits 2016-02-03 16:09:53 +01:00
twinaphex 3ea92115bf (cheevos.c) Style nits 2016-02-03 16:09:11 +01:00
twinaphex 45b806aed8 Cleanups 2016-02-03 15:50:51 +01:00
twinaphex f9f0d4abb6 Refactor 2016-02-03 15:47:57 +01:00
twinaphex cca999ecc7 Remove warning 2016-02-03 15:39:44 +01:00
twinaphex d1957789bc (GX) Dehardcode some code here 2016-02-03 15:38:28 +01:00
twinaphex 4a3263986b Style nits 2016-02-03 15:30:17 +01:00
twinaphex 674f17485d (CTR) Fix build 2016-02-03 15:27:31 +01:00
twinaphex d1097ed967 (PSP1) Buildfix 2016-02-03 15:26:35 +01:00
twinaphex 5f3ddb4bfc Fix some warnings with SNC PS3 compiler 2016-02-03 15:25:37 +01:00
twinaphex 7e4f17ef8d (PS3) Fix build 2016-02-03 15:23:13 +01:00
twinaphex 2f6f7d9308 (Gamecube) Silence warnings 2016-02-03 14:42:40 +01:00
twinaphex 48e83ba02a Cleanup 2016-02-03 14:41:39 +01:00
twinaphex 47fc8fe3c0 Cleanup 2016-02-03 14:39:14 +01:00
Twinaphex f080cfe74f Merge pull request #2690 from lakkatv/master
Display Co-op in the database informations
2016-02-03 14:37:09 +01:00
twinaphex 321690b416 Refactors to do with set_fork method 2016-02-03 14:36:34 +01:00
Jean-André Santoni 18cf2f3f88 Display Co-op in the database informations 2016-02-03 19:36:13 +07:00
twinaphex 0e7729c660 Create frontend_driver_get_salamander_basename 2016-02-03 13:36:00 +01:00
twinaphex 7d6ad7435f dynamic.c - Take out one RARCH_CONSOLE ifdef 2016-02-03 12:46:20 +01:00
twinaphex 9a5ce5fdb3 Make HAVE_LIBRETRO_MANAGEMENT define obsolete 2016-02-03 12:31:29 +01:00
twinaphex fbf6b01209 Add frontend_driver_has_fork 2016-02-03 11:56:01 +01:00
twinaphex 2cbb18b4e4 Create RARCH_DRIVER_CTL_FIND_INDEX 2016-02-01 13:15:53 +01:00
twinaphex 668373f9f8 Refactor away some functions 2016-02-01 12:56:17 +01:00
twinaphex 3de0718e3f Turn some functions static 2016-02-01 12:46:46 +01:00
twinaphex d720bba510 Cleanup 2016-02-01 12:43:48 +01:00
Twinaphex 8bc4a69729 Merge pull request #2687 from Monroe88/quick_menu
Keep Quick Menu at the top of the Main Menu
2016-02-01 07:50:55 +01:00
Monroe88 2ce3ed1319 Keep Quick Menu at the top of the Main Menu 2016-01-31 14:36:41 -06:00
radius ed7323ea88 forgot to free this 2016-01-31 02:17:52 -05:00
Twinaphex f64e3e528d Merge pull request #2686 from fr500/master
improve per-game core options
2016-01-31 08:12:04 +01:00
radius 659a3ef5d8 write to game options files if created instead of the main options file 2016-01-31 01:54:57 -05:00
twinaphex f5b7add383 Cleanups 2016-01-30 05:21:05 +01:00
twinaphex 8670c2e405 Create RARCH_CTL_MAIN_INIT and RARCH_CTL_MAIN_DEINIT 2016-01-30 05:03:15 +01:00
twinaphex aa0f0a2738 Fix header include 2016-01-30 04:46:41 +01:00
twinaphex eb5986d332 Cleanup 2016-01-30 04:43:35 +01:00
twinaphex a7a8ff387a (drivers_font_renderer/stb.c) Use retro_read_file 2016-01-30 04:00:46 +01:00
twinaphex f1819b8c13 Replace read_file instances with retro_read_file 2016-01-30 03:59:30 +01:00
twinaphex 9ab31824f8 Use retro_read_file in more places 2016-01-30 03:58:33 +01:00
twinaphex 9371d3ae48 video_texture_image_load_tga - use retro_read_file instead 2016-01-30 03:54:28 +01:00
twinaphex 04c17f1f9a Cleanups 2016-01-30 03:51:24 +01:00
twinaphex 7decd1e230 (GX) Buildfix 2016-01-30 03:30:56 +01:00
twinaphex 101ec57936 movie.c - turn some functions static 2016-01-30 03:29:12 +01:00
twinaphex b0ec812de6 Create two new BSV_MOVIE_CTL_* actions 2016-01-30 03:25:47 +01:00
twinaphex bd39fd252f Fix C89_BUILD 2016-01-30 03:18:18 +01:00
twinaphex 2bade2c933 Cleanup 2016-01-30 03:11:07 +01:00
twinaphex 1674dafe79 Cleanup 2016-01-30 03:10:41 +01:00
twinaphex cc45f5c447 Cleanups 2016-01-30 03:08:33 +01:00
twinaphex 8cf1acb7c6 (gfx/video_texture_image.c) Refactors 2016-01-30 02:48:43 +01:00
twinaphex a267bdfbe3 MOve gfx/image/image.c to gfx/video_texture_image.c 2016-01-30 02:39:08 +01:00
twinaphex e91b325d9d Remove no longer used write_file 2016-01-30 02:20:00 +01:00
twinaphex 8e435a66eb (Netplay) Backport - [PATCH] Should fix few issues with netplay.
One perf fix and 3/4 player fix.
2016-01-30 00:23:22 +01:00
Alcaro 92251dcecb Get the C89 support flags out of ./configure --help. 2016-01-29 18:57:24 +01:00
twinaphex cb2288ebe6 Turn cheevos_locals into static variable 2016-01-29 14:39:38 +01:00
twinaphex b47caeb58b Refactor away runloop_msg_queue_push_new 2016-01-29 14:30:09 +01:00
twinaphex 912b62dca9 Create RARCH_CTL_SET_PATHS 2016-01-29 11:00:01 +01:00
twinaphex 4456cb85f6 (Android) Use strstr for detecting devices by name 2016-01-29 10:56:05 +01:00
twinaphex 195520fcb6 (D3D) Attempt to fix build error 2016-01-29 10:40:37 +01:00
twinaphex 4f94e2b5d8 (Android) Fix APK assets extraction 2016-01-29 09:42:15 +01:00
twinaphex c8d57e98d2 Create libretro GL FF Test 2016-01-29 03:03:12 +01:00
twinaphex 29ae063003 (Libretro GL Test) Improve fixed function example 2016-01-29 02:55:12 +01:00
twinaphex 58f619dc22 (Libretro GL Test) Add fixed-function GL codepath 2016-01-29 02:34:06 +01:00
twinaphex d81d6058cd (Libretro test GL) If we don't call input_state at least once per retro_run then
late input polling behavior won't work
2016-01-29 02:30:09 +01:00
twinaphex 9f21a813bd Remove Emscripten rule 2016-01-29 02:25:35 +01:00
twinaphex 673aab5282 (PATCH) Strip lines with #pragma parameter.
It's not valid GLSL to have quotes in them, and it's meaningless to pass in the #pragmas to the driver.
2016-01-29 02:07:37 +01:00
Alcaro d86bda1ebd Tell which option is unknown. 2016-01-29 00:49:12 +01:00
twinaphex 219dd6c5d5 Cleanup 2016-01-28 18:53:25 +01:00
twinaphex 9e0aad9d5d Cleanups 2016-01-28 18:51:07 +01:00
twinaphex ae1e9acbaf Turn function static 2016-01-28 10:11:33 +01:00
twinaphex 6b1441340c Cleanup 2016-01-28 10:09:26 +01:00
twinaphex c53702e768 Make impl_current into static local variable 2016-01-28 10:08:27 +01:00
twinaphex d61eb7a8db Add TASK_CTL_FIND 2016-01-28 09:57:55 +01:00
twinaphex a5e8615091 Create TASK_CTL_INIT 2016-01-28 09:52:28 +01:00
twinaphex b008750f18 Add TASK_CTL_DEINIT 2016-01-28 09:48:47 +01:00
twinaphex 7a5fbc6948 Create TASK_CTL_CHECK 2016-01-28 09:45:14 +01:00
twinaphex b807b89837 Add TASK_CTL_PUSH 2016-01-28 09:42:55 +01:00
twinaphex 0764b65dc4 Add more TASK_CTL commands 2016-01-28 09:38:21 +01:00
twinaphex ebcae85452 Add task_ctl 2016-01-28 09:35:25 +01:00
twinaphex dbff4e52bc Cleanups 2016-01-28 09:33:09 +01:00
twinaphex 9046626256 Cleanup 2016-01-28 09:24:38 +01:00
twinaphex d9d0c0f842 Cleanup 2016-01-28 08:49:39 +01:00
twinaphex 13c54381e4 Set default poll behavior to 2 (late) 2016-01-28 06:51:18 +01:00
twinaphex 6d45804257 zip_file_decompressed - cleanup #2 2016-01-28 06:36:35 +01:00
twinaphex adbaab9794 Simplify zip_file_decompressed 2016-01-28 06:34:31 +01:00
twinaphex b8212ec196 Fix warning on OSX 2016-01-28 06:30:12 +01:00
twinaphex 3eb71faf64 Nits 2016-01-28 06:21:29 +01:00
twinaphex aad3ddc7a5 Move core_poll_type to libretro_version_1.c 2016-01-28 06:20:44 +01:00
twinaphex 49ac60767a Move core variable to libretro_version_1.c 2016-01-28 04:41:54 +01:00
twinaphex 92a1de2e77 Create CORE_CTL_RETRO_SET_INPUT_STATE 2016-01-28 04:39:38 +01:00
twinaphex 277f08022d Create CORE_CTL_RETRO_CHEAT_SET 2016-01-28 04:34:39 +01:00
twinaphex 0d81f669e0 Add CORE_CTL_RETRO_CHEAT_RESET 2016-01-28 04:29:35 +01:00
twinaphex 857618d672 Implement CORE_CTL_RETRO_API_VERSION 2016-01-28 04:26:17 +01:00
twinaphex ab221f96f1 Create CORE_CTL_SET_POLL_TYPE 2016-01-28 04:17:59 +01:00
twinaphex 1cc5bfbc12 use callbacks 2016-01-28 04:13:31 +01:00
twinaphex eb9be6409f Use core callbacks 2016-01-28 04:07:54 +01:00
twinaphex 7f81d7a4a8 Create CORE_CTL_RETRO_SYMBOLS_INIT 2016-01-28 04:03:02 +01:00
twinaphex eb503e0464 Start getting rid of hardcoded core\. references 2016-01-28 03:41:30 +01:00
twinaphex 6e3041e33c Rewrite uninit_libretro_sym 2016-01-28 03:36:14 +01:00
twinaphex 2542e4a04e Use CORE_CTL_* callbacks 2016-01-28 03:22:23 +01:00
twinaphex 957bf3f60c Refactor autosave.c to use new callback 2016-01-28 03:10:47 +01:00
twinaphex 8da2f273a4 (cheevos.c) Use CORE_CTL_RETRO_GET_MEMORY 2016-01-28 03:06:25 +01:00
twinaphex 93651ae340 Use CORE_CTL_RETRO_GET_MEMORY 2016-01-28 02:58:53 +01:00
twinaphex 737fd4268c Refactor CORE_CTL_RETRO_GET_MEMORY 2016-01-28 02:53:43 +01:00
twinaphex 6f0c4e03d5 Create EVENT_CMD_DISK_APPEND_IMAGE 2016-01-27 20:04:34 +01:00
twinaphex 1d47300f0f Cleanup 2016-01-27 19:58:11 +01:00
twinaphex 4e8ad770e6 Cleanups 2016-01-27 19:56:14 +01:00
twinaphex d1b53a14a1 Create RARCH_CTL_SET_SRAM_ENABLE 2016-01-27 19:53:07 +01:00
twinaphex 8fe012afe4 Modify RARCH_CTL_SET_PATHS_REDIRECT 2016-01-27 19:48:27 +01:00
twinaphex 3728240162 Move some code 2016-01-27 19:45:54 +01:00
twinaphex 3b38e2fe4c Move this above init_libretro_sym 2016-01-27 19:30:13 +01:00
twinaphex 7a896596a1 Move this to CORE_CTL_RETRO_DEINIT 2016-01-27 19:25:44 +01:00
twinaphex f6fcb95dea Create CORE_CTL_RETRO_SET_CONTROLLER_PORT_DEVICE 2016-01-27 19:13:15 +01:00
twinaphex 87176df22a Refactor event_init_controllers 2016-01-27 19:07:58 +01:00
twinaphex f63429601e use CORE_CTL_RETRO_GET_MEMORY in more places 2016-01-27 09:31:31 +01:00
twinaphex ae2cf510cd Create CORE_CTL_RETRO_GET_MEMORY 2016-01-27 09:29:18 +01:00
twinaphex e516a64a0c Create CORE_CTL_RETRO_LOAD_GAME 2016-01-27 09:13:26 +01:00
twinaphex 5e3e0bcbe4 Go through callback 2016-01-27 08:59:54 +01:00
twinaphex fef5ecd97b Create CORE_CTL_RETRO_GET_SYSTEM_INFO 2016-01-27 08:58:31 +01:00
twinaphex a9e71b12e1 Cleanup 2016-01-27 08:50:23 +01:00
twinaphex 9ad2e6fa1f Simplify some code in load_content - only do cheevos calls
when content has been successfully loaded
2016-01-27 08:48:19 +01:00
twinaphex d658c1e09b Cleanup 2016-01-27 08:42:52 +01:00
twinaphex 2c3cb61ca8 Move code to libretro_version_1.c 2016-01-27 08:40:18 +01:00
twinaphex 1e044f38ad Move RARCH_CTL_INIT_SYSTEM_AV_INFO to libretro_version_1.c 2016-01-27 08:21:41 +01:00
twinaphex 6a7b2aed5c Simplifications 2016-01-27 08:17:12 +01:00
twinaphex 392fee9023 Create CORE_CTL_VERIFY_API_VERSION 2016-01-27 08:13:54 +01:00
twinaphex 76f068f852 Simplify RARCH_CTL_VERIFY_API_VERSION 2016-01-27 08:11:42 +01:00
twinaphex 1c3bf435e5 Replace other core.retro_serialize/unserialize references 2016-01-27 07:28:03 +01:00
twinaphex fb3b0bd809 (rewind.c) Use new callbacks 2016-01-27 07:23:50 +01:00
twinaphex c89f10d312 (movie.c) Use new callbacks 2016-01-27 07:21:12 +01:00
twinaphex 24d438ccc1 Start using new callbacks 2016-01-27 07:17:53 +01:00
twinaphex dad9b4abf8 Create CORE_CTL_RETRO_SERIALIZE and CORE_CTL_RETRO_UNSERIALIZE 2016-01-27 07:14:06 +01:00
twinaphex 57d19b21b5 Use CORE_CTL_RETRO_SERIALIZE_SIZE everywhere 2016-01-27 07:09:30 +01:00
twinaphex a4bfd9046c Create CORE_CTL_RETRO_SERIALIZE_SIZE 2016-01-27 06:46:59 +01:00
twinaphex 6750d74e46 Cleanup 2016-01-27 05:55:26 +01:00
twinaphex 6958a23b96 Add RETRO_CTL_RETRO_SET_ENVIRONMENT 2016-01-27 05:19:15 +01:00
twinaphex cb78c1c610 Turn retro_ctx into static local variable of core_ctl 2016-01-27 04:54:22 +01:00
twinaphex 0434c907c4 Replace another reference to retro_ctx 2016-01-27 04:51:47 +01:00
twinaphex 6151e1c425 Create CORE_CTL_RETRO_CTX_FRAME_CB and CORE_CTL_RETRO_CTX_POLL_CB 2016-01-27 04:49:38 +01:00
radius 4165c89385 only check for identical paths, not CRC too 2016-01-26 22:10:42 -05:00
twinaphex 5016ebd344 Create CORE_CTL_RETRO_GET_SYSTEM_AV_INFO 2016-01-27 03:40:02 +01:00
twinaphex adcff5b6ec Start creating more CORE_CTL_ callbacks 2016-01-27 03:35:52 +01:00
twinaphex 489b578bf8 rename CORE_CTL_RUN to CORE_CTL_RETRO_RUN 2016-01-27 03:31:42 +01:00
twinaphex d1ffd1f9cc Create CORE_CTL_RUN 2016-01-27 03:21:36 +01:00
twinaphex 4843e76491 Add CORE_CTL_SET_CBS_REWIND 2016-01-27 03:18:18 +01:00
twinaphex ca00274204 Add CORE_CTL_SET_CBS 2016-01-27 03:17:05 +01:00
twinaphex 1a9479ed04 Create core_ctl commands CORE_CTL_INIT / CORE_CTL_DEINIT 2016-01-27 03:14:36 +01:00
twinaphex 348b14f64f Remove unused retro_flush_audio prototype 2016-01-27 03:10:01 +01:00
twinaphex e132115185 Start creating core_ctl 2016-01-27 03:08:49 +01:00
twinaphex d1ac905248 Return 'ret' at end of load_content instead of hardcoded 'true' 2016-01-27 02:40:11 +01:00
twinaphex 34876ef432 Create 'representation' value for Poll Type Behavior setting 2016-01-27 01:54:43 +01:00
twinaphex 326d5d319a Add Poll Type Behavior setting to Input Settings 2016-01-27 01:51:09 +01:00
twinaphex 11a82481c4 Improve explanation 2016-01-27 01:37:52 +01:00
twinaphex e2b322040f Add some notes to retroarch.cfg 2016-01-27 01:33:28 +01:00
twinaphex 6fd1a98f97 Add input_poll_type_behavior 2016-01-27 01:29:53 +01:00
twinaphex 370f2c087f Nit 2016-01-27 01:17:55 +01:00
twinaphex 9ad50f91e8 Add poll-type - can change it only at compile-time right now 2016-01-27 01:16:53 +01:00
twinaphex cce5d3e900 Cleanup dump_to_file_desperate 2016-01-27 00:06:06 +01:00
twinaphex b80b5c7be3 Fix CXX_BUILD 2016-01-26 21:49:23 +01:00
Twinaphex 23b7bdfea6 Blind attempt at fixing analog for netplay 2016-01-26 21:46:59 +01:00
Twinaphex 5b2a9ef0b3 Merge pull request #2677 from fr500/master
avoid adding duplicates to the database
2016-01-26 21:29:25 +01:00
radius 40e2994fb6 remove log message 2016-01-26 15:24:17 -05:00
radius 2af0708047 do not push entries that are already on the database 2016-01-26 15:22:16 -05:00
twinaphex 68ea128cb5 Turn menu_init into static function 2016-01-26 21:04:05 +01:00
twinaphex f533a986c5 Minor nit 2016-01-26 20:41:13 +01:00
Alcaro 6962c6bb11 This shouldn't be an issue anymore, and even if it is, it's a core bug and don't belong here. 2016-01-26 19:52:36 +01:00
twinaphex f15e03816b Take this out, serves no purpose 2016-01-26 19:49:05 +01:00
twinaphex 8d7290b300 Try to use menu GL driver when SDL GL is selected as context driver 2016-01-26 19:41:54 +01:00
twinaphex ff15d708f6 (libretro-db) Take out testlib.so from main Makefile 2016-01-26 09:36:00 +01:00
twinaphex 8527742b73 Create Makefile.lua 2016-01-26 09:34:43 +01:00
twinaphex 15946c21f9 Start moving Lua files to separate dir 2016-01-26 09:32:49 +01:00
twinaphex 5cf576e2da Remove duplicate line 2016-01-26 09:30:51 +01:00
twinaphex d7e75c9192 Simplify strcmp lines 2016-01-26 09:29:17 +01:00
twinaphex ffec5bf83d (libretro-db) Simplify bintree.c 2016-01-26 09:26:34 +01:00
twinaphex 7baa166adc Change this back 2016-01-26 08:41:07 +01:00
twinaphex 767822bb46 Get rid of leiradel's db converter files 2016-01-26 08:36:44 +01:00
twinaphex beb985dbaa Make this code more robust 2016-01-26 08:21:44 +01:00
twinaphex 158a520edb Cut down on some code duplication 2016-01-26 07:31:48 +01:00
twinaphex b73832ce2e Revert "Cleanup code duplication in zip_file_decompressed"
This reverts commit 173c9fd5ca.
2016-01-26 07:16:44 +01:00
twinaphex 173c9fd5ca Cleanup code duplication in zip_file_decompressed 2016-01-26 07:06:38 +01:00
twinaphex fbc3667f86 zip_file_decompressed - fix need_fullpath codepath 2016-01-26 07:01:26 +01:00
twinaphex 754bf4043d Load_content_from_compressed_archive sets new_path - attempt
to pass it to retro_load_game
2016-01-26 06:49:59 +01:00
Twinaphex b333775611 Merge pull request #2674 from aliaspider/master
(libretro_db) update c_converter:
2016-01-26 06:44:58 +01:00
twinaphex e05f04824c Log calls to retro_load_game and also document some other parts of the code 2016-01-26 06:30:28 +01:00
aliaspider 77e22e9a79 (libretro-db) c_converter: merge list entries sharing the same key
instead of overwriting the old ones.
2016-01-26 06:28:34 +01:00
twinaphex b4f2ff0c42 Another C89_BUILD bugfix 2016-01-26 06:02:08 +01:00
twinaphex a4cb739fc7 Fix C89_BUILD 2016-01-26 06:01:00 +01:00
twinaphex c5597d3c9d Cleanups 2016-01-26 05:59:52 +01:00
twinaphex d1d127728d Style nit 2016-01-26 05:56:53 +01:00
twinaphex 41deaa4af8 Style nits 2016-01-26 05:52:43 +01:00
twinaphex 9c4b927b17 Style nits 2016-01-26 05:48:31 +01:00
twinaphex d8fef4df6e Style nits 2016-01-26 05:44:21 +01:00
twinaphex 317dda00ea Respect 80-char width limit 2016-01-26 05:38:40 +01:00
twinaphex f6ca836e25 Cleanups - respect 80-char width 2016-01-26 05:07:37 +01:00
twinaphex 77a21ba283 Cleanups 2016-01-26 05:06:11 +01:00
twinaphex 302e7d0944 Style nits - respect 80-char width 2016-01-26 05:03:41 +01:00
twinaphex d4d6788381 Use sizeof(variable) instead of hardcoded PATH_MAX_LENGTH 2016-01-26 04:58:40 +01:00
twinaphex 425406537c Fix Android crash 2016-01-26 04:29:19 +01:00
aliaspider 35e54b9777 (libretro-db) c_converter: simplify value_provider:
- use hash-key based lookups.
- allow direct editing of the the dat<->rdb mappings.
2016-01-26 03:17:22 +01:00
twinaphex 6cba7d8d91 Cleanups 2016-01-26 02:42:23 +01:00
twinaphex 2716d9da3e Cleanups 2016-01-26 02:39:54 +01:00
twinaphex 24e577750b Cleanups 2016-01-26 02:38:09 +01:00
twinaphex 390b209cba Cleanups 2016-01-26 02:31:10 +01:00
twinaphex 657565f430 Don't use hardcoded PATH_MAX_LENGTH for length 2016-01-26 02:30:33 +01:00
twinaphex 2a9b2d7759 Cut down on duplicated code surrounding game options files 2016-01-26 02:24:59 +01:00
twinaphex 04616522b9 Cleanup action_ok_option_create 2016-01-26 02:21:03 +01:00
twinaphex 8d1aaa4905 Use fill_string_join 2016-01-26 02:07:39 +01:00
aliaspider 46dc864258 (libretro-db) c_converter: refactor creation/deletion of match_key
objects.
2016-01-26 02:02:37 +01:00
twinaphex ec16640e55 (menu_cbs_ok.c) Use sizeof(variable) for fill_pathname_join and friends 2016-01-26 01:47:35 +01:00
twinaphex f89467ccbf Create fill_string_join 2016-01-26 01:46:15 +01:00
twinaphex e386bc4963 Cleanup 2016-01-26 01:27:23 +01:00
twinaphex 5aca126ffe Fix crash when loading from playlist 2016-01-26 01:24:26 +01:00
twinaphex d8f0df794d Prevent strlcpy if menu_path is NULL 2016-01-26 01:20:08 +01:00
twinaphex 07d65c34ad Simplify menu_content.c 2016-01-25 18:28:19 +01:00
twinaphex 0c235f336b Nits 2016-01-25 18:21:48 +01:00
twinaphex c78d3e0fd7 Cleanups 2016-01-25 18:19:19 +01:00
twinaphex e141b17bf4 Nits 2016-01-25 18:18:00 +01:00
twinaphex e5c1d0d8b5 Respect 80-char width length 2016-01-25 18:14:14 +01:00
twinaphex f31a6a76bd Cleanup action_ok_playlist_entry 2016-01-25 18:11:26 +01:00
twinaphex 5f3b583452 Create CONTENT_CTL_LOAD_RAM_FILE and CONTENT_CTL_SAVE_RAM_FILE 2016-01-25 07:15:05 +01:00
twinaphex bb36ad2772 Take out playlist.h header include from database_info.h 2016-01-25 07:06:58 +01:00
twinaphex 9022724bd5 Fix warnings 2016-01-25 07:04:54 +01:00
twinaphex 2c9daee624 Cleanups 2016-01-25 07:03:45 +01:00
twinaphex 65a5c0c32f Cleanups 2016-01-25 07:02:26 +01:00
twinaphex 67fea1076a Get rid of HAVE_FFMPEG inside dynamic.h 2016-01-25 07:00:24 +01:00
twinaphex dede617727 Create static function load_dynamic_core 2016-01-25 06:58:35 +01:00
twinaphex 6596d15d81 Remove some RARCH_CONSOLE ifdefs 2016-01-25 06:55:15 +01:00
twinaphex 37acfe06ee System Information - add dynamic support 2016-01-25 06:49:37 +01:00
twinaphex 0edda872fe Cleanup 2016-01-25 06:41:58 +01:00
twinaphex c003f63622 Cleanup 2016-01-25 06:39:22 +01:00
twinaphex e7e0187c8a Cleanup 2016-01-25 06:34:02 +01:00
twinaphex ce31c2b02a Add header 2016-01-25 06:17:00 +01:00
twinaphex d3338c5d72 Don't ifdef enum 2016-01-25 06:15:23 +01:00
twinaphex 8cc3eb3193 Refine how 'Start Core' works - if a core supports starting
with no content, 'Start Core' will do somethign
2016-01-25 06:10:37 +01:00
twinaphex 7a0daf2cef Cleanups 2016-01-25 05:58:45 +01:00
twinaphex fd94cbdefe Move rarch_main_init_wrap to frontend.c and turn it into
a static function
2016-01-25 05:45:37 +01:00
twinaphex 854937483d Move rarch_playlist_load_content to menu_content.c 2016-01-25 05:43:27 +01:00
twinaphex 4630d625f1 Move rarch_defer_core to menu_content.c and rename it
menu_content_defer_core
2016-01-25 05:38:22 +01:00
twinaphex 58b6499cca Cleanup 2016-01-25 05:33:42 +01:00
twinaphex 7627a6635a Cleanup 2016-01-25 05:32:23 +01:00
twinaphex 4381370f35 menu_content_load - cleanup 2016-01-25 05:31:21 +01:00
twinaphex 22bf74ff37 Start moving code to menu_content.c 2016-01-25 04:44:54 +01:00
twinaphex 9a6cfe9084 Create menu_content.c 2016-01-25 04:32:52 +01:00
twinaphex e92ee4fba7 action_ok_start_core - clear content path 2016-01-25 04:09:11 +01:00
twinaphex 78395c449b rarch_defer_core: cleanups 2016-01-25 03:52:41 +01:00
aliaspider a0d2272e88 (libretro-db) c_converter: use a hash based lookup in get_match_key. 2016-01-25 03:12:48 +01:00
twinaphex 24216cb54c Get rid of RETRO_ENVIRONMENT_EXEC_ESCAPE 2016-01-25 03:07:23 +01:00
twinaphex d71c782459 Start getting rid of RETRO_ENVIRONMENT_SET_LIBRETRO_PATH 2016-01-25 03:04:42 +01:00
twinaphex b7434c6564 Rename to file_archive_decompress_data 2016-01-25 02:52:03 +01:00
twinaphex 5c1bde0d20 Cleanup 2016-01-25 01:21:04 +01:00
twinaphex 4561a2a43c Revert "Cleanups"
This reverts commit 545501afa0.
2016-01-25 01:19:23 +01:00
twinaphex 545501afa0 Cleanups 2016-01-25 01:18:49 +01:00
twinaphex 0c87b100ea Cleanups 2016-01-25 01:17:18 +01:00
twinaphex 7bc6a0a333 (screenshot.c) Cleanups 2016-01-25 01:01:57 +01:00
twinaphex 5e8b075c15 Cleanups 2016-01-25 01:01:01 +01:00
twinaphex 1edfd798d9 read_7zip_file - move comment 2016-01-25 00:57:08 +01:00
twinaphex 61f0a03ead Simplify compressed_7zip_file_list_new 2016-01-25 00:55:16 +01:00
twinaphex 863b5306f8 CLeanups 2016-01-25 00:06:08 +01:00
twinaphex 9459cf6445 Rename zlib_ to file_archive_ 2016-01-24 22:17:11 +01:00
twinaphex 44ec82362e Cleanup 2016-01-24 22:06:01 +01:00
twinaphex 6878aa0844 Turn file_archive_inflate_data_to_file into static function 2016-01-24 22:04:21 +01:00
twinaphex aae1faf76f Move crc32_calculate to file_archive_zlib.c 2016-01-24 21:50:28 +01:00
twinaphex d53a0c5994 Cleanup 2016-01-24 21:36:01 +01:00
twinaphex 6580c817c2 Cleanup 2016-01-24 21:31:47 +01:00
twinaphex 2bc75715f7 Move zlib_deflate_init to file_archive_zlib.c 2016-01-24 21:26:02 +01:00
twinaphex 1a04bb4532 Add stream_decompress_data_to_file_init and stream-decompress_data_to_file_iterate to
file_archive_zlib.c
2016-01-24 21:23:33 +01:00
twinaphex fe1cbe6a5a (file_ops.c) Create stream_backend variable 2016-01-24 21:15:22 +01:00
twinaphex c1364648e7 Cleanup 2016-01-24 21:12:16 +01:00
twinaphex 7130f0c8d8 Move zlib_set_stream to file_archive_zlib 2016-01-24 21:06:53 +01:00
twinaphex 7d29929819 Move file_archive_inflate_init to file_archive_zlib 2016-01-24 20:18:52 +01:00
twinaphex fa00f51e80 Move zlib_deflate_data_to_file to file_archive_zlib.c 2016-01-24 20:15:17 +01:00
twinaphex d1ef6f032e Create stream_compress_free and add it to file_archive_zlib 2016-01-24 20:12:12 +01:00
twinaphex f264d3d29b Move zlib_stream_ functions to file_archive_zlib.c 2016-01-24 20:08:57 +01:00
twinaphex 064c5ffc3a Move zlib_stream_free to file_archive_zlib.c 2016-01-24 20:01:35 +01:00
twinaphex 9a23d95846 Add zlib_stream_new to file_archive_zlib.c 2016-01-24 19:57:31 +01:00
twinaphex 021d8e6af8 Make file_archive_get_default_file_backend public scope 2016-01-24 19:48:25 +01:00
twinaphex 6f3adc900d Style nits 2016-01-24 19:44:18 +01:00
twinaphex c4fa71ecc3 Move functions 2016-01-24 19:29:34 +01:00
twinaphex 3e3b57200a Cleanup 2016-01-24 19:25:30 +01:00
twinaphex 14e389bccf Improve ZLIB_TRANSFER_DEINIT case 2016-01-24 19:16:26 +01:00
twinaphex b4b686fdff Cleanups/style nits 2016-01-24 19:10:02 +01:00
twinaphex 5c2acea38c Do 'free' on handle->stream in case of an error in file_archive_inflate_data_to_file_init 2016-01-24 18:55:50 +01:00
twinaphex cc69cfe6a7 Use zlib_transfer_t * instead of void * 2016-01-24 18:53:37 +01:00
twinaphex cf94c0b6c0 Move file backend back to file_archive.c 2016-01-24 16:18:18 +01:00
twinaphex 5b343c2a32 (RPNG) Update 2016-01-24 07:47:27 +01:00
twinaphex c0047e643e update 2016-01-24 07:46:30 +01:00
twinaphex 44b4ba9a07 Update Griffin 2016-01-24 07:46:11 +01:00
twinaphex 3c2a45d923 Rename file_extract functions 2016-01-24 07:42:46 +01:00
twinaphex 552e78c9bc Rename file_extract to file_archive 2016-01-24 07:29:11 +01:00
twinaphex 5cfc9c1830 (OSX) Buildfix 2016-01-24 07:19:37 +01:00
twinaphex e0ceccc2b2 Remove unzip.c and ioapi.c now that we no longer need it on RA side 2016-01-24 07:05:45 +01:00
twinaphex da48d9d95a Avoid 'variable may be used uninitialized in this function' warning 2016-01-24 06:58:02 +01:00
twinaphex 09e5dc9c50 Cleanup 2016-01-24 06:55:26 +01:00
twinaphex 5c615f18e1 Turn zlib_inflate_init2 into static function 2016-01-24 06:52:14 +01:00
twinaphex 280e10195c Remove zlib_crc32_adjust - reuse zlib_crc32_calculate for this 2016-01-24 06:50:18 +01:00
twinaphex c6f7afbd9a Adjust zlib_crc32_calculate 2016-01-24 06:47:06 +01:00
twinaphex a0e9a4c68e Cleanups 2016-01-24 06:42:57 +01:00
twinaphex 8a254d0480 (Android) Fix build 2016-01-24 06:28:27 +01:00
twinaphex 78feccd0a3 Split up file extract zlib driver code to separate file 2016-01-24 06:18:53 +01:00
Twinaphex 9561332295 Merge pull request #2668 from aliaspider/master
(libretro-db) c_converter: more performance improvements.
2016-01-24 05:52:38 +01:00
aliaspider 032e67bedf nit. 2016-01-24 05:46:52 +01:00
aliaspider f2267db324 (libretro-db) speed-up the binary tree search by using precomputed hash
values when comparing the keys.
2016-01-24 05:45:54 +01:00
twinaphex 458e3a0fad Fix zlib_extract_first_content_file - we now pass a
new string to zlib_extract_first_content_file which will
fill in the extracted first file's path, we then add this
to temporary_content string list
2016-01-24 05:41:41 +01:00
twinaphex f4dfde8c47 Replace this with string_list_append 2016-01-24 05:34:17 +01:00
twinaphex 220b42332d Allocate temporary_content once before initing/loading content 2016-01-24 05:29:30 +01:00
twinaphex 20cf52a316 read_comprssed_file - cleanups 2016-01-24 04:27:20 +01:00
Twinaphex 6a7674dca1 Merge pull request #2667 from aliaspider/master
(libretro-db) c_converter: improve performance when merging multiple .dat files.
2016-01-24 04:21:21 +01:00
twinaphex fd42722c78 No longer need these files now 2016-01-24 04:21:18 +01:00
twinaphex 7d7c29f0f8 Reimplement read_zip_file - no longer depend on unzip.h 2016-01-24 04:18:47 +01:00
aliaspider 7fb86f47de (libretro-db) c_converter: implement a binary search tree, improves
performance when merging multiple dat files considerably.
2016-01-24 03:16:25 +01:00
twinaphex 6da1be9bc9 (file_ops) Rename archive_path to path 2016-01-24 03:11:14 +01:00
twinaphex a6b616e6d1 (file_ops.c) rename relative_path to needle 2016-01-24 03:07:49 +01:00
twinaphex a56f4ba298 cleanup 2016-01-24 01:59:43 +01:00
twinaphex 1745e71088 Add 'Start Core' option 2016-01-24 01:51:05 +01:00
twinaphex 5cd12a106e Add MENU_LABEL_START_CORE/MENU_LABEL_VALUE_START_CORE 2016-01-24 01:34:34 +01:00
twinaphex 23d99495a4 Add TODO/FIXME 2016-01-24 01:31:40 +01:00
twinaphex 77ebc96f37 Cleanup 2016-01-24 01:30:19 +01:00
twinaphex d085dae5bb Cleanups 2016-01-24 00:56:04 +01:00
twinaphex 6f221fb425 Rename menu_common_load_content to rarch_task_push_content_load_default 2016-01-24 00:51:17 +01:00
twinaphex 48317e66b9 Create task_content.c - WIP 2016-01-24 00:40:34 +01:00
twinaphex ec15a43cf1 N/A 2016-01-24 00:33:06 +01:00
aliaspider 4696d5675f (libretro-db) cleanups. 2016-01-24 00:24:56 +01:00
twinaphex 08f6c9c367 Cleanup compressed_file_list_new 2016-01-24 00:13:58 +01:00
twinaphex 9256cd2fbc Start adding ways to extract only one file from a ZIP 2016-01-24 00:12:05 +01:00
twinaphex a3ae0e9a90 Cleanup 2016-01-24 00:06:50 +01:00
twinaphex 2a8d984d89 Cleanups 2016-01-24 00:02:06 +01:00
twinaphex 87e4e5ecfe Cleanup 2016-01-23 23:41:46 +01:00
twinaphex b4956ac7c1 zlib_get_file_list- cleanup 2016-01-23 23:02:16 +01:00
twinaphex 9c131dfaad Cleanup 2016-01-23 23:00:35 +01:00
twinaphex 365b27caac Simplify zip_extract_cb 2016-01-23 22:57:21 +01:00
twinaphex e86f77692d read_compressed_file - cleanup 2016-01-23 22:35:13 +01:00
twinaphex 0b74956abe read_compressed_file - use string_list 2016-01-23 22:33:09 +01:00
twinaphex f4b22f9fdd Cleanup 2016-01-23 22:00:45 +01:00
twinaphex 97e5d5c61b Cleanups 2016-01-23 21:57:14 +01:00
twinaphex 91f7120604 Cleanup 2016-01-23 19:42:05 +01:00
twinaphex 894da665ad Cleanup 2016-01-23 19:40:43 +01:00
twinaphex 2d6142a01e N/A 2016-01-23 19:39:18 +01:00
twinaphex 473e6ff7b8 Call RETRO_ENVIRONMENT_SHUTDOWN if image can't be loaded 2016-01-23 15:45:40 +01:00
Alcaro 3de1e58592 (Imageviewer) React only to freshly pressed inputs. 2016-01-23 15:32:15 +01:00
Alcaro 328ec2cdca Clean this up. 2016-01-23 15:29:41 +01:00
Alcaro a2118e3938 Fix memory leak. 2016-01-23 15:23:44 +01:00
twinaphex 46156cf372 (libretrodb) Silence some warnings 2016-01-23 15:23:45 +01:00
Twinaphex 10026822fe Merge pull request #2666 from aliaspider/master
(libretro-db) add a dat->rdb converter in C.
2016-01-23 14:27:20 +01:00
aliaspider f7c8304dc3 (libretro-db) Makefile: fix the testlib.so target 2016-01-23 07:49:51 +01:00
aliaspider 8f8b123d06 (libretro-db) c_converter: re-enable tests 2016-01-23 06:42:40 +01:00
aliaspider c95205dbd3 (libretro-db) c_converter: add support for merging multiple dat files
into a single rdb file with a match-key.
2016-01-23 06:21:52 +01:00
twinaphex a15f2519a5 Cleanup 2016-01-23 05:10:47 +01:00
twinaphex df972d0fd5 (shader_glsl.c) Uniquely name functions 2016-01-23 04:53:20 +01:00
aliaspider 1fe10855e9 nit. 2016-01-23 04:26:19 +01:00
aliaspider 964f0f7926 (libretro-db) Makefile: add a DEBUG build option 2016-01-23 04:10:19 +01:00
aliaspider 3f66270fcb (libretro-db) c_converter: allow only one instance per key in a map
list.
2016-01-23 04:05:09 +01:00
aliaspider f8273ba5ba (libretro-db) add a dat->rdb converter in C.
still lacks match key support for merging multiple dat files.
2016-01-23 01:51:09 +01:00
aliaspider 86907fb3b7 (libretro-db) test-lib buildfix. 2016-01-23 01:33:44 +01:00
aliaspider 8207ab56c1 (libretro-db) plug memory leak. 2016-01-23 01:25:09 +01:00
aliaspider 3133b67da5 (libretro-db) cleanup Makefile. 2016-01-23 01:07:35 +01:00
aliaspider 7e4def44fd (libretro-db) prevent lua_converter from generating a random output each
run.
2016-01-23 00:57:51 +01:00
twinaphex 55798b0a58 Fix fall-through bug 2016-01-22 20:27:42 +01:00
twinaphex 9acf3e2309 (Imageviewer) Call RETRO_ENVIRONMENT_SET_GEOMETRY after loading image 2016-01-22 16:50:26 +01:00
twinaphex bb679fa9ca Move member around inside global struct 2016-01-22 16:11:10 +01:00
twinaphex 058c3acbdc Divorce content_crc from global struct 2016-01-22 16:09:48 +01:00
twinaphex 11f7735965 Create RARCH_CTL_INIT_SYSTEM_AV_INFO 2016-01-22 15:43:40 +01:00
twinaphex 87bdb34599 Get rid of some unused variables 2016-01-22 15:36:04 +01:00
twinaphex 372d673a26 Rename event_command to event_cmd_ctl - add second parameter 2016-01-22 15:34:43 +01:00
twinaphex 34eccf3d61 Add HAVE_LAKKA ifdef 2016-01-22 14:56:43 +01:00
twinaphex 107cb53b5a Remove unused variable 2016-01-22 14:43:11 +01:00
twinaphex 287fc9dd2c Cleanups 2016-01-22 14:42:23 +01:00
twinaphex c855e0f3d4 Cleanups 2016-01-22 14:41:22 +01:00
Twinaphex 4dd08e6382 Merge pull request #2660 from duduke/master
Reboot Menu Item
2016-01-22 14:39:21 +01:00
twinaphex 9b47e538c6 libretro_get_system_info_lib - report error if dynamic library
could not be loaded
2016-01-22 06:04:52 +01:00
twinaphex c5b13de208 Change default audio output latency to 128ms for Android 2016-01-22 05:00:22 +01:00
twinaphex 346074ee38 (imageviewer) Cut down on some code duplication 2016-01-22 01:58:21 +01:00
twinaphex eb43efb8e7 (imageviewer) Start creating async job queue 2016-01-22 01:52:53 +01:00
Twinaphex 86741a4eca Merge pull request #2664 from simias/resetfix
Don't lose the core-provided hw_render struct when reseting the context
2016-01-21 23:11:27 +01:00
Lionel Flandrin ad6f98dc15 Don't lose the core-provided hw_render struct when reseting the context 2016-01-21 23:06:13 +01:00
duduke 3aca34d3fb Make Reboot and Shutdown MenuItems available for Lakka only 2016-01-21 23:41:58 +02:00
radius 495ee3aaa5 try to fix android input bugs 2016-01-21 16:39:03 -05:00
twinaphex 8c15834c87 (Imageviewer) New controls:
Up   - +5 images, go to last image if wraparound
Down - -5 images, go back to first image if wraparound
2016-01-21 21:57:30 +01:00
twinaphex 076e55a945 Fix extraction of ZIP files 2016-01-21 21:33:52 +01:00
twinaphex df43c1f99b Try to avoid crash in gfx_ctx_get_metrics 2016-01-21 21:27:54 +01:00
twinaphex c66e721782 (imageviewer) Cleanups 2016-01-21 20:13:24 +01:00
twinaphex c4e821c3a1 (Image viewer) Controls:
Left     - Previous Image
Right    - Next Image
Y button - Toggle slideshow
2016-01-21 20:11:03 +01:00
twinaphex 652d94e9ee Move cores/image_core.c 2016-01-21 19:53:52 +01:00
twinaphex 7924823b32 Fix RUNLOOP_CTL_FRONTEND_KEY_EVENT_GET 2016-01-21 19:45:43 +01:00
twinaphex 4995490588 N/A pt. 2 2016-01-21 19:27:48 +01:00
twinaphex bbb7d1ad52 N/A 2016-01-21 19:26:10 +01:00
twinaphex 2af842401b (menu) Cleanups 2016-01-21 19:21:09 +01:00
twinaphex 191ff2e6d0 Cleanups 2016-01-21 19:19:14 +01:00
twinaphex 23d3af9c5a Nit 2016-01-21 19:13:10 +01:00
twinaphex 71df617bee Cleanup 2016-01-21 19:12:05 +01:00
twinaphex 126a492fd5 read_zip_file - cleanups 2016-01-21 04:05:35 +01:00
Twinaphex 6f49139eba (OSX) Buildfix 2016-01-21 04:02:15 +01:00
twinaphex ee74f697cd Rename setting 'Don't automatically start a core' to 'Automatically start core' 2016-01-21 03:56:02 +01:00
twinaphex 112f564a8f Change setting 2016-01-21 03:49:06 +01:00
twinaphex 99fe70a189 Fix crash in RETRO_ENVIRONMENT_SET_KEYBOARD_CALLBACK 2016-01-21 03:46:43 +01:00
twinaphex f4d3f47a0a Turn config_save_keybinds into static function, if 0 it out since
it is not used right now
2016-01-21 03:43:32 +01:00
twinaphex 42d0c1f213 Turn function into static one 2016-01-21 03:39:05 +01:00
twinaphex 2e6f71ee6b nits 2016-01-21 03:35:06 +01:00
twinaphex ae2f6f06a0 rarch_task_push_dbscan - prevent possible memleaks 2016-01-21 03:25:00 +01:00
twinaphex a187382ecf Nit 2016-01-21 03:23:14 +01:00
twinaphex 89481d6d2e Plug potential memleaks in rarch_task_push_http_transfer 2016-01-21 03:22:17 +01:00
twinaphex 1f039b53f3 (task_http.c) Cleanups/plug possible memory leaks 2016-01-21 03:19:14 +01:00
twinaphex e8d86ef013 Cleanups/indents 2016-01-21 03:16:48 +01:00
twinaphex c9fc8cd7d3 rarch_task_push_decompress - deal with possible memory leaks 2016-01-21 03:14:22 +01:00
twinaphex f9e389ac56 (Makefile.common) Rearrange conditional 2016-01-21 03:11:00 +01:00
twinaphex fbd2e9aa84 Use string_is_equal more 2016-01-21 02:48:00 +01:00
twinaphex 89b7fb5380 (content.c) Create error goto 2016-01-21 02:41:29 +01:00
twinaphex 33c47f3d39 Remove TODO 2016-01-21 02:39:06 +01:00
twinaphex 9095399aa8 (task_decompress.c) Use path_is_directory 2016-01-21 02:36:58 +01:00
twinaphex 25d63c3167 Get rid of some implicit memsets 2016-01-21 02:19:38 +01:00
twinaphex 6bf373a7c7 Divorce frontend_key_event from global variable 2016-01-21 01:52:02 +01:00
Alcaro 0d77ac3977 Fix code style mismatch. 2016-01-21 01:31:38 +01:00
Alcaro 1229ee0f1b Fix C89 build. 2016-01-21 01:27:49 +01:00
Alcaro 79b3794b93 Rewrite this for fewer malloc. 2016-01-21 01:24:29 +01:00
Alcaro c48dee0d7b If strequal checks for NULL, then striequal should too. 2016-01-21 01:09:05 +01:00
Alcaro 79edafc3aa Clean up those functions a bit. 2016-01-21 01:08:37 +01:00
Twinaphex 82dc569497 Simplify sring_is_empty 2016-01-21 01:04:07 +01:00
Twinaphex 447468a39d Change string_is_equal_noncase to just a strcasecmp wrapper for now 2016-01-21 01:00:47 +01:00
Twinaphex 9e2be63b75 Don't bake this in for __MACH__ 2016-01-21 00:56:47 +01:00
radius 89d9336b08 fix some shaders in GL 2016-01-20 18:52:24 -05:00
radius c32a5c8003 add slideshow mode to imageviewer core 2016-01-20 15:40:08 -05:00
twinaphex 63e2d13b8f Create string_is_equal_noncase - try not to use strcasecmp so much 2016-01-20 17:34:19 +01:00
Twinaphex de513211dc Update input_autodetect.c 2016-01-20 13:28:13 +01:00
twinaphex 09f06613ee (rewind.c) Cleanups - turn functions into static functions that were not used outside 2016-01-20 06:42:01 +01:00
twinaphex 644649853f CLeanup 2016-01-20 06:21:46 +01:00
twinaphex 157eb71606 Use string_is_equal more 2016-01-20 06:16:55 +01:00
twinaphex b638b9bee8 Cleanup 2016-01-20 06:11:47 +01:00
twinaphex d45fd36a0b Cleanup 2016-01-20 06:05:49 +01:00
twinaphex da124969fa More string_is_equal 2016-01-20 06:05:19 +01:00
twinaphex 6cb55231d9 use more string_is_equal 2016-01-20 05:21:52 +01:00
twinaphex 16c48fdc86 Start using string_is_equal more 2016-01-20 04:59:39 +01:00
twinaphex 528a03f6f4 Use string_is_equal more 2016-01-20 04:54:17 +01:00
twinaphex 64e43a9935 Start using string_is_equal in more places 2016-01-20 04:14:55 +01:00
twinaphex a767031651 Use string_is_equal in more places 2016-01-20 04:11:25 +01:00
twinaphex 454abdee48 stdstring - create string_is_equal 2016-01-20 04:07:24 +01:00
twinaphex da2ce48fb2 Silence warning 2016-01-20 03:44:01 +01:00
twinaphex e1ab34d884 Cleanups 2016-01-20 03:38:08 +01:00
twinaphex 9017fe8c50 Simplify this code 2016-01-20 03:32:03 +01:00
twinaphex 3abbe15637 Fix 'Dummy on Core Shutdown' setting 2016-01-20 03:31:19 +01:00
twinaphex 6c5b2ff0b5 Turn corrent_core_type into static variable 2016-01-20 03:15:50 +01:00
twinaphex 3190d8aba2 Create RARCH_CTL_IS_PLAIN_CORE 2016-01-20 03:10:52 +01:00
twinaphex d3d4bc3dda Get rid of texture_load/texture_unload callbacks for menu_display_driver 2016-01-20 02:54:55 +01:00
Twinaphex b1b8f2645f (Apple) Buildfix 2016-01-20 00:38:48 +01:00
twinaphex bcf5d3150e (D3D) Buildfix 2016-01-19 23:46:52 +01:00
twinaphex 2b8520f7ab Remove alot of unused variables 2016-01-19 23:46:09 +01:00
twinaphex 1eac61e9a0 Create RARCH_CTL_IS_DUMMY_CORE 2016-01-19 23:44:32 +01:00
twinaphex 01d58f8681 Create RARCH_CTL_IS_INITED, RARCH_CTL_SET_INITED, RARCH_CTL_UNSET_INITED 2016-01-19 23:26:47 +01:00
twinaphex 5643b7d3d8 Add CONTENT_CTL_DOES_NOT_NEED_CONTENT and CONTENT_CTL_SET_DOES_NOT_NEED_CONTENT 2016-01-19 23:15:19 +01:00
twinaphex a5af9b653a Turn global->content.inited into static local variable
and go through content_ctl
2016-01-19 22:57:18 +01:00
twinaphex 748959c8fc Cleanups 2016-01-19 22:52:31 +01:00
twinaphex b2426f30a6 (content.c) Start using string_is_empty 2016-01-19 22:41:15 +01:00
Alcaro 7b848483c9 Ifdef this thing, fixes #55. Again. 2016-01-19 22:34:45 +01:00
twinaphex f3312d191e Cleanups 2016-01-19 22:34:26 +01:00
twinaphex 4726e3cb4f Cleanups - add more actions to content_ctl 2016-01-19 22:33:37 +01:00
twinaphex 40beb7092a (content.c) Add fallthrough 2016-01-19 22:19:33 +01:00
twinaphex 4df0fb4e07 Turn temporary_content into static local variable of content_ctl 2016-01-19 22:17:54 +01:00
twinaphex ae704048bc Create CONTENT_CTL_INIT 2016-01-19 22:15:00 +01:00
twinaphex 2836c9755a Create content_ctl 2016-01-19 22:12:25 +01:00
Twinaphex 8702689aaa Use __MACH__ codepath now in retro_get_cpu_features for all OSX versions (Intel/PowerPC) and iOS in general 2016-01-19 19:04:29 +01:00
twinaphex 30c7494122 retro_get_cpu_features: __MACH__ - use only one len variable 2016-01-19 18:50:47 +01:00
twinaphex e048cfe016 Upon successful completion, 0 is returned for sysctlbyname 2016-01-19 18:45:22 +01:00
twinaphex c4fabd65a1 Try to come up with better detection 2016-01-19 18:44:24 +01:00
twinaphex 2df84f2887 (__MACH__) Re-set 'len' again after usage 2016-01-19 18:36:55 +01:00
twinaphex 310b2674f5 This requires no compile-time ifdefs 2016-01-19 18:33:29 +01:00
twinaphex dbf162db4e (PowerPC Mac) Add Altivec detection 2016-01-19 18:25:41 +01:00
twinaphex 1603ac1783 Take out ifdef around CPU NEON conditional 2016-01-19 18:12:04 +01:00
twinaphex 33b41e9aea (iOS) Check if NEON support is there 2016-01-19 18:04:26 +01:00
duduke 480519a6e0 Helped by Kivutar, added the missing lines to menu_hash_us.c 2016-01-19 19:04:01 +02:00
twinaphex d4102f2816 rename load_content_need_fullpath to load_content_from_compressed_archive 2016-01-19 17:43:37 +01:00
twinaphex 839bf31c2a Rename load_content_dont_need_fullpath to load_content_into_memory 2016-01-19 17:42:14 +01:00
twinaphex 85e6ba128f Move comment in load_content_dont_need_fullpath to appropriate
place
2016-01-19 17:41:14 +01:00
twinaphex e8e58d841f Cleanup init_content_file_extract 2016-01-19 17:34:47 +01:00
twinaphex 7405535f03 Move attr variable to init_content_file_set_attribs 2016-01-19 17:33:06 +01:00
twinaphex 73e97d119d Cleanups 2016-01-19 17:29:25 +01:00
twinaphex ddc3959e42 Simplify init_content_file_set_attribs 2016-01-19 17:27:02 +01:00
twinaphex 86906cf5e3 Cleanups 2016-01-19 17:24:42 +01:00
twinaphex 78d3bc5015 Call content_temporary_free if init_content_file errors out 2016-01-19 17:15:36 +01:00
twinaphex d7375b88e7 Create load_content_append_to_temporary_content 2016-01-19 17:14:57 +01:00
duduke b5591726c3 Modified hash values in menu_hash.h 2016-01-19 15:17:49 +02:00
duduke eecd14086b another stupid mistake... 2016-01-19 10:43:33 +02:00
duduke b284749016 forgot a comma at command_event.h 2016-01-19 10:06:12 +02:00
duduke ffffc50401 Corrected menu hashes by using djb2 util 2016-01-19 08:26:06 +02:00
twinaphex a8ee8ec0cd Put HAVE_ZLIB ifdef around init_content_file_extract 2016-01-19 01:30:28 +01:00
twinaphex e859c70a24 content.c - More cleanups 2016-01-19 01:22:37 +01:00
twinaphex 29ad7620aa load_content - call string_list_new later 2016-01-19 01:14:17 +01:00
twinaphex a79a2d6e1c Some more impicit memset removed 2016-01-19 00:50:15 +01:00
twinaphex c50e303116 (content.c) remove some implicit memsets 2016-01-19 00:47:27 +01:00
twinaphex 25187a52fb Fix error 2016-01-19 00:42:21 +01:00
twinaphex dd30dd84c3 Cleanups 2016-01-19 00:38:34 +01:00
twinaphex 9fce8e0b72 (content.c) More cleanups 2016-01-19 00:34:43 +01:00
twinaphex 6b12059c6e Create init_content_file_extract - cleanup init_content_file
function some more
2016-01-19 00:26:12 +01:00
twinaphex 2b7cef4fd6 Create init_content_file_subsystem 2016-01-19 00:16:49 +01:00
Alcaro 2ffe03f732 Fix creepy type error. 2016-01-18 23:24:22 +01:00
twinaphex b9b1f16d0f Only show 'OPEN_ARCHIVE' if HAVE_COMPRESSION is defined 2016-01-18 23:17:25 +01:00
twinaphex 3f3a305396 (CocoaTouch) Buildfix 2016-01-18 22:15:19 +01:00
twinaphex 0e1d00a85c (CocoaTouch) Cleanup 2016-01-18 22:13:35 +01:00
twinaphex 91de59c7ff (Cocoa) Cleanups 2016-01-18 22:10:16 +01:00
twinaphex cebea56412 Add UI Companion Enable setting 2016-01-18 21:35:09 +01:00
duduke 7de7c98b27 Added a reboot menu item 2016-01-18 21:31:38 +02:00
aliaspider 2ff854177c (WIN32) build fix 2016-01-18 20:03:34 +01:00
Twinaphex 2679ba55e1 Merge pull request #2657 from aliaspider/master
(WIN32) fix runtime availability check for PowerCreateRequest.
2016-01-18 18:11:26 +01:00
aliaspider ee8e05050a (WIN32) fix runtime availability check for PowerCreateRequest. 2016-01-18 18:05:49 +01:00
twinaphex 32d47d7bd2 Correct database paths 2016-01-18 15:29:47 +01:00
Twinaphex c68e824eb9 This AVFoundation code needs to work for both iOS and OSX 2016-01-18 13:19:28 +01:00
Twinaphex 0703aed61d Merge pull request #2654 from pponso1/master
iOS: Refactoring support for background Music.app.
2016-01-18 11:49:17 +01:00
Phillip Ponson 6ca58a4d6e iOS: Refactoring support for background Music.app. 2016-01-17 19:51:28 -06:00
twinaphex 4de1726bf6 Define CGFloat for versions lower or equal to OSX 10.4 2016-01-17 19:58:31 +01:00
1071 changed files with 207225 additions and 62905 deletions

No files matched your search

+3
View File
@@ -62,6 +62,9 @@ menu/driverspzarch.c
/media/shaders_glsl/
/obj-w32/
# Ctags
/tags
# Android
/pkg/android/phoenix/obj/
/pkg/android/phoenix/assets/
+6
View File
@@ -0,0 +1,6 @@
[submodule "deps/glslang/glslang"]
path = deps/glslang/glslang
url = git://github.com/KhronosGroup/glslang.git
[submodule "deps/SPIRV-Cross"]
path = deps/SPIRV-Cross
url = git://github.com/KhronosGroup/SPIRV-Cross
+24 -13
View File
@@ -1,4 +1,5 @@
HAVE_FILE_LOGGER=1
NEED_CXX_LINKER=0
MISSING_DECLS =0
ifneq ($(C90_BUILD),)
@@ -33,7 +34,7 @@ endif
HEADERS = $(wildcard */*/*.h) $(wildcard */*.h) $(wildcard *.h)
ifeq ($(MISSING_DECLS), 1)
DEFINES += -Werror=missing-declarations
DEFINES += -Werror=missing-declarations
endif
ifeq ($(HAVE_DYLIB), 1)
@@ -54,20 +55,26 @@ ifeq ($(DEBUG), 1)
OPTIMIZE_FLAG = -O0 -g
else
OPTIMIZE_FLAG = -O3 -ffast-math
ifneq ($(findstring Win32,$(OS)),)
LDFLAGS += -mwindows
endif
ifneq ($(findstring Win32,$(OS)),)
LDFLAGS += -mwindows
endif
endif
CFLAGS += -Wall $(OPTIMIZE_FLAG) $(INCLUDE_DIRS) $(DEBUG_FLAG) -I.
CXXFLAGS := $(CFLAGS) -std=c++98 -D__STDC_CONSTANT_MACROS
APPEND_CFLAGS := $(CFLAGS)
CXXFLAGS += $(APPEND_CFLAGS) -std=c++11 -D__STDC_CONSTANT_MACROS
OBJCFLAGS := $(CFLAGS) -D__STDC_CONSTANT_MACROS
ifeq ($(CXX_BUILD), 1)
LINK = $(CXX)
CFLAGS := $(CXXFLAGS) -xc++
CFLAGS := $(CXXFLAGS) -xc++
CFLAGS += -DCXX_BUILD
CXXFLAGS += -DCXX_BUILD
else
ifeq ($(findstring Win32,$(OS)),)
ifeq ($(NEED_CXX_LINKER),1)
LINK = $(CXX)
else ifeq ($(findstring Win32,$(OS)),)
LINK = $(CC)
else
# directx-related code is c++
@@ -113,10 +120,14 @@ endif
all: $(TARGET) config.mk
ifeq ($(MAKECMDGOALS),clean)
config.mk:
else
-include $(RARCH_OBJ:.o=.d)
config.mk: configure qb/*
@echo "config.mk is outdated or non-existing. Run ./configure again."
@exit 1
endif
retroarch: $(RARCH_OBJ)
@$(if $(Q), $(shell echo echo LD $@),)
@@ -127,7 +138,7 @@ $(OBJDIR)/%.o: %.c config.h config.mk
@$(if $(Q), $(shell echo echo CC $<),)
$(Q)$(CC) $(CFLAGS) $(DEFINES) -MMD -c -o $@ $<
$(OBJDIR)/%.o: %.cpp
$(OBJDIR)/%.o: %.cpp config.h config.mk
@mkdir -p $(dir $@)
@$(if $(Q), $(shell echo echo CXX $<),)
$(Q)$(CXX) $(CXXFLAGS) $(DEFINES) -MMD -c -o $@ $<
@@ -159,14 +170,14 @@ install: $(TARGET)
mkdir -p $(DESTDIR)$(PREFIX)/bin 2>/dev/null || /bin/true
mkdir -p $(DESTDIR)$(GLOBAL_CONFIG_DIR) 2>/dev/null || /bin/true
mkdir -p $(DESTDIR)$(PREFIX)/share/applications 2>/dev/null || /bin/true
mkdir -p $(DESTDIR)$(MAN_DIR) 2>/dev/null || /bin/true
mkdir -p $(DESTDIR)$(MAN_DIR)/man6 2>/dev/null || /bin/true
mkdir -p $(DESTDIR)$(PREFIX)/share/pixmaps 2>/dev/null || /bin/true
install -m755 $(TARGET) $(DESTDIR)$(PREFIX)/bin
install -m755 tools/cg2glsl.py $(DESTDIR)$(PREFIX)/bin/retroarch-cg2glsl
install -m644 retroarch.cfg $(DESTDIR)$(GLOBAL_CONFIG_DIR)/retroarch.cfg
install -m644 retroarch.desktop $(DESTDIR)$(PREFIX)/share/applications
install -m644 docs/retroarch.1 $(DESTDIR)$(MAN_DIR)
install -m644 docs/retroarch-cg2glsl.1 $(DESTDIR)$(MAN_DIR)
install -m644 docs/retroarch.6 $(DESTDIR)$(MAN_DIR)/man6
install -m644 docs/retroarch-cg2glsl.6 $(DESTDIR)$(MAN_DIR)/man6
install -m644 media/retroarch.svg $(DESTDIR)$(PREFIX)/share/pixmaps
uninstall:
@@ -174,8 +185,8 @@ uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/retroarch-cg2glsl
rm -f $(DESTDIR)$(GLOBAL_CONFIG_DIR)/retroarch.cfg
rm -f $(DESTDIR)$(PREFIX)/share/applications/retroarch.desktop
rm -f $(DESTDIR)$(MAN_DIR)/retroarch.1
rm -f $(DESTDIR)$(MAN_DIR)/retroarch-cg2glsl.1
rm -f $(DESTDIR)$(MAN_DIR)/man6/retroarch.6
rm -f $(DESTDIR)$(MAN_DIR)/man6/retroarch-cg2glsl.6
rm -f $(DESTDIR)$(PREFIX)/share/pixmaps/retroarch.svg
clean:
+352 -154
View File
@@ -18,8 +18,12 @@ ifeq ($(HAVE_LIBRETRODB),)
HAVE_LIBRETRODB = 1
endif
ifeq ($(HAVE_HID), 1)
DEFINES += -DHAVE_HID
endif
ifeq ($(HAVE_LIBRETRODB), 1)
DEFINES += -DHAVE_LIBRETRODB
DEFINES += -DHAVE_LIBRETRODB
endif
ifeq ($(HAVE_FBO), 1)
@@ -44,6 +48,11 @@ ifeq ($(GL_DEBUG), 1)
CXXFLAGS += -DGL_DEBUG
endif
ifeq ($(VULKAN_DEBUG), 1)
CFLAGS += -DVULKAN_DEBUG
CXXFLAGS += -DVULKAN_DEBUG
endif
ifeq ($(HAVE_HARD_FLOAT), 1)
DEFINES += -mfloat-abi=hard
endif
@@ -56,6 +65,10 @@ ifeq ($(HAVE_FILE_LOGGER), 1)
CFLAGS += -DHAVE_FILE_LOGGER
endif
ifeq ($(HAVE_SHADERPIPELINE), 1)
CFLAGS += -DHAVE_SHADERPIPELINE
endif
CFLAGS += -I./libretro-common/include
# Switches
@@ -65,6 +78,7 @@ CFLAGS += -I./libretro-common/include
ifneq ($(findstring BSD,$(OS)),)
BSD_LOCAL_INC += -I/usr/local/include
OBJ += frontend/drivers/platform_bsd.o
endif
ifneq ($(findstring Darwin,$(OS)),)
@@ -77,12 +91,13 @@ endif
ifneq ($(findstring Linux,$(OS)),)
LIBS += -lrt
OBJ += input/drivers/linuxraw_input.o \
input/common/linux_common.o \
input/common/epoll_common.o \
input/common/linux_common.o \
input/common/epoll_common.o \
input/drivers_joypad/linuxraw_joypad.o \
frontend/drivers/platform_linux.o
endif
ifeq ($(findstring Haiku,$(OS)),)
LIBS += -lm
DEBUG_FLAG = -g
@@ -107,44 +122,44 @@ OBJ += frontend/frontend.o \
frontend/drivers/platform_null.o \
ui/ui_companion_driver.o \
ui/drivers/ui_null.o \
libretro_version_1.o \
ui/drivers/null/ui_null_window.o \
ui/drivers/null/ui_null_browser_window.o \
ui/drivers/null/ui_null_msg_window.o \
ui/drivers/null/ui_null_application.o \
core_impl.o \
retroarch.o \
input/input_keyboard.o \
command_event.o \
input/input_keyboard.o \
command.o \
msg_hash.o \
intl/msg_hash_de.o \
intl/msg_hash_eo.o \
intl/msg_hash_es.o \
intl/msg_hash_fr.o \
intl/msg_hash_it.o \
intl/msg_hash_nl.o \
intl/msg_hash_pl.o \
intl/msg_hash_pt.o \
intl/msg_hash_us.o \
runloop.o \
tasks/tasks.o \
libretro-common/algorithms/mismatch.o \
libretro-common/queues/task_queue.o \
tasks/task_content.o \
tasks/task_save_ram.o \
tasks/task_save_state.o \
tasks/task_file_transfer.o \
content.o \
libretro-common/encodings/encoding_utf.o \
libretro-common/file/file_list.o \
libretro-common/file/dir_list.o \
tasks/task_image.o \
libretro-common/encodings/encoding_utf.o \
libretro-common/lists/file_list.o \
libretro-common/lists/dir_list.o \
libretro-common/file/retro_dirent.o \
libretro-common/file/retro_file.o \
libretro-common/streams/file_stream.o \
libretro-common/streams/interface_stream.o \
libretro-common/streams/memory_stream.o \
libretro-common/file/retro_stat.o \
libretro-common/string/string_list.o \
libretro-common/lists/string_list.o \
libretro-common/string/stdstring.o \
libretro-common/memmap/memalign.o \
dir_list_special.o \
string_list_special.o \
file_ops.o \
list_special.o \
libretro-common/file/nbio/nbio_stdio.o \
libretro-common/file/file_path.o \
file_path_special.o \
file_path_str.o \
libretro-common/hash/rhash.o \
audio/audio_driver.o \
input/input_driver.o \
input/input_hid_driver.o \
gfx/video_common.o \
gfx/video_coord_array.o \
gfx/video_driver.o \
camera/camera_driver.o \
location/location_driver.o \
@@ -154,7 +169,7 @@ OBJ += frontend/frontend.o \
dynamic.o \
cores/dynamic_dummy.o \
libretro-common/queues/message_queue.o \
rewind.o \
managers/state_manager.o \
gfx/drivers_font_renderer/bitmapfont.o \
input/input_autodetect.o \
input/input_joypad_driver.o \
@@ -164,15 +179,15 @@ OBJ += frontend/frontend.o \
tasks/task_overlay.o \
input/input_overlay.o \
patch.o \
libretro-common/queues/fifo_buffer.o \
core_options.o \
libretro-common/queues/fifo_queue.o \
managers/core_option_manager.o \
libretro-common/compat/compat_fnmatch.o \
libretro-common/compat/compat_posix_string.o \
cheats.o \
libretro-common/compat/compat_posix_string.o \
managers/cheat_manager.o \
core_info.o \
libretro-common/file/config_file.o \
libretro-common/file/config_file_userdata.o \
screenshot.o \
config_file_userdata.o \
tasks/task_screenshot.o \
libretro-common/gfx/scaler/scaler.o \
gfx/drivers_shader/shader_null.o \
gfx/video_shader_driver.o \
@@ -184,8 +199,9 @@ OBJ += frontend/frontend.o \
gfx/video_filter.o \
audio/audio_resampler_driver.o \
audio/audio_dsp_filter.o \
audio/drivers_resampler/sinc.o \
audio/drivers_resampler/nearest.o \
audio/drivers_resampler/sinc_resampler.o \
audio/drivers_resampler/nearest_resampler.o \
audio/drivers_resampler/null_resampler.o \
audio/drivers_resampler/cc_resampler.o \
location/drivers/nulllocation.o \
camera/drivers/nullcamera.o \
@@ -194,13 +210,26 @@ OBJ += frontend/frontend.o \
input/drivers/nullinput.o \
input/drivers_hid/null_hid.o \
input/drivers_joypad/null_joypad.o \
input/drivers_joypad/hid_joypad.o \
playlist.o \
movie.o \
record/record_driver.o \
record/drivers/record_null.o \
performance.o \
verbosity.o
libretro-common/features/features_cpu.o \
performance_counters.o \
verbosity.o
ifeq ($(HAVE_LANGEXTRA), 1)
DEFINES += -DHAVE_LANGEXTRA
OBJ += intl/msg_hash_de.o \
intl/msg_hash_eo.o \
intl/msg_hash_es.o \
intl/msg_hash_fr.o \
intl/msg_hash_it.o \
intl/msg_hash_nl.o \
intl/msg_hash_pl.o \
intl/msg_hash_pt.o
endif
ifneq ($(HAVE_GETOPT_LONG), 1)
OBJ += libretro-common/compat/compat_getopt.o
@@ -214,19 +243,37 @@ ifneq ($(HAVE_STRL), 1)
OBJ += libretro-common/compat/compat_strl.o
endif
OBJ += gfx/image/image.o
OBJ += libretro-common/formats/image_texture.o
ifeq ($(HAVE_IMAGEVIEWER), 1)
DEFINES += -DHAVE_IMAGEVIEWER
OBJ += cores/image_core.o
OBJ += cores/libretro-imageviewer/image_core.o
endif
# Qt
ifeq ($(HAVE_QT), 1)
OBJ += ui/drivers/ui_qt.o
HAVE_QT_WRAPPER=0
OBJ += ui/drivers/ui_qt.o \
ui/drivers/qt/ui_qt_application.o \
ui/drivers/qt/ui_qt_window.o \
ui/drivers/qt/ui_qt_browser_window.o \
ui/drivers/qt/ui_qt_msg_window.o
ifneq ($(findstring Linux,$(OS)),)
DEFINES += -I/usr/include/qt -fPIC
endif
# TODO/FIXME - figure out which libraries we need to link against
LIBS += -lQt5Quick -lQt5Widgets -lQt5Gui -lQt5Qml -lQt5Network -lQt5Core -lglu32 -lopengl32 -L./ui/drivers/qt/wrapper/build/release -lwrapper
LIBS += -lQt5Quick -lQt5Widgets -lQt5Gui -lQt5Qml -lQt5Network -lQt5Core -L./ui/drivers/qt/wrapper/build/release
ifeq ($(HAVE_QT_WRAPPER), 1)
LIBS += -lwrapper
endif
endif
ifeq ($(HAVE_SSA),1)
LIBS += -lass
endif
# LibretroDB
@@ -281,8 +328,11 @@ ifeq ($(HAVE_OSS_BSD), 1)
endif
ifeq ($(HAVE_ALSA), 1)
OBJ += audio/drivers/alsa.o \
audio/drivers/alsathread.o
OBJ += audio/drivers/alsa.o
ifeq ($(HAVE_THREADS), 1)
OBJ += audio/drivers/alsathread.o
endif
LIBS += $(ALSA_LIBS)
DEFINES += $(ALSA_CFLAGS)
endif
@@ -329,6 +379,7 @@ ifeq ($(HAVE_RSOUND), 1)
endif
ifeq ($(HAVE_DSOUND), 1)
HAVE_DIRECTX=1
OBJ += audio/drivers/dsound.o
DEFINES += -DHAVE_DSOUND
LIBS += -ldxguid -ldsound
@@ -343,24 +394,42 @@ endif
# Audio Resamplers
ifeq ($(HAVE_NEON),1)
OBJ += audio/drivers_resampler/sinc_neon.o \
OBJ += audio/drivers_resampler/sinc_resampler_neon.o \
audio/drivers_resampler/cc_resampler_neon.o
# When compiled without this, tries to attempt to compile sinc lerp,
# which will error out
#
# TODO - we need to make quality levels of sinc
# runtime toggleable instead of going by compile-time
# defines
#
# TODO - we need to make quality levels of sinc
# runtime toggleable instead of going by compile-time
# defines
DEFINES += -DSINC_LOWER_QUALITY
endif
OBJ += audio/audio_utils.o
OBJ += libretro-common/conversion/s16_to_float.o \
libretro-common/conversion/float_to_s16.o
ifeq ($(HAVE_NEON),1)
OBJ += audio/audio_utils_neon.o
OBJ += libretro-common/conversion/s16_to_float_neon.o \
libretro-common/conversion/float_to_s16_neon.o
endif
ifneq ($(findstring Win32,$(OS)),)
HAVE_VULKAN=1
DEFINES += -DHAVE_VULKAN
endif
HW_CONTEXT_MENU_DRIVERS=$(HAVE_RGUI)
ifeq ($(HW_CONTEXT_MENU_DRIVERS),0)
ifeq ($(HAVE_GL_CONTEXT),1)
HW_CONTEXT_MENU_DRIVERS=1
endif
ifeq ($(HAVE_VULKAN),1)
HW_CONTEXT_MENU_DRIVERS=1
endif
endif
# XMB and MaterialUI are always enabled if supported and not explicitly disabled
ifeq ($(HAVE_RGUI)$(HAVE_GL_CONTEXT), 11)
ifeq ($(HW_CONTEXT_MENU_DRIVERS), 1)
ifeq ($(HAVE_ZARCH),)
HAVE_ZARCH = 1
endif
@@ -369,12 +438,17 @@ ifeq ($(HAVE_RGUI)$(HAVE_GL_CONTEXT), 11)
HAVE_MATERIALUI = 1
endif
#ifeq ($(HAVE_NUKLEAR),)
#HAVE_NUKLEAR = 1
#endif
ifeq ($(HAVE_XMB),)
HAVE_XMB = 1
endif
else
HAVE_ZARCH = 0
HAVE_MATERIALUI = 0
#HAVE_NUKLEAR = 0
HAVE_XMB = 0
endif
@@ -386,6 +460,16 @@ ifeq ($(HAVE_MATERIALUI), 1)
OBJ += menu/drivers/materialui.o
DEFINES += -DHAVE_MATERIALUI
endif
ifeq ($(HAVE_NUKLEAR), 1)
OBJ += menu/drivers/nuklear/nk_common.o
OBJ += menu/drivers/nuklear/nk_menu.o
OBJ += menu/drivers/nuklear/nk_wnd_main.o
OBJ += menu/drivers/nuklear/nk_wnd_file_picker.o
OBJ += menu/drivers/nuklear/nk_wnd_shader_parameters.o
OBJ += menu/drivers/nuklear/nk_wnd_settings.o
OBJ += menu/drivers/nuklear.o
DEFINES += -DHAVE_NUKLEAR
endif
ifeq ($(HAVE_ZARCH), 1)
OBJ += menu/drivers/zarch.o
DEFINES += -DHAVE_ZARCH
@@ -398,6 +482,7 @@ endif
ifeq ($(HAVE_LAKKA), 1)
DEFINES += -DHAVE_LAKKA
DEFINES += -DLAKKA_PROJECT=$(LAKKA_PROJECT)
endif
ifeq ($(HAVE_MENU_COMMON), 1)
@@ -406,17 +491,9 @@ ifeq ($(HAVE_MENU_COMMON), 1)
else
PSEUDO_NS :=
endif
OBJ += menu/menu_hash.o \
menu/menu_driver.o \
menu/intl/menu_hash_de.o \
menu/intl/menu_hash_es.o \
menu/intl/menu_hash_eo.o \
menu/intl/menu_hash_fr.o \
menu/intl/menu_hash_it.o \
menu/intl/menu_hash_nl.o \
menu/intl/menu_hash_pl.o \
menu/intl/menu_hash_pt.o \
menu/intl/menu_hash_us$(PSEUDO_NS).o \
OBJ += menu/menu_driver.o \
menu/menu_content.o \
menu/menu_input.o \
menu/menu_entry.o \
menu/menu_entries.o \
@@ -435,6 +512,7 @@ ifeq ($(HAVE_MENU_COMMON), 1)
menu/cbs/menu_cbs_deferred_push.o \
menu/cbs/menu_cbs_scan.o \
menu/cbs/menu_cbs_get_value.o \
menu/cbs/menu_cbs_label.o \
menu/cbs/menu_cbs_title.o \
menu/cbs/menu_cbs_up.o \
menu/cbs/menu_cbs_down.o \
@@ -449,6 +527,8 @@ endif
ifeq ($(UTF8), 1)
DEFINES += -DHAVE_UTF8
OBJ += intl/msg_hash_ru.o
DEFINES += -finput-charset=UTF-8
endif
ifeq ($(HAVE_STB_FONT), 1)
@@ -462,36 +542,27 @@ ifeq ($(HAVE_FREETYPE), 1)
endif
ifeq ($(HAVE_THREADS), 1)
OBJ += autosave.o \
libretro-common/rthreads/rthreads.o \
libretro-common/rthreads/rsemaphore.o \
libretro-common/rthreads/async_job.o \
gfx/video_thread_wrapper.o \
audio/audio_thread_wrapper.o
OBJ += libretro-common/rthreads/rthreads.o \
libretro-common/rthreads/rsemaphore.o \
gfx/video_thread_wrapper.o \
audio/audio_thread_wrapper.o
DEFINES += -DHAVE_THREADS
ifeq ($(findstring Haiku,$(OS)),)
LIBS += -lpthread
endif
endif
ifeq ($(HAVE_COMMAND), 1)
OBJ += command.o
endif
ifeq ($(HAVE_NETWORK_GAMEPAD), 1)
OBJ += remote.o
endif
#Input
ifeq ($(HAVE_WAYLAND), 1)
#OBJ += input/drivers/wayland.o
OBJ += gfx/drivers_context/wayland_ctx.o
DEFINES += $(WAYLAND_CFLAGS)
LIBS += $(WAYLAND_LIBS)
endif
#Input
ifeq ($(HAVE_DINPUT), 1)
LIBS += -ldinput8 -ldxguid -lole32
HAVE_DIRECTX=1
DEFINES += -DHAVE_DINPUT
OBJ += input/drivers/dinput.o \
input/drivers_joypad/dinput_joypad.o
@@ -503,19 +574,36 @@ ifeq ($(HAVE_XINPUT), 1)
input/autoconf/builtin_win.o
endif
ifeq ($(HAVE_OPENDINGUX_FBDEV), 1)
OBJ += gfx/drivers_context/opendingux_fbdev_ctx.o
DEFINES += $(EGL_CFLAGS)
LIBS += $(EGL_LIBS)
endif
ifeq ($(HAVE_X11), 1)
OBJ += input/common/input_x11_common.o \
input/drivers/x11_input.o \
input/drivers/x11_input.o \
gfx/common/x11_common.o \
input/drivers_keyboard/keyboard_event_x11.o
LIBS += $(X11_LIBS) $(XEXT_LIBS) $(XF86VM_LIBS) $(XINERAMA_LIBS)
DEFINES += $(X11_CFLAGS) $(XEXT_CFLAGS) $(XF86VM_CFLAGS) $(XINERAMA_CFLAGS)
ifeq ($(HAVE_XCB),1)
LIBS += -lX11-xcb
endif
ifneq ($(HAVE_GLES), 1)
OBJ += gfx/drivers_context/x_ctx.o
endif
endif
ifeq ($(HAVE_XCB),1)
DEFINES += $(XCB_CFLAGS)
LIBS += $(XCB_LIBS)
endif
ifeq ($(HAVE_XKBCOMMON), 1)
DEFINES += $(XKBCOMMON_CFLAGS)
OBJ += input/drivers_keyboard/keyboard_event_xkb.o
OBJ += input/drivers_keyboard/keyboard_event_xkb.o
LIBS += $(XKBCOMMON_LIBS)
endif
@@ -523,37 +611,46 @@ ifeq ($(HAVE_UDEV), 1)
DEFINES += $(UDEV_CFLAGS)
LIBS += $(UDEV_LIBS)
OBJ += input/drivers/udev_input.o \
input/common/udev_common.o \
input/drivers_keyboard/keyboard_event_udev.o \
input/drivers_keyboard/keyboard_event_udev.o \
input/drivers_joypad/udev_joypad.o
endif
ifeq ($(HAVE_LIBUSB), 1)
DEFINES += -DHAVE_LIBUSB
OBJ += input/drivers_hid/libusb_hid.o
LIBS += -lusb-1.0
HAVE_HID = 1
ifeq ($(HAVE_THREADS), 1)
ifeq ($(HAVE_HID), 1)
DEFINES += -DHAVE_LIBUSB
OBJ += input/drivers_hid/libusb_hid.o
LIBS += -lusb-1.0
endif
endif
endif
ifeq ($(HAVE_IOHIDMANAGER), 1)
DEFINES += -DHAVE_IOHIDMANAGER
OBJ += input/drivers_hid/iohidmanager_hid.o
HAVE_HID = 1
LIBS += -framework IOKit
ifeq ($(HAVE_HID), 1)
DEFINES += -DHAVE_IOHIDMANAGER
OBJ += input/drivers_hid/iohidmanager_hid.o
LIBS += -framework IOKit
endif
endif
ifeq ($(HAVE_CORELOCATION), 1)
DEFINES += -DHAVE_CORELOCATION
LIBS += -framework CoreLocation
DEFINES += -DHAVE_CORELOCATION
LIBS += -framework CoreLocation
endif
ifeq ($(HAVE_HID), 1)
DEFINES += -DHAVE_HID
OBJ += input/connect/joypad_connection.o \
DEFINES += -DHAVE_HID
OBJ += input/input_hid_driver.o \
input/drivers_joypad/hid_joypad.o \
input/connect/joypad_connection.o \
input/connect/connect_ps2adapter.o \
input/connect/connect_ps3.o \
input/connect/connect_ps4.o \
input/connect/connect_wii.o \
input/connect/connect_wiiupro.o
input/connect/connect_nesusb.o \
input/connect/connect_snesusb.o \
input/connect/connect_wiiupro.o \
input/connect/connect_wiiugca.o
endif
ifeq ($(HAVE_PARPORT), 1)
@@ -563,7 +660,11 @@ endif
# Companion UI
ifneq ($(findstring Win32,$(OS)),)
OBJ += ui/drivers/ui_win32.o
OBJ += ui/drivers/ui_win32.o \
ui/drivers/win32/ui_win32_window.o \
ui/drivers/win32/ui_win32_browser_window.o \
ui/drivers/win32/ui_win32_msg_window.o \
ui/drivers/win32/ui_win32_application.o
endif
# Video
@@ -571,8 +672,21 @@ endif
OBJ += gfx/video_context_driver.o \
gfx/drivers_context/gfx_null_ctx.o \
gfx/video_state_tracker.o \
libretro-common/gfx/math/matrix_4x4.o \
libretro-common/gfx/math/matrix_3x3.o
libretro-common/gfx/math/vector_2.o \
libretro-common/gfx/math/vector_3.o \
libretro-common/gfx/math/matrix_4x4.o \
libretro-common/gfx/math/matrix_3x3.o
ifeq ($(HAVE_KMS), 1)
HAVE_AND_WILL_USE_DRM = 1
OBJ += gfx/drivers_context/drm_ctx.o
DEFINES += $(GBM_CFLAGS) $(DRM_CFLAGS) $(EGL_CFLAGS)
LIBS += $(GBM_LIBS) $(DRM_LIBS) $(EGL_LIBS)
endif
ifeq ($(HAVE_PLAIN_DRM), 1)
OBJ += gfx/drivers/drm_gfx.o
endif
ifeq ($(HAVE_GL_CONTEXT), 1)
DEFINES += -DHAVE_OPENGL -DHAVE_GLSL
@@ -580,16 +694,9 @@ ifeq ($(HAVE_GL_CONTEXT), 1)
gfx/common/gl_common.o \
gfx/drivers_font/gl_raster_font.o \
libretro-common/glsym/rglgen.o
ifeq ($(HAVE_MENU_COMMON), 1)
OBJ += menu/drivers_display/menu_display_gl.o
endif
ifeq ($(HAVE_KMS), 1)
HAVE_AND_WILL_USE_DRM = 1
OBJ += gfx/drivers_context/drm_egl_ctx.o
DEFINES += $(GBM_CFLAGS) $(DRM_CFLAGS) $(EGL_CFLAGS)
LIBS += $(GBM_LIBS) $(DRM_LIBS) $(EGL_LIBS)
ifeq ($(HAVE_MENU_COMMON), 1)
OBJ += menu/drivers_display/menu_display_gl.o
endif
ifeq ($(HAVE_VIDEOCORE), 1)
@@ -620,16 +727,17 @@ ifeq ($(HAVE_GL_CONTEXT), 1)
DEFINES += $(EGL_CFLAGS)
LIBS += $(EGL_LIBS)
endif
ifneq ($(HAVE_GLES), 1)
OBJ += gfx/drivers_context/glx_ctx.o
endif
endif
ifeq ($(HAVE_WAYLAND), 1)
ifeq ($(HAVE_EGL), 1)
OBJ += gfx/drivers_context/wayland_ctx.o
endif
endif
ifeq ($(HAVE_FFMPEG), 1)
ifneq ($(C89_BUILD), 1)
ifneq ($(HAVE_GLES), 1)
OBJ += cores/libretro-ffmpeg/fft/fft.o
DEFINES += -Ideps -DHAVE_GL_FFT
NEED_CXX_LINKER=1
endif
endif
endif
ifeq ($(HAVE_GLES), 1)
LIBS += $(GLES_LIBS)
@@ -641,7 +749,7 @@ ifeq ($(HAVE_GL_CONTEXT), 1)
else
DEFINES += -DHAVE_GL_SYNC
OBJ += libretro-common/glsym/glsym_gl.o
GL_LIBS := -lGL
GL_LIBS := -lGL
ifeq ($(OSX), 1)
GL_LIBS := -framework OpenGL
OBJ += gfx/drivers_context/cgl_ctx.o
@@ -649,7 +757,7 @@ ifeq ($(HAVE_GL_CONTEXT), 1)
GL_LIBS := -lopengl32 -lgdi32 -lcomdlg32 -lcomctl32
OBJ += gfx/drivers_context/wgl_ctx.o
endif
LIBS += $(GL_LIBS)
LIBS += $(GL_LIBS)
endif
OBJ += gfx/drivers_shader/shader_glsl.o
@@ -657,7 +765,7 @@ ifeq ($(HAVE_GL_CONTEXT), 1)
endif
ifeq ($(HAVE_EGL), 1)
OBJ += gfx/common/egl_common.o
OBJ += gfx/common/egl_common.o
endif
ifeq ($(HAVE_SDL2), 1)
@@ -693,6 +801,64 @@ ifeq ($(HAVE_SDL2), 1)
HAVE_SDL = 0
endif
ifeq ($(HAVE_VULKAN), 1)
ifneq ($(findstring Win32,$(OS)),)
GLSLANG_PLATFORM := Windows
else
GLSLANG_PLATFORM := Unix
endif
GLSLANG_SOURCES := \
$(wildcard deps/glslang/*.cpp) \
$(wildcard deps/glslang/glslang/SPIRV/*.cpp) \
$(wildcard deps/glslang/glslang/glslang/GenericCodeGen/*.cpp) \
$(wildcard deps/glslang/glslang/OGLCompilersDLL/*.cpp) \
$(wildcard deps/glslang/glslang/glslang/MachineIndependent/*.cpp) \
$(wildcard deps/glslang/glslang/glslang/MachineIndependent/preprocessor/*.cpp) \
$(wildcard deps/glslang/glslang/hlsl/*.cpp) \
$(wildcard deps/glslang/glslang/glslang/OSDependent/$(GLSLANG_PLATFORM)/*.cpp)
SPIRV_CROSS_SOURCES := deps/SPIRV-Cross/spirv_cross.cpp
ifneq ($(findstring Win32,$(OS)),)
# Trivial temporary workaround for MinGW and glslang.
CXXFLAGS += -fpermissive
endif
DEFINES += \
-Ideps/glslang/glslang/glslang/OSDependent/$(GLSLANG_PLATFORM) \
-Ideps/glslang/glslang/OGLCompilersDLL \
-Ideps/glslang/glslang \
-Ideps/glslang/glslang/glslang/MachineIndependent \
-Ideps/glslang/glslang/glslang/Public \
-Ideps/glslang/glslang/SPIRV \
-Ideps/glslang \
-Ideps/SPIRV-Cross
CXXFLAGS += -Wno-switch -Wno-sign-compare -fno-strict-aliasing -Wno-maybe-uninitialized -Wno-reorder -Wno-parentheses -Igfx/include
CFLAGS += -Igfx/include
GLSLANG_OBJ := $(GLSLANG_SOURCES:.cpp=.o)
SPIRV_CROSS_OBJ := $(SPIRV_CROSS_SOURCES:.cpp=.o)
OBJ += gfx/drivers/vulkan.o \
gfx/common/vulkan_common.o \
libretro-common/vulkan/vulkan_symbol_wrapper.o \
gfx/drivers_font/vulkan_raster_font.o \
gfx/drivers_shader/shader_vulkan.o \
gfx/drivers_shader/glslang_util.o \
gfx/drivers_shader/slang_reflection.o \
$(GLSLANG_OBJ) \
$(SPIRV_CROSS_OBJ)
ifeq ($(HAVE_VULKAN_KHR_DISPLAY), 1)
OBJ += gfx/drivers_context/khr_display_ctx.o
endif
ifeq ($(HAVE_MENU_COMMON), 1)
OBJ += menu/drivers_display/menu_display_vulkan.o
endif
LIBS += -lstdc++
endif
ifeq ($(HAVE_OMAP), 1)
OBJ += gfx/drivers/omap_gfx.o
endif
@@ -702,16 +868,16 @@ ifeq ($(HAVE_EXYNOS), 1)
memory/neon/memcpy-neon.o
LIBS += $(DRM_LIBS) $(EXYNOS_LIBS)
DEFINES += $(DRM_CFLAGS) $(EXYNOS_CFLAGS)
HAVE_AND_WILL_USE_DRM = 1
HAVE_AND_WILL_USE_DRM = 1
endif
ifeq ($(HAVE_AND_WILL_USE_DRM), 1)
OBJ += gfx/common/drm_common.o
OBJ += gfx/common/drm_common.o
endif
ifeq ($(HAVE_DISPMANX), 1)
OBJ += gfx/drivers/dispmanx_gfx.o
HAVE_VIDEOCORE = 1
HAVE_VIDEOCORE = 1
LIBS += $(DISPMANX_LIBS)
DEFINES += $(DISPMANX_CFLAGS)
endif
@@ -733,14 +899,8 @@ ifeq ($(HAVE_XVIDEO), 1)
DEFINES += $(XVIDEO_CFLAGS)
endif
ifeq ($(HAVE_XSHM), 1)
OBJ += gfx/drivers/xshm.o
LIBS += $(XSHM_LIBS)
DEFINES += $(XSHM_CFLAGS)
endif
ifeq ($(HAVE_CG), 1)
DEFINES += -DHAVE_CG
DEFINES += -DHAVE_CG
OBJ += gfx/drivers_shader/shader_gl_cg.o
LIBS += $(CG_LIBS)
endif
@@ -752,12 +912,13 @@ ifeq ($(HAVE_D3D9), 1)
gfx/common/d3d_common.o \
gfx/drivers_font/d3d_w32_font.o \
gfx/drivers_context/d3d_ctx.o
HAVE_DIRECTX=1
DEFINES += -DHAVE_D3D -DHAVE_D3D9
LIBS += -ld3d9 -ld3dx9 -ldxguid
ifeq ($(HAVE_MENU_COMMON), 1)
OBJ += menu/drivers_display/menu_display_d3d.o
endif
OBJ += menu/drivers_display/menu_display_d3d.o
endif
ifeq ($(HAVE_CG), 1)
LIBS += -lcgD3D9
@@ -797,31 +958,44 @@ endif
ifeq ($(HAVE_ZLIB), 1)
OBJ += libretro-common/file/file_extract.o \
OBJ += libretro-common/file/archive_file.o \
libretro-common/file/archive_file_zlib.o \
tasks/task_decompress.o
OBJ += $(ZLIB_OBJS)
DEFINES += -DHAVE_ZLIB
HAVE_RPNG = 1
HAVE_COMPRESSION = 1
ifeq ($(WANT_ZLIB), 1)
DEFINES += -DWANT_ZLIB
else
LIBS += -lz
HAVE_ZLIB_DEFLATE = 1
HAVE_ZLIB_DEFLATE = 1
endif
endif
ifdef HAVE_RPNG
DEFINES += -DHAVE_RPNG
ifeq ($(HAVE_RTGA), 1)
DEFINES += -DHAVE_RTGA
OBJ += libretro-common/formats/tga/rtga.o
endif
ifeq ($(HAVE_RPNG), 1)
DEFINES += -DHAVE_RPNG
OBJ += libretro-common/formats/png/rpng.o \
libretro-common/formats/png/rpng_encode.o
endif
ifeq ($(HAVE_RJPEG), 1)
DEFINES += -DHAVE_RJPEG
OBJ += libretro-common/formats/jpeg/rjpeg.o
endif
ifeq ($(HAVE_RBMP), 1)
DEFINES += -DHAVE_RBMP
OBJ += libretro-common/formats/bmp/rbmp.o
endif
OBJ += libretro-common/formats/bmp/rbmp_encode.o \
libretro-common/formats/tga/rtga.o \
libretro-common/formats/json/jsonsax.o
libretro-common/formats/json/jsonsax.o \
libretro-common/formats/image_transfer.o
ifdef HAVE_COMPRESSION
DEFINES += -DHAVE_COMPRESSION
@@ -841,13 +1015,9 @@ ifeq ($(WANT_ZLIB),1)
deps/zlib/inftrees.o \
deps/zlib/trees.o \
deps/zlib/uncompr.o \
deps/zlib/zutil.o \
deps/zlib/ioapi.o \
deps/zlib/unzip.o
deps/zlib/zutil.o
else
ifeq ($(HAVE_ZLIB),1)
ZLIB_OBJS = deps/zlib/unzip.o \
deps/zlib/ioapi.o
OBJ += $(ZLIB_OBJS)
HAVE_ZLIB_DEFLATE = 1
endif
@@ -869,29 +1039,47 @@ endif
ifeq ($(HAVE_NETWORKING), 1)
DEFINES += -DHAVE_NETWORKING
OBJ += libretro-common/net/net_compat.o \
libretro-common/net/net_http.o \
net_http_special.o \
tasks/task_http.o
libretro-common/net/net_http.o \
libretro-common/net/net_socket.o \
network/net_http_special.o \
tasks/task_http.o
ifneq ($(HAVE_SOCKET_LEGACY),1)
OBJ += libretro-common/net/net_ifinfo.o
endif
ifeq ($(WANT_IFADDRS), 1)
DEFINES += -DWANT_IFADDRS
OBJ += libretro-common/compat/compat_ifaddrs.o
endif
ifneq ($(findstring Win32,$(OS)),)
LIBS += -lws2_32
LIBS += -lws2_32 -liphlpapi
endif
# Netplay
ifeq ($(HAVE_NETPLAY), 1)
DEFINES += -DHAVE_NETPLAY -DHAVE_NETWORK_CMD -DHAVE_NETWORK_GAMEPAD
OBJ += netplay/netplay_net.o netplay/netplay_spectate.o netplay/netplay_common.o netplay/netplay.o
DEFINES += -DHAVE_NETPLAY -DHAVE_NETWORK_CMD
OBJ += network/netplay/netplay_net.o \
network/netplay/netplay_spectate.o \
network/netplay/netplay_common.o \
network/netplay/netplay.o
endif
# Retro Achievements (also depends on threads)
ifeq ($(HAVE_CHEEVOS), 1)
ifeq ($(HAVE_THREADS), 1)
DEFINES += -DHAVE_CHEEVOS
OBJ += cheevos.o libretro-common/utils/md5.o
endif
endif
ifeq ($(HAVE_NETWORKGAMEPAD), 1)
OBJ += input/input_remote.o \
cores/libretro-net-retropad/net_retropad_core.o
endif
endif
ifneq ($(findstring Win32,$(OS)),)
@@ -915,20 +1103,30 @@ endif
ifeq ($(HAVE_FFMPEG), 1)
OBJ += record/drivers/record_ffmpeg.o \
cores/libretro-ffmpeg/ffmpeg_core.o
LIBS += $(AVCODEC_LIBS) $(AVFORMAT_LIBS) $(AVUTIL_LIBS) $(SWSCALE_LIBS) $(SWRESAMPLE_LIBS) $(FFMPEG_LIBS)
DEFINES += $(AVCODEC_CFLAGS) $(AVFORMAT_CFLAGS) $(AVUTIL_CFLAGS) $(SWSCALE_CFLAGS) $(SWRESAMPLE_CFLAGS)
DEFINES += -DHAVE_FFMPEG -Iffmpeg
DEFINES += -Wno-deprecated-declarations -DHAVE_FFMPEG -Iffmpeg
endif
ifeq ($(HAVE_COMPRESSION), 1)
DEFINES += -DHAVE_COMPRESSION
endif
#ifeq ($(HAVE_DIRECTX), 1)
#$DEFINES += -I"$(DXSDK_DIR)/Include"
#endif
ifeq ($(HAVE_COCOA),1)
DEFINES += -DHAVE_MAIN
OBJ += input/drivers/cocoa_input.o \
DEFINES += -DHAVE_MAIN
OBJ += input/drivers/cocoa_input.o \
input/drivers_keyboard/keyboard_event_apple.o \
ui/drivers/ui_cocoa.o \
ui/drivers/cocoa/ui_cocoa_window.o \
ui/drivers/cocoa/ui_cocoa_browser_window.o \
ui/drivers/cocoa/ui_cocoa_msg_window.o \
ui/drivers/cocoa/ui_cocoa_application.o \
ui/drivers/cocoa/cocoa_common.o \
gfx/drivers_context/cocoa_gl_ctx.o
endif
+42 -37
View File
@@ -21,20 +21,32 @@ APP_RSF = ctr/tools/template.rsf
APP_SYSTEM_MODE = 64MB
APP_SYSTEM_MODE_EXT = 124MB
APP_BIG_TEXT_SECTION = 0
APP_USE_SVCHAX = 0
include ctr/Makefile.cores
OBJS :=
OBJS += gfx/drivers/ctr_sprite.o
OBJS += gfx/drivers/ctr_shaders/ctr_sprite.o
OBJS += ctr/ctr_system.o
OBJS += ctr/ctr_memory.o
OBJS += ctr/ctr_linear.o
OBJS += ctr/ctr_svchax.o
ifeq ($(APP_BIG_TEXT_SECTION), 1)
APP_USE_SVCHAX = 1
LDFLAGS += -Wl,--defsym,__ctr_patch_services=__service_ptr
endif
ifeq ($(APP_USE_SVCHAX), 1)
OBJS += ctr/ctr_svchax.o
endif
ifeq ($(GRIFFIN_BUILD), 1)
OBJS += griffin/griffin.o
else
OBJS += libretro-common/file/file_extract.o
CFLAGS += -DHAVE_COMPRESSION
OBJS += libretro-common/file/archive_file.o
OBJS += libretro-common/file/archive_file_zlib.o
OBJS += libretro-common/encodings/encoding_utf.o
OBJS += verbosity.o
OBJS += performance.o
OBJS += libretro-common/compat/compat_getopt.o
@@ -43,13 +55,13 @@ else
OBJS += libretro-common/compat/compat_fnmatch.o
OBJS += libretro-common/memmap/memalign.o
OBJS += libretro-common/file/config_file.o
OBJS += libretro-common/file/config_file_userdata.o
OBJS += config_file_userdata.o
OBJS += core_options.o
OBJS += cheats.o
OBJS += libretro-common/hash/rhash.o
OBJS += gfx/video_context_driver.o
OBJS += gfx/drivers_context/gfx_null_ctx.o
OBJS += gfx/image/image.o
OBJS += libretro-common/formats/image_texture.o
OBJS += libretro-common/formats/tga/rtga.o
OBJS += libretro-common/formats/png/rpng.o
OBJS += libretro-common/formats/png/rpng_encode.o
@@ -75,10 +87,11 @@ else
OBJS += input/drivers_joypad/hid_joypad.o
OBJS += input/drivers_hid/null_hid.o
OBJS += gfx/video_state_tracker.o
OBJS += libretro-common/queues/fifo_buffer.o
OBJS += libretro-common/queues/fifo_queue.o
OBJS += audio/audio_resampler_driver.o
OBJS += audio/drivers_resampler/sinc.o
OBJS += audio/drivers_resampler/nearest.o
OBJS += audio/drivers_resampler/sinc_resampler.o
OBJS += audio/drivers_resampler/nearest_resampler.o
OBJS += audio/drivers_resampler/null_resampler.o
OBJS += audio/drivers_resampler/cc_resampler.o
OBJS += camera/drivers/nullcamera.o
OBJS += location/drivers/nulllocation.o
@@ -86,7 +99,7 @@ else
OBJS += audio/drivers/ctr_dsp_audio.o
OBJS += audio/drivers/nullaudio.o
OBJS += gfx/video_driver.o
OBJS += gfx/video_common.o
OBJS += gfx/video_coord_array.o
OBJS += input/input_driver.o
OBJS += audio/audio_driver.o
OBJS += camera/camera_driver.o
@@ -122,17 +135,15 @@ else
OBJS += content.o
OBJS += libretro-common/file/file_path.o
OBJS += file_path_special.o
OBJS += libretro-common/file/dir_list.o
OBJS += libretro-common/lists/dir_list.o
OBJS += libretro-common/file/retro_dirent.o
OBJS += libretro-common/file/retro_file.o
OBJS += libretro-common/streams/file_stream.o
OBJS += libretro-common/file/retro_stat.o
OBJS += dir_list_special.o
OBJS += string_list_special.o
OBJS += libretro-common/string/string_list.o
OBJS += list_special.o
OBJS += libretro-common/lists/string_list.o
OBJS += libretro-common/string/stdstring.o
OBJS += file_ops.o
OBJS += libretro-common/file/nbio/nbio_stdio.o
OBJS += libretro-common/file/file_list.o
OBJS += libretro-common/lists/file_list.o
OBJS += libretro-common/queues/message_queue.o
OBJS += patch.o
OBJS += configuration.o
@@ -147,7 +158,8 @@ else
OBJS += libretro_version_1.o
OBJS += retroarch.o
OBJS += runloop.o
OBJS += tasks/tasks.o
OBJS += libretro-common/queues/task_queue.o
OBJS += tasks/tasks_internal.o
OBJS += msg_hash.o
OBJS += intl/msg_hash_de.o
OBJS += intl/msg_hash_es.o
@@ -161,8 +173,9 @@ else
OBJS += movie.o
OBJS += record/record_driver.o
OBJS += record/drivers/record_null.o
OBJS += tasks/task_decompress.o
OBJS += tasks/task_content.o
OBJS += tasks/task_file_transfer.o
OBJS += tasks/task_decompress.o
OBJS += screenshot.o
OBJS += playlist.o
OBJS += menu/menu_driver.o
@@ -172,6 +185,7 @@ else
OBJS += menu/menu_entries.o
OBJS += menu/menu_setting.o
OBJS += menu/menu_cbs.o
OBJS += menu/menu_content.o
OBJS += menu/cbs/menu_cbs_ok.o
OBJS += menu/cbs/menu_cbs_cancel.o
OBJS += menu/cbs/menu_cbs_select.o
@@ -220,8 +234,6 @@ else
OBJS += deps/zlib/trees.o
OBJS += deps/zlib/uncompr.o
OBJS += deps/zlib/zutil.o
OBJS += deps/zlib/ioapi.o
OBJS += deps/zlib/unzip.o
OBJS += audio/audio_utils.o
endif
@@ -280,14 +292,12 @@ CFLAGS += -I. -Ideps/zlib -Ideps/7zip -Ilibretro-common/include
CFLAGS += -DRARCH_INTERNAL -DRARCH_CONSOLE -DSINC_LOWEST_QUALITY
CFLAGS += -DHAVE_GRIFFIN=1 -DHAVE_FILTERS_BUILTIN -DHAVE_MENU -DHAVE_RGUI
CFLAGS += -DHAVE_ZLIB -DHAVE_RPNG -DWANT_ZLIB -DHAVE_BUILTIN_AUTOCONFIG
#-DHAVE_LIBRETRO_MANAGEMENT -DWANT_RPNG -DHAVE_7ZIP
CFLAGS += -DHAVE_ZLIB -DHAVE_RPNG -DHAVE_RJPEG -DHAVE_RBMP -DHAVE_RTGA -DWANT_ZLIB -DHAVE_BUILTIN_AUTOCONFIG
CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++11
ASFLAGS := -g $(ARCH) -O3
LDFLAGS = -specs=ctr/3dsx_custom.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map)
LDFLAGS += -specs=ctr/3dsx_custom.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map)
CFLAGS += -std=gnu99 -ffast-math
@@ -315,11 +325,6 @@ $(TARGET): $(TARGET_3DSX) $(TARGET_3DS) $(TARGET_CIA)
$(TARGET).3dsx: $(TARGET).elf
$(TARGET).elf: $(OBJS) libretro_ctr.a
ctr_sprite_shader_shbin.h: gfx/drivers/ctr_sprite.o
gfx/drivers/ctr_gfx.c: ctr_sprite_shader_shbin.h
griffin/griffin.o: gfx/drivers/ctr_gfx.c
PREFIX := $(DEVKITARM)/bin/arm-none-eabi-
CC := $(PREFIX)gcc
@@ -342,14 +347,15 @@ else
BANNERTOOL = ctr/tools/bannertool.exe
endif
%.o: %.shader
python $(AEMSTRO)/aemstro_as.py $< $(notdir $<).shbin
$(DEVKITARM)/bin/bin2s $(notdir $<).shbin | $(PREFIX)as -o $@
echo "extern const u8" `(echo $(notdir $<).shbin | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`"_end[];" > `(echo $(notdir $<).shbin | tr . _)`.h
echo "extern const u8" `(echo $(notdir $<).shbin | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`"[];" >> `(echo $(notdir $<).shbin | tr . _)`.h
echo "extern const u32" `(echo $(notdir $<).shbin | sed -e 's/^\([0-9]\)/_\1/' | tr . _)`_size";" >> `(echo $(notdir $<).shbin | tr . _)`.h
rm $(notdir $<).shbin
%.o: %.vsh %.gsh
$(DEVKITARM)/bin/picasso $^ -o $*.shbin
$(DEVKITARM)/bin/bin2s $*.shbin | $(PREFIX)as -o $@
rm $*.shbin
%.o: %.vsh
$(DEVKITARM)/bin/picasso $^ -o $*.shbin
$(DEVKITARM)/bin/bin2s $*.shbin | $(PREFIX)as -o $@
rm $*.shbin
%.o: %.cpp
$(CXX) -c -o $@ $< $(CXXFLAGS) $(INCDIRS)
@@ -405,7 +411,6 @@ clean:
rm -f $(TARGET).smdh
rm -f $(TARGET).bnr
rm -f $(TARGET).icn
rm -f *_shader_shbin.h
rm -f ctr/ctr_config_*.o
rm -f ctr/3dsx_custom_crt0.o
+1 -1
View File
@@ -72,7 +72,7 @@ else
CFLAGS += -O2
endif
CFLAGS += -DWANT_RPNG -Wall -Wno-unused-result -Wno-unused-variable -I. -Ilibretro-common/include -std=gnu99 -s USE_ZLIB=1 \
CFLAGS += -DHAVE_RPNG -DHAVE_RJPEG -Wall -Wno-unused-result -Wno-unused-variable -I. -Ilibretro-common/include -std=gnu99 -s USE_ZLIB=1 \
-s EXPORTED_FUNCTIONS="['_main', '_malloc', '_cmd_savefiles', '_cmd_save_state', '_cmd_take_screenshot']"
all: $(TARGET)
+29 -11
View File
@@ -127,6 +127,9 @@ endif
HAVE_FILTERS_BUILTIN := 1
HAVE_THREADS := 1
HAVE_RPNG := 1
HAVE_RJPEG := 1
HAVE_RBMP := 1
HAVE_RTGA := 1
HAVE_OVERLAY := 1
HAVE_BUILTIN_AUTOCONFIG := 1
HAVE_ZLIB := 1
@@ -134,10 +137,10 @@ endif
RARCH_CONSOLE = 1
ifeq ($(platform), wii)
HAVE_LANGEXTRA := 1
HAVE_WIIUSB_HID := 1
HAVE_RARCH_EXEC := 1
HAVE_RSOUND := 1
HAVE_LIBRETRO_MANAGEMENT := 1
APP_BOOTER_DIR = wii/app_booter
PLATOBJS := $(APP_BOOTER_DIR)/app_booter.binobj
@@ -185,9 +188,12 @@ else ifeq ($(platform), psp1)
LDFLAGS += -Wl,-q
BUILD_PRX = 1
HAVE_LIBRETRO_MANAGEMENT := 1
HAVE_RPNG := 1
HAVE_RJPEG := 1
HAVE_RBMP := 1
HAVE_RTGA := 1
HAVE_KERNEL_PRX := 1
HAVE_LANGEXTRA := 1
RARCH_CONSOLE = 1
ifeq ($(BUILD_PRX), 1)
@@ -207,16 +213,20 @@ else ifeq ($(platform), vita)
-lSceSysmodule_stub -lSceCtrl_stub -lSceAudio_stub -lUVLoader_stub \
-lScePower_stub -lSceRtc_stub -lSceCommonDialog_stub -lfreetype -lz -lm -lc -lpng
PLATOBJS += audio/audio_utils_neon.o audio/drivers_resampler/sinc_neon.o \
PLATOBJS += libretro-common/conversion/s16_to_float_neon.o \
audio/drivers_resampler/sinc_resampler_neon.o \
audio/drivers_resampler/cc_resampler_neon.o
LIBDIRS += -L.
LDFLAGS += -Wl,-q
HAVE_FILTERS_BUILTIN := 1
HAVE_LIBRETRO_MANAGEMENT := 1
HAVE_BUILTIN_AUTOCONFIG := 1
HAVE_LANGEXTRA := 1
HAVE_RPNG := 1
HAVE_RJPEG := 1
HAVE_RBMP := 1
HAVE_RTGA := 1
HAVE_ZLIB := 1
HAVE_VITA2D := 1
HAVE_NETWORKING := 1
@@ -245,10 +255,6 @@ ifeq ($(platform), vita)
CFLAGS += -DHAVE_SOCKET_LEGACY
endif
ifeq ($(HAVE_LIBRETRO_MANAGEMENT), 1)
CFLAGS += -DHAVE_LIBRETRO_MANAGEMENT
endif
ifeq ($(HAVE_KERNEL_PRX), 1)
CFLAGS += -DHAVE_KERNEL_PRX
endif
@@ -269,8 +275,8 @@ ifeq ($(BIG_STACK),1)
CFLAGS += -DBIG_STACK
endif
ifeq ($(HAVE_RPNG), 1)
CFLAGS += -DWANT_RPNG
ifeq ($(HAVE_RJPEG), 1)
CFLAGS += -DHAVE_RJPEG
endif
ifeq ($(HAVE_FILE_LOGGER), 1)
@@ -289,6 +295,14 @@ ifeq ($(HAVE_RPNG), 1)
CFLAGS += -DHAVE_RPNG
endif
ifeq ($(HAVE_RBMP), 1)
CFLAGS += -DHAVE_RBMP
endif
ifeq ($(HAVE_RTGA), 1)
CFLAGS += -DHAVE_RTGA
endif
ifeq ($(HAVE_7ZIP), 1)
CFLAGS += -DHAVE_7ZIP
endif
@@ -319,6 +333,10 @@ endif
CFLAGS += -std=gnu99 -DSINC_LOWER_QUALITY -DHAVE_RGUI -DHAVE_MENU -DHAVE_GRIFFIN=1 -Wno-char-subscripts -DRARCH_INTERNAL
ifeq ($(HAVE_LANGEXTRA), 1)
CFLAGS += -DHAVE_LANGEXTRA
endif
ifeq ($(HAVE_FILTERS_BUILTIN), 1)
CFLAGS += -DHAVE_FILTERS_BUILTIN
endif
@@ -357,7 +375,7 @@ all: $(EXT_TARGET)
%.velf: %.elf
arm-vita-eabi-strip -g $<
vita-elf-create $< $@ $(VITASDK)/bin/db.json $(VITASDK)/bin/extra.json
vita-elf-create $< $@ $(VITASDK)/share/db.json $(VITASDK)/share/extra.json
%.elf32: %.elf
ifeq ($(platform), xenon360)
+2 -2
View File
@@ -10,12 +10,12 @@ TARGET := retroarch-pandora
LDDIRS = -L. -L$(PNDSDK)/usr/lib
INCDIRS = -I. -I$(PNDSDK)/usr/include
OBJ = griffin/griffin.o audio/resamplers/sinc_neon.o audio/audio_utils_neon.o
OBJ = griffin/griffin.o audio/resamplers/sinc_resampler_neon.o libretro-common/conversion/s16_to_float_neon.o libretro-common/conversion/float_to_s16_neon.o
LDFLAGS = -L$(PNDSDK)/usr/lib -Wl,-rpath,$(PNDSDK)/usr/lib
LIBS = -lGLESv2 -lEGL -ldl -lm -lpthread -lrt -lasound
DEFINES = -std=gnu99 -DHAVE_THREADS -DHAVE_GETOPT_LONG=1 -DHAVE_GRIFFIN -DRARCH_INTERNAL
DEFINES += -D__ARM_ARCH_6__ -DSINC_LOWER_QUALITY -DHAVE_OPENGL -DHAVE_OPENGLES -DHAVE_OPENGLES2 -DHAVE_GLSL -DHAVE_DYNAMIC -DWANT_RPNG -DWANT_ZLIB -DHAVE_OVERLAY -DHAVE_ALSA -DHAVE_ZLIB -D__linux__
DEFINES += -D__ARM_ARCH_6__ -DSINC_LOWER_QUALITY -DHAVE_OPENGL -DHAVE_OPENGLES -DHAVE_OPENGLES2 -DHAVE_GLSL -DHAVE_DYNAMIC -DHAVE_RPNG -DHAVE_RJPEG -DWANT_ZLIB -DHAVE_OVERLAY -DHAVE_ALSA -DHAVE_ZLIB -D__linux__
DEFINES += $(INCDIRS)
DEFINES += -D__OPENPANDORA__ -DPANDORA
DEFINES += -marm -march=armv7-a -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -ftree-vectorize
+2 -2
View File
@@ -68,7 +68,7 @@ ifeq ($(HAVE_RLAUNCH), 1)
DEFINES += -DHAVE_RLAUNCH
endif
DEFINES += -DHAVE_MENU -DHAVE_RGUI -DHAVE_MATERIALUI -DHAVE_XMB -DRARCH_INTERNAL -DMSB_FIRST -DHAVE_OVERLAY -DHAVE_STB_FONT
DEFINES += -DHAVE_MENU -DHAVE_RGUI -DHAVE_XMB -DHAVE_MATERIALUI -DHAVE_SHADERPIPELINE -DRARCH_INTERNAL -DMSB_FIRST -DHAVE_OVERLAY
ifeq ($(HAVE_GCMGL), 1)
DEFINES += -DHAVE_GCMGL
@@ -106,7 +106,7 @@ PPU_LDLIBS = $(FONT_LIBS) $(GL_LIBS) $(WHOLE_START) -lretro_ps3 $(WHOLE_END) -l
PPU_RANLIB = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ranlib.exe
DEFINES += -DHAVE_THREADS -DRARCH_CONSOLE -DHAVE_OPENGL -DHAVE_HEADSET -DHAVE_LIBRETRODB -DHAVE_OPENGLES -DHAVE_OPENGLES1 -DHAVE_PSGL -DHAVE_CG -DHAVE_CG_RUNTIME_COMPILER -DHAVE_FBO -DHAVE_SYSMODULES -DHAVE_SYSUTILS -DHAVE_RARCH_EXEC -DHAVE_LIBRETRO_MANAGEMENT -DHAVE_RSOUND -DHAVE_ZLIB -DHAVE_RPNG -DHAVE_7Z -DWANT_ZLIB -DSINC_LOWER_QUALITY -D__CELLOS_LV2__ -DHAVE_NETPLAY=1 -DHAVE_NETWORKING=1 -DHAVE_SOCKET_LEGACY=1 -DHAVE_MOUSE -DHAVE_GRIFFIN=1 -DHAVE_MULTIMAN=1 -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT) -DHAVE_FILTERS_BUILTIN -DHAVE_BUILTIN_AUTOCONFIG
DEFINES += -DHAVE_THREADS -DRARCH_CONSOLE -DHAVE_OPENGL -DHAVE_HEADSET -DHAVE_LANGEXTRA -DHAVE_OPENGLES -DHAVE_OPENGLES1 -DHAVE_PSGL -DHAVE_CG -DHAVE_CG_RUNTIME_COMPILER -DHAVE_FBO -DHAVE_SYSMODULES -DHAVE_SYSUTILS -DHAVE_RARCH_EXEC -DHAVE_RSOUND -DHAVE_ZLIB -DHAVE_RPNG -DHAVE_RJPEG -DHAVE_RBMP -DHAVE_RTGA -DHAVE_7Z -DWANT_ZLIB -DSINC_LOWER_QUALITY -D__CELLOS_LV2__ -DHAVE_NETPLAY=1 -DHAVE_NETWORKING=1 -DHAVE_SOCKET_LEGACY=1 -DHAVE_MOUSE -DHAVE_GRIFFIN=1 -DHAVE_MULTIMAN=1 -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT) -DHAVE_FILTERS_BUILTIN -DHAVE_BUILTIN_AUTOCONFIG
ifeq ($(DEBUG), 1)
PPU_OPTIMIZE_LV := -O0 -g
+1 -1
View File
@@ -104,7 +104,7 @@ PPU_LDLIBS = $(FONT_LIBS) $(GL_LIBS) $(WHOLE_START) -lretro_ps3 $(WHOLE_END) -l
PPU_RANLIB = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ranlib.exe
DEFINES += -DHAVE_THREADS -DRARCH_CONSOLE -DHAVE_OPENGL -DHAVE_OVERLAY -DHAVE_HEADSET -DHAVE_OPENGLES -DHAVE_OPENGLES1 -DHAVE_PSGL -DHAVE_CG -DHAVE_CG_RUNTIME_COMPILER -DHAVE_FBO -DHAVE_SYSMODULES -DHAVE_SYSUTILS -DHAVE_RARCH_EXEC -DHAVE_LIBRETRO_MANAGEMENT -DHAVE_RSOUND -DHAVE_ZLIB -DHAVE_RPNG -DWANT_ZLIB -DSINC_LOWER_QUALITY -D__CELLOS_LV2__ -DHAVE_NETPLAY=1 -DHAVE_SOCKET_LEGACY=1 -DHAVE_MOUSE -DHAVE_GRIFFIN=1 -DHAVE_MULTIMAN=0 -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT)
DEFINES += -DHAVE_THREADS -DRARCH_CONSOLE -DHAVE_OPENGL -DHAVE_OVERLAY -DHAVE_HEADSET -DHAVE_OPENGLES -DHAVE_OPENGLES1 -DHAVE_PSGL -DHAVE_CG -DHAVE_CG_RUNTIME_COMPILER -DHAVE_FBO -DHAVE_SYSMODULES -DHAVE_SYSUTILS -DHAVE_RARCH_EXEC -DHAVE_RSOUND -DHAVE_ZLIB -DHAVE_RPNG -DWANT_ZLIB -DSINC_LOWER_QUALITY -D__CELLOS_LV2__ -DHAVE_NETPLAY=1 -DHAVE_SOCKET_LEGACY=1 -DHAVE_MOUSE -DHAVE_GRIFFIN=1 -DHAVE_MULTIMAN=0 -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT)
ifeq ($(DEBUG), 1)
PPU_OPTIMIZE_LV := -O0 -g
+7 -4
View File
@@ -24,20 +24,23 @@ PPU_SRCS = frontend/frontend_salamander.c \
frontend/drivers/platform_ps3.c \
frontend/drivers/platform_null.c \
libretro-common/file/file_path.c \
libretro-common/file/dir_list.c \
libretro-common/lists/dir_list.c \
libretro-common/lists/string_list.c \
libretro-common/file/retro_dirent.c \
libretro-common/file/retro_stat.c \
libretro-common/hash/rhash.c \
libretro-common/string/stdstring.c \
libretro-common/string/string_list.c \
libretro-common/compat/compat_strl.c \
libretro-common/file/retro_file.c \
libretro-common/streams/file_stream.c \
libretro-common/file/config_file.c \
file_path_str.c \
verbosity.c
ifeq ($(HAVE_LOGGER), 1)
PPU_CFLAGS += -DHAVE_LOGGER
PPU_SRCS += netlogger.c
PPU_SRCS += network/net_logger.c \
libretro-common/net/net_compat.c \
libretro-common/net/net_socket.c
endif
PPU_TARGET = retroarch-salamander_ps3.elf
-1
View File
@@ -83,7 +83,6 @@ OBJ = griffin/griffin.o
ifeq ($(HAVE_LOGGER), 1)
CFLAGS += -DHAVE_LOGGER
CFLAGS += -Ilogger/netlogger
endif
ifeq ($(HAVE_FILE_LOGGER), 1)
+1 -1
View File
@@ -23,7 +23,7 @@ INCDIR = deps/zlib deps/7zip libretro-common/include
CFLAGS = $(OPTIMIZE_LV) -G0 -std=gnu99 -ffast-math
ASFLAGS = $(CFLAGS)
RARCH_DEFINES = -DPSP -D_MIPS_ARCH_ALLEGREX -DHAVE_LIBRETRO_MANAGEMENT -DHAVE_ZLIB -DHAVE_RPNG -DWANT_ZLIB -DHAVE_GRIFFIN=1 -DRARCH_INTERNAL -DRARCH_CONSOLE -DHAVE_MENU -DHAVE_RGUI -DWANT_RPNG -DSINC_LOWEST_QUALITY -DHAVE_BUILTIN_AUTOCONFIG -DHAVE_FILTERS_BUILTIN -DHAVE_7ZIP
RARCH_DEFINES = -DPSP -D_MIPS_ARCH_ALLEGREX -DHAVE_LANGEXTRA -DHAVE_ZLIB -DHAVE_RPNG -DHAVE_RJPEG -DWANT_ZLIB -DHAVE_GRIFFIN=1 -DRARCH_INTERNAL -DRARCH_CONSOLE -DHAVE_MENU -DHAVE_RGUI -DSINC_LOWEST_QUALITY -DHAVE_BUILTIN_AUTOCONFIG -DHAVE_FILTERS_BUILTIN -DHAVE_7ZIP
LIBDIR =
LDFLAGS =
+4 -3
View File
@@ -37,14 +37,15 @@ OBJS = frontend/frontend_salamander.o \
frontend/drivers/platform_null.o \
libretro-common/file/file_path.o \
libretro-common/string/stdstring.o \
libretro-common/string/string_list.o \
libretro-common/file/dir_list.o \
libretro-common/lists/string_list.o \
libretro-common/lists/dir_list.o \
libretro-common/file/retro_dirent.o \
libretro-common/compat/compat_strl.o \
libretro-common/file/config_file.o \
libretro-common/file/retro_file.o \
libretro-common/streams/file_stream.o \
libretro-common/file/retro_stat.o \
libretro-common/hash/rhash.o \
file_path_str.o \
verbosity.o \
bootstrap/psp1/kernel_functions.o
+7 -4
View File
@@ -47,20 +47,23 @@ OBJ = frontend/frontend_salamander.o \
libretro-common/file/file_path.o \
libretro-common/hash/rhash.o \
libretro-common/string/stdstring.o \
libretro-common/string/string_list.o \
libretro-common/file/dir_list.o \
libretro-common/file/retro_file.o \
libretro-common/lists/string_list.o \
libretro-common/lists/dir_list.o \
libretro-common/streams/file_stream.o \
libretro-common/file/retro_dirent.o \
libretro-common/file/retro_stat.o \
libretro-common/compat/compat_strl.o \
libretro-common/file/config_file.o \
file_path_str.o \
verbosity.o \
$(APP_BOOTER_DIR)/app_booter.binobj
ifeq ($(HAVE_LOGGER), 1)
CFLAGS += -DHAVE_LOGGER
CFLAGS += -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT)
OBJ += logger/netlogger.o
OBJ += network/net_logger.o \
libretro-common/net/net_compat.o \
libretro-common/net/net_socket.o
endif
ifeq ($(HAVE_FILE_LOGGER), 1)
+3 -35
View File
@@ -1,5 +1,4 @@
TARGET = retroarch.exe
JTARGET = tools/retroarch-joyconfig.exe
HAVE_DINPUT = 1
HAVE_XAUDIO = 1
@@ -84,9 +83,7 @@ OBJDIR := obj-w32
OS := Win32
OBJ :=
JOYCONFIG_OBJ :=
LIBS := -lm
JOYCONFIG_LIBS :=
DEFINES := -I. -Ilibretro-common/include -DRARCH_INTERNAL -DHAVE_OVERLAY
LDFLAGS := -L. -static-libgcc
@@ -123,7 +120,6 @@ ifeq ($(DEBUG), 1)
else
CFLAGS += -O3 -ffast-math
CXXFLAGS += -O3 -ffast-math
LDCXXFLAGS += -s
endif
CFLAGS += -Wall -Wno-unused-result -Wno-unused-variable -I.
@@ -137,11 +133,10 @@ else
endif
RARCH_OBJ := $(addprefix $(OBJDIR)/,$(OBJ))
RARCH_JOYCONFIG_OBJ := $(addprefix $(OBJDIR)/,$(JOYCONFIG_OBJ))
all: $(TARGET) $(JTARGET)
all: $(TARGET)
-include $(RARCH_OBJ:.o=.d) $(RARCH_JOYCONFIG_OBJ:.o=.d)
-include $(RARCH_OBJ:.o=.d)
$(TARGET): $(RARCH_OBJ)
@$(if $(Q), $(shell echo echo LD $@),)
@@ -170,37 +165,10 @@ $(OBJDIR)/%.o: %.rc $(HEADERS)
@$(if $(Q), $(shell echo echo WINDRES $<),)
$(Q)$(WINDRES) -o $@ $<
$(JTARGET): $(RARCH_JOYCONFIG_OBJ)
@$(if $(Q), $(shell echo echo LD $@),)
ifeq ($(CXX_BUILD), 1)
$(Q)$(CXX) -o $@ $(RARCH_JOYCONFIG_OBJ) -ldxguid -ldinput8 -lole32 $(LDFLAGS) $(JOYCONFIG_LIBS)
else
$(Q)$(CC) -o $@ $(RARCH_JOYCONFIG_OBJ) -ldxguid -ldinput8 -lole32 $(LDFLAGS) $(JOYCONFIG_LIBS)
endif
clean:
rm -rf $(OBJDIR)
rm -f $(TARGET)
rm -f *.d
rm -f tools/retroarch-joyconfig.exe
dist_x86: all
zip -r retroarch-win32-1.0.zip $(TARGET) $(JTARGET) retroarch.cfg
dist_x86_64: all
zip -r retroarch-win64-1.0.zip $(TARGET) $(JTARGET) retroarch.cfg
libs_x86:
wget http://themaister.net/retroarch-dl/RetroArch-win32-libs.zip
unzip RetroArch-win32-libs.zip
wget http://themaister.net/retroarch-dl/RetroArch-win32-headers.zip
unzip RetroArch-win32-headers.zip
libs_x86_64:
wget http://themaister.net/retroarch-dl/RetroArch-win64-libs.zip
unzip RetroArch-win64-libs.zip
wget http://themaister.net/retroarch-dl/RetroArch-win64-headers.zip
unzip RetroArch-win64-headers.zip
.PHONY: all install uninstall clean dist_x86 dist_x86_64 libs_x86 libs_x86_64
.PHONY: all install uninstall clean
+9 -3
View File
@@ -14,7 +14,7 @@ A libretro core written in portable C or C++ can run seamlessly on many platform
While RetroArch is the reference frontend for libretro, several other projects have used the libretro
interface to include support for emulators and/or game engines. libretro is completely open and free for anyone to use.
[libretro API header](https://github.com/libretro/RetroArch/blob/master/libretro.h)
[libretro API header](https://github.com/libretro/RetroArch/blob/master/libretro-common/include/libretro.h)
## Binaries
@@ -55,6 +55,7 @@ RetroArch has been ported to the following platforms outside PC:
- Xbox 360 (Libxenon/XeXDK)
- Xbox 1
- Wii, Gamecube (Libogc)
- Nintendo 3DS
- Raspberry Pi
- Android
- iOS
@@ -62,9 +63,14 @@ RetroArch has been ported to the following platforms outside PC:
## Dependencies (PC)
On Windows, RetroArch can run with only Win32 as dependency. On Linux, you need:
There are no true hard dependencies per se.
- GL headers
On Windows, RetroArch can run with only Win32 as dependency.
On Linux, there are no true dependencies. For optimal usage, the
following dependencies come as recommended:
- GL headers / Vulkan headers
- X11 headers and libs, or EGL/KMS/GBM
OSX port of RetroArch requires latest versions of XCode to build.
+440 -280
View File
File diff suppressed because it is too large. Load diff
+75 -35
View File
@@ -20,39 +20,21 @@
#include <stdint.h>
#include <stddef.h>
#include <sys/types.h>
#include <boolean.h>
#include <retro_common_api.h>
#include "audio_dsp_filter.h"
#include "audio_resampler_driver.h"
#ifdef __cplusplus
extern "C" {
#endif
RETRO_BEGIN_DECLS
enum rarch_audio_ctl_state
{
RARCH_AUDIO_CTL_NONE = 0,
RARCH_AUDIO_CTL_INIT,
RARCH_AUDIO_CTL_DEINIT,
RARCH_AUDIO_CTL_DESTROY,
RARCH_AUDIO_CTL_DESTROY_DATA,
RARCH_AUDIO_CTL_START,
RARCH_AUDIO_CTL_STOP,
RARCH_AUDIO_CTL_FIND_DRIVER,
RARCH_AUDIO_CTL_SETUP_REWIND,
/* Sets audio monitor refresh rate to new value. */
RARCH_AUDIO_CTL_MONITOR_SET_REFRESH_RATE,
RARCH_AUDIO_CTL_MONITOR_ADJUST_SYSTEM_RATES,
RARCH_AUDIO_CTL_MUTE_TOGGLE,
RARCH_AUDIO_CTL_CALLBACK,
RARCH_AUDIO_CTL_HAS_CALLBACK,
RARCH_AUDIO_CTL_ALIVE,
RARCH_AUDIO_CTL_FRAME_IS_REVERSE,
RARCH_AUDIO_CTL_SET_OWN_DRIVER,
RARCH_AUDIO_CTL_UNSET_OWN_DRIVER,
RARCH_AUDIO_CTL_OWNS_DRIVER,
RARCH_AUDIO_CTL_SET_ACTIVE,
RARCH_AUDIO_CTL_UNSET_ACTIVE,
RARCH_AUDIO_CTL_IS_ACTIVE
};
#define AUDIO_CHUNK_SIZE_BLOCKING 512
/* So we don't get complete line-noise when fast-forwarding audio. */
#define AUDIO_CHUNK_SIZE_NONBLOCKING 2048
#define AUDIO_MAX_RATIO 16
typedef struct audio_driver
{
@@ -93,14 +75,45 @@ typedef struct audio_driver
/* Human-readable identifier. */
const char *ident;
/* Optional. Get audio device list (allocates, caller has to free this) */
void *(*device_list_new)(void *data);
/* Optional. Frees audio device list */
void (*device_list_free)(void *data, void *data2);
/* Optional. */
size_t (*write_avail)(void *data);
size_t (*buffer_size)(void *data);
} audio_driver_t;
void audio_driver_destroy_data(void);
bool audio_driver_ctl(enum rarch_audio_ctl_state state, void *data);
void audio_driver_set_own_driver(void);
void audio_driver_unset_own_driver(void);
void audio_driver_set_active(void);
void audio_driver_unset_active(void);
bool audio_driver_is_active(void);
void audio_driver_destroy(void);
void audio_driver_deinit_resampler(void);
bool audio_driver_init_resampler(void);
void audio_driver_process_resampler(struct resampler_data *data);
bool audio_driver_free_devices_list(void);
bool audio_driver_new_devices_list(void);
bool audio_driver_enable_callback(void);
bool audio_driver_disable_callback(void);
/**
* audio_driver_find_handle:
@@ -147,11 +160,40 @@ void audio_driver_dsp_filter_init(const char *device);
void audio_driver_set_buffer_size(size_t bufsize);
void audio_driver_set_callback(const void *info);
bool audio_driver_get_devices_list(void **ptr);
void audio_driver_setup_rewind(void);
void audio_driver_monitor_adjust_system_rates(void);
bool audio_driver_set_callback(const void *data);
bool audio_driver_callback(void);
bool audio_driver_has_callback(void);
/* Sets audio monitor rate to new value. */
void audio_driver_monitor_set_rate(void);
bool audio_driver_find_driver(void);
bool audio_driver_toggle_mute(void);
bool audio_driver_start(void);
bool audio_driver_stop(void);
bool audio_driver_owns_driver(void);
void audio_driver_unset_callback(void);
void audio_driver_callback_set_state(bool state);
void audio_driver_frame_is_reverse(void);
bool audio_driver_alive(void);
bool audio_driver_deinit(void);
bool audio_driver_init(void);
extern audio_driver_t audio_rsound;
extern audio_driver_t audio_oss;
@@ -175,8 +217,6 @@ extern audio_driver_t audio_ctr_dsp;
extern audio_driver_t audio_rwebaudio;
extern audio_driver_t audio_null;
#ifdef __cplusplus
}
#endif
RETRO_END_DECLS
#endif
+16 -12
View File
@@ -22,16 +22,16 @@
#include <dynamic/dylib.h>
#include <file/file_path.h>
#include <file/config_file_userdata.h>
#include <file/dir_list.h>
#include "../performance.h"
#include <lists/dir_list.h>
#include <features/features_cpu.h>
#include "audio_dsp_filter.h"
#include "../dynamic.h"
#include "audio_filters/dspfilter.h"
#include "../file_ext.h"
#include "../config_file_userdata.h"
#include "../frontend/frontend_driver.h"
#include "../performance_counters.h"
#include "../dynamic.h"
struct rarch_dsp_plug
{
@@ -147,7 +147,7 @@ static const dspfilter_get_implementation_t dsp_plugs_builtin[] = {
static bool append_plugs(rarch_dsp_filter_t *dsp, struct string_list *list)
{
unsigned i;
dspfilter_simd_mask_t mask = retro_get_cpu_features();
dspfilter_simd_mask_t mask = cpu_features_get();
(void)list;
@@ -171,7 +171,7 @@ static bool append_plugs(rarch_dsp_filter_t *dsp, struct string_list *list)
static bool append_plugs(rarch_dsp_filter_t *dsp, struct string_list *list)
{
unsigned i;
dspfilter_simd_mask_t mask = retro_get_cpu_features();
dspfilter_simd_mask_t mask = cpu_features_get();
for (i = 0; i < list->size; i++)
{
@@ -226,12 +226,13 @@ static bool append_plugs(rarch_dsp_filter_t *dsp, struct string_list *list)
rarch_dsp_filter_t *rarch_dsp_filter_new(
const char *filter_config, float sample_rate)
{
char basedir[PATH_MAX_LENGTH] = {0};
#if !defined(HAVE_FILTERS_BUILTIN) && defined(HAVE_DYLIB)
char basedir[PATH_MAX_LENGTH];
char ext_name[PATH_MAX_LENGTH];
#endif
struct string_list *plugs = NULL;
rarch_dsp_filter_t *dsp = NULL;
(void)basedir;
dsp = (rarch_dsp_filter_t*)calloc(1, sizeof(*dsp));
if (!dsp)
return NULL;
@@ -243,7 +244,10 @@ rarch_dsp_filter_t *rarch_dsp_filter_new(
#if !defined(HAVE_FILTERS_BUILTIN) && defined(HAVE_DYLIB)
fill_pathname_basedir(basedir, filter_config, sizeof(basedir));
plugs = dir_list_new(basedir, EXT_EXECUTABLES, false, false);
if (!frontend_driver_get_core_extension(ext_name, sizeof(ext_name)))
goto error;
plugs = dir_list_new(basedir, ext_name, false, false);
if (!plugs)
goto error;
#endif
+4 -6
View File
@@ -17,9 +17,9 @@
#ifndef __AUDIO_DSP_FILTER_H__
#define __AUDIO_DSP_FILTER_H__
#ifdef __cplusplus
extern "C" {
#endif
#include <retro_common_api.h>
RETRO_BEGIN_DECLS
typedef struct rarch_dsp_filter rarch_dsp_filter_t;
@@ -41,9 +41,7 @@ struct rarch_dsp_data
void rarch_dsp_filter_process(rarch_dsp_filter_t *dsp,
struct rarch_dsp_data *data);
#ifdef __cplusplus
}
#endif
RETRO_END_DECLS
#endif
+4 -6
View File
@@ -18,9 +18,9 @@
#ifndef DSPFILTER_API_H__
#define DSPFILTER_API_H__
#ifdef __cplusplus
extern "C" {
#endif
#include <retro_common_api.h>
RETRO_BEGIN_DECLS
#define DSPFILTER_SIMD_SSE (1 << 0)
#define DSPFILTER_SIMD_SSE2 (1 << 1)
@@ -177,8 +177,6 @@ struct dspfilter_implementation
const char *short_ident;
};
#ifdef __cplusplus
}
#endif
RETRO_END_DECLS
#endif
+1 -1
View File
@@ -107,7 +107,7 @@ static void *echo_init(const struct dspfilter_info *info,
config->get_float_array(userdata, "feedback", &feedback, &num_feedback, default_feedback, 1);
config->get_float(userdata, "amp", &echo->amp, 0.2f);
channels = num_feedback = num_delay = min(num_delay, num_feedback);
channels = num_feedback = num_delay = MIN(num_delay, num_feedback);
echo->channels = (struct echo_channel*)calloc(channels, sizeof(*echo->channels));
if (!echo->channels)
+1 -1
View File
@@ -276,7 +276,7 @@ static void *eq_init(const struct dspfilter_info *info,
filter_path = NULL;
}
num_gain = num_freq = min(num_gain, num_freq);
num_gain = num_freq = MIN(num_gain, num_freq);
gains = (struct eq_gain*)calloc(num_gain, sizeof(*gains));
if (!gains)
+1 -52
View File
@@ -17,61 +17,10 @@
#define RARCH_FFT_H__
#include <retro_inline.h>
#include <math/complex.h>
typedef struct fft fft_t;
// C99 <complex.h> would be nice.
typedef struct
{
float real;
float imag;
} fft_complex_t;
static INLINE fft_complex_t fft_complex_mul(fft_complex_t a,
fft_complex_t b)
{
fft_complex_t out = {
a.real * b.real - a.imag * b.imag,
a.imag * b.real + a.real * b.imag,
};
return out;
}
static INLINE fft_complex_t fft_complex_add(fft_complex_t a,
fft_complex_t b)
{
fft_complex_t out = {
a.real + b.real,
a.imag + b.imag,
};
return out;
}
static INLINE fft_complex_t fft_complex_sub(fft_complex_t a,
fft_complex_t b)
{
fft_complex_t out = {
a.real - b.real,
a.imag - b.imag,
};
return out;
}
static INLINE fft_complex_t fft_complex_conj(fft_complex_t a)
{
fft_complex_t out = {
a.real, -a.imag,
};
return out;
}
fft_t *fft_new(unsigned block_size_log2);
void fft_free(fft_t *fft);
+12 -28
View File
@@ -14,20 +14,23 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#include "audio_resampler_driver.h"
#ifdef RARCH_INTERNAL
#include "../performance.h"
#endif
#include <file/config_file_userdata.h>
#include <string.h>
#ifndef DONT_HAVE_STRING_LIST
#include "../string_list_special.h"
#include <string/stdstring.h>
#include <features/features_cpu.h>
#include "audio_resampler_driver.h"
#include "../config_file_userdata.h"
#ifdef RARCH_INTERNAL
#include "../performance_counters.h"
#endif
#include "../list_special.h"
static const rarch_resampler_t *resampler_drivers[] = {
&sinc_resampler,
&CC_resampler,
&nearest_resampler,
&null_resampler,
NULL,
};
@@ -54,7 +57,7 @@ static int find_resampler_driver_index(const char *ident)
unsigned i;
for (i = 0; resampler_drivers[i]; i++)
if (strcasecmp(ident, resampler_drivers[i]->ident) == 0)
if (string_is_equal_noncase(ident, resampler_drivers[i]->ident))
return i;
return -1;
}
@@ -89,7 +92,6 @@ const char *audio_resampler_driver_find_ident(int idx)
return drv->ident;
}
#ifndef DONT_HAVE_STRING_LIST
/**
* config_get_audio_resampler_driver_options:
*
@@ -101,7 +103,6 @@ const char* config_get_audio_resampler_driver_options(void)
{
return char_list_new_special(STRING_LIST_AUDIO_RESAMPLER_DRIVERS, NULL);
}
#endif
/**
* find_resampler_driver:
@@ -122,26 +123,9 @@ static const rarch_resampler_t *find_resampler_driver(const char *ident)
return resampler_drivers[0];
}
#ifndef RARCH_INTERNAL
#ifdef __cplusplus
extern "C" {
#endif
retro_get_cpu_features_t perf_get_cpu_features_cb;
#ifdef __cplusplus
}
#endif
#endif
static resampler_simd_mask_t resampler_get_cpu_features(void)
{
#ifdef RARCH_INTERNAL
return retro_get_cpu_features();
#else
return perf_get_cpu_features_cb();
#endif
return cpu_features_get();
}
/**
+8 -15
View File
@@ -18,16 +18,16 @@
#ifndef __AUDIO_RESAMPLER_DRIVER_H
#define __AUDIO_RESAMPLER_DRIVER_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stddef.h>
#include <stdint.h>
#include <stddef.h>
#include <math.h>
#include <boolean.h>
#include <boolean.h>
#include <retro_common_api.h>
#include <retro_miscellaneous.h>
#include <libretro.h>
RETRO_BEGIN_DECLS
#define RESAMPLER_SIMD_SSE (1 << 0)
#define RESAMPLER_SIMD_SSE2 (1 << 1)
@@ -140,6 +140,7 @@ typedef struct audio_frame_float
extern rarch_resampler_t sinc_resampler;
extern rarch_resampler_t CC_resampler;
extern rarch_resampler_t nearest_resampler;
extern rarch_resampler_t null_resampler;
#ifndef DONT_HAVE_STRING_LIST
/**
@@ -199,14 +200,6 @@ bool rarch_resampler_realloc(void **re, const rarch_resampler_t **backend,
(backend)->process(handle, data); \
} while(0)
#ifndef RARCH_INTERNAL
#include "libretro.h"
extern retro_get_cpu_features_t perf_get_cpu_features_cb;
#endif
#ifdef __cplusplus
}
#endif
RETRO_END_DECLS
#endif
+28 -8
View File
@@ -17,11 +17,11 @@
#include <stdlib.h>
#include <string.h>
#include <queues/fifo_buffer.h>
#include <queues/fifo_queue.h>
#include <rthreads/rthreads.h>
#include "audio_thread_wrapper.h"
#include "../performance.h"
#include "../performance_counters.h"
#include "../verbosity.h"
typedef struct audio_thread
@@ -34,6 +34,7 @@ typedef struct audio_thread
scond_t *cond;
bool alive;
bool stopped;
bool stopped_ack;
bool is_paused;
bool use_float;
@@ -80,6 +81,7 @@ static void audio_thread_loop(void *data)
if (!thr->alive)
{
scond_signal(thr->cond);
thr->stopped_ack = true;
slock_unlock(thr->lock);
break;
}
@@ -88,12 +90,19 @@ static void audio_thread_loop(void *data)
{
thr->driver->stop(thr->driver_data);
while (thr->stopped)
{
/* If we stop right after start, we might not be able to properly ack.
* Signal in the loop instead. */
thr->stopped_ack = true;
scond_signal(thr->cond);
scond_wait(thr->cond, thr->lock);
}
thr->driver->start(thr->driver_data);
}
slock_unlock(thr->lock);
audio_driver_ctl(RARCH_AUDIO_CTL_CALLBACK, NULL);
audio_driver_callback();
}
RARCH_LOG("[Audio Thread]: Tearing down driver.\n");
@@ -105,9 +114,18 @@ static void audio_thread_block(audio_thread_t *thr)
if (!thr)
return;
if (thr->stopped)
return;
slock_lock(thr->lock);
thr->stopped_ack = false;
thr->stopped = true;
scond_signal(thr->cond);
/* Wait until audio driver actually goes to sleep. */
while (!thr->stopped_ack)
scond_wait(thr->cond, thr->lock);
slock_unlock(thr->lock);
}
@@ -167,11 +185,12 @@ static bool audio_thread_stop(void *data)
audio_thread_t *thr = (audio_thread_t*)data;
if (!thr)
return false;
return false;
audio_thread_block(thr);
thr->is_paused = true;
audio_driver_callback_set_state(false);
audio_driver_disable_callback();
return true;
}
@@ -183,7 +202,8 @@ static bool audio_thread_start(void *data)
if (!thr)
return false;
audio_driver_callback_set_state(true);
audio_driver_enable_callback();
thr->is_paused = false;
audio_thread_unblock(thr);
@@ -240,7 +260,7 @@ static const audio_driver_t audio_thread = {
};
/**
* rarch_threaded_audio_init:
* audio_init_thread:
* @out_driver : output driver
* @out_data : output audio data
* @device : audio device (optional)
@@ -255,7 +275,7 @@ static const audio_driver_t audio_thread = {
*
* Returns: true (1) if successful, otherwise false (0).
**/
bool rarch_threaded_audio_init(const audio_driver_t **out_driver,
bool audio_init_thread(const audio_driver_t **out_driver,
void **out_data, const char *device, unsigned audio_out_rate,
unsigned latency, const audio_driver_t *drv)
{
+2 -2
View File
@@ -22,7 +22,7 @@
#include "audio_driver.h"
/**
* rarch_threaded_audio_init:
* audio_init_thread:
* @out_driver : output driver
* @out_data : output audio data
* @device : audio device (optional)
@@ -36,7 +36,7 @@
*
* Returns: true (1) if successful, otherwise false (0).
**/
bool rarch_threaded_audio_init(const audio_driver_t **out_driver, void **out_data,
bool audio_init_thread(const audio_driver_t **out_driver, void **out_data,
const char *device, unsigned out_rate, unsigned latency,
const audio_driver_t *driver);
-435
View File
@@ -1,435 +0,0 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2014-2016 - Ali Bouhlel ( [email protected] )
*
* RetroArch 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 Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch 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 RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <boolean.h>
#include "audio_utils.h"
#if defined(__SSE2__)
#include <emmintrin.h>
#elif defined(__ALTIVEC__)
#include <altivec.h>
#endif
#ifdef RARCH_INTERNAL
#include "../performance.h"
#endif
/**
* audio_convert_s16_to_float_C:
* @out : output buffer
* @in : input buffer
* @samples : size of samples to be converted
* @gain : gain applied to the audio volume
*
* Converts audio samples from signed integer 16-bit
* to floating point.
*
* C implementation callback function.
**/
void audio_convert_s16_to_float_C(float *out,
const int16_t *in, size_t samples, float gain)
{
size_t i;
gain = gain / 0x8000;
for (i = 0; i < samples; i++)
out[i] = (float)in[i] * gain;
}
/**
* audio_convert_float_to_s16_C:
* @out : output buffer
* @in : input buffer
* @samples : size of samples to be converted
*
* Converts audio samples from floating point
* to signed integer 16-bit.
*
* C implementation callback function.
**/
void audio_convert_float_to_s16_C(int16_t *out,
const float *in, size_t samples)
{
size_t i;
for (i = 0; i < samples; i++)
{
int32_t val = (int32_t)(in[i] * 0x8000);
out[i] = (val > 0x7FFF) ? 0x7FFF :
(val < -0x8000 ? -0x8000 : (int16_t)val);
}
}
#if defined(__SSE2__)
/**
* audio_convert_s16_to_float_SSE2:
* @out : output buffer
* @in : input buffer
* @samples : size of samples to be converted
* @gain : gain applied to the audio volume
*
* Converts audio samples from signed integer 16-bit
* to floating point.
*
* SSE2 implementation callback function.
**/
void audio_convert_s16_to_float_SSE2(float *out,
const int16_t *in, size_t samples, float gain)
{
size_t i;
float fgain = gain / UINT32_C(0x80000000);
__m128 factor = _mm_set1_ps(fgain);
for (i = 0; i + 8 <= samples; i += 8, in += 8, out += 8)
{
__m128i input = _mm_loadu_si128((const __m128i *)in);
__m128i regs_l = _mm_unpacklo_epi16(_mm_setzero_si128(), input);
__m128i regs_r = _mm_unpackhi_epi16(_mm_setzero_si128(), input);
__m128 output_l = _mm_mul_ps(_mm_cvtepi32_ps(regs_l), factor);
__m128 output_r = _mm_mul_ps(_mm_cvtepi32_ps(regs_r), factor);
_mm_storeu_ps(out + 0, output_l);
_mm_storeu_ps(out + 4, output_r);
}
audio_convert_s16_to_float_C(out, in, samples - i, gain);
}
/**
* audio_convert_float_to_s16_SSE2:
* @out : output buffer
* @in : input buffer
* @samples : size of samples to be converted
*
* Converts audio samples from floating point
* to signed integer 16-bit.
*
* SSE2 implementation callback function.
**/
void audio_convert_float_to_s16_SSE2(int16_t *out,
const float *in, size_t samples)
{
size_t i;
__m128 factor = _mm_set1_ps((float)0x8000);
for (i = 0; i + 8 <= samples; i += 8, in += 8, out += 8)
{
__m128 input_l = _mm_loadu_ps(in + 0);
__m128 input_r = _mm_loadu_ps(in + 4);
__m128 res_l = _mm_mul_ps(input_l, factor);
__m128 res_r = _mm_mul_ps(input_r, factor);
__m128i ints_l = _mm_cvtps_epi32(res_l);
__m128i ints_r = _mm_cvtps_epi32(res_r);
__m128i packed = _mm_packs_epi32(ints_l, ints_r);
_mm_storeu_si128((__m128i *)out, packed);
}
audio_convert_float_to_s16_C(out, in, samples - i);
}
#elif defined(__ALTIVEC__)
/**
* audio_convert_s16_to_float_altivec:
* @out : output buffer
* @in : input buffer
* @samples : size of samples to be converted
* @gain : gain applied to the audio volume
*
* Converts audio samples from signed integer 16-bit
* to floating point.
*
* AltiVec implementation callback function.
**/
void audio_convert_s16_to_float_altivec(float *out,
const int16_t *in, size_t samples, float gain)
{
size_t samples_in = samples;
/* Unaligned loads/store is a bit expensive, so we
* optimize for the good path (very likely). */
if (((uintptr_t)out & 15) + ((uintptr_t)in & 15) == 0)
{
size_t i;
const vector float gain_vec = { gain, gain , gain, gain };
const vector float zero_vec = { 0.0f, 0.0f, 0.0f, 0.0f};
for (i = 0; i + 8 <= samples; i += 8, in += 8, out += 8)
{
vector signed short input = vec_ld(0, in);
vector signed int hi = vec_unpackh(input);
vector signed int lo = vec_unpackl(input);
vector float out_hi = vec_madd(vec_ctf(hi, 15), gain_vec, zero_vec);
vector float out_lo = vec_madd(vec_ctf(lo, 15), gain_vec, zero_vec);
vec_st(out_hi, 0, out);
vec_st(out_lo, 16, out);
}
samples_in -= i;
}
audio_convert_s16_to_float_C(out, in, samples_in, gain);
}
/**
* audio_convert_float_to_s16_altivec:
* @out : output buffer
* @in : input buffer
* @samples : size of samples to be converted
*
* Converts audio samples from floating point
* to signed integer 16-bit.
*
* AltiVec implementation callback function.
**/
void audio_convert_float_to_s16_altivec(int16_t *out,
const float *in, size_t samples)
{
int samples_in = samples;
/* Unaligned loads/store is a bit expensive,
* so we optimize for the good path (very likely). */
if (((uintptr_t)out & 15) + ((uintptr_t)in & 15) == 0)
{
size_t i;
for (i = 0; i + 8 <= samples; i += 8, in += 8, out += 8)
{
vector float input0 = vec_ld( 0, in);
vector float input1 = vec_ld(16, in);
vector signed int result0 = vec_cts(input0, 15);
vector signed int result1 = vec_cts(input1, 15);
vec_st(vec_packs(result0, result1), 0, out);
}
samples_in -= i;
}
audio_convert_float_to_s16_C(out, in, samples_in);
}
#elif defined(__ARM_NEON__) && !defined(VITA)
/* Avoid potential hard-float/soft-float ABI issues. */
void audio_convert_s16_float_asm(float *out, const int16_t *in,
size_t samples, const float *gain);
/**
* audio_convert_s16_to_float_neon:
* @out : output buffer
* @in : input buffer
* @samples : size of samples to be converted
* @gain : gain applied to the audio volume
*
* Converts audio samples from signed integer 16-bit
* to floating point.
*
* ARM NEON implementation callback function.
**/
static void audio_convert_s16_to_float_neon(float *out,
const int16_t *in, size_t samples, float gain)
{
size_t aligned_samples = samples & ~7;
if (aligned_samples)
audio_convert_s16_float_asm(out, in, aligned_samples, &gain);
/* Could do all conversion in ASM, but keep it simple for now. */
audio_convert_s16_to_float_C(out + aligned_samples, in + aligned_samples,
samples - aligned_samples, gain);
}
void audio_convert_float_s16_asm(int16_t *out, const float *in, size_t samples);
/**
* audio_convert_float_to_s16_neon:
* @out : output buffer
* @in : input buffer
* @samples : size of samples to be converted
*
* Converts audio samples from floating point
* to signed integer 16-bit.
*
* ARM NEON implementation callback function.
**/
static void audio_convert_float_to_s16_neon(int16_t *out,
const float *in, size_t samples)
{
size_t aligned_samples = samples & ~7;
if (aligned_samples)
audio_convert_float_s16_asm(out, in, aligned_samples);
audio_convert_float_to_s16_C(out + aligned_samples, in + aligned_samples,
samples - aligned_samples);
}
#elif defined(_MIPS_ARCH_ALLEGREX)
/**
* audio_convert_s16_to_float_ALLEGREX:
* @out : output buffer
* @in : input buffer
* @samples : size of samples to be converted
* @gain : gain applied to the audio volume
*
* Converts audio samples from signed integer 16-bit
* to floating point.
*
* MIPS ALLEGREX implementation callback function.
**/
void audio_convert_s16_to_float_ALLEGREX(float *out,
const int16_t *in, size_t samples, float gain)
{
#ifdef DEBUG
/* Make sure the buffer is 16 byte aligned, this should be the
* default behaviour of malloc in the PSPSDK.
* Only the output buffer can be assumed to be 16-byte aligned. */
retro_assert(((uintptr_t)out & 0xf) == 0);
#endif
size_t i;
gain = gain / 0x8000;
__asm__ (
".set push \n"
".set noreorder \n"
"mtv %0, s200 \n"
".set pop \n"
::"r"(gain));
for (i = 0; i + 16 <= samples; i += 16)
{
__asm__ (
".set push \n"
".set noreorder \n"
"lv.s s100, 0(%0) \n"
"lv.s s101, 4(%0) \n"
"lv.s s110, 8(%0) \n"
"lv.s s111, 12(%0) \n"
"lv.s s120, 16(%0) \n"
"lv.s s121, 20(%0) \n"
"lv.s s130, 24(%0) \n"
"lv.s s131, 28(%0) \n"
"vs2i.p c100, c100 \n"
"vs2i.p c110, c110 \n"
"vs2i.p c120, c120 \n"
"vs2i.p c130, c130 \n"
"vi2f.q c100, c100, 16 \n"
"vi2f.q c110, c110, 16 \n"
"vi2f.q c120, c120, 16 \n"
"vi2f.q c130, c130, 16 \n"
"vmscl.q e100, e100, s200 \n"
"sv.q c100, 0(%1) \n"
"sv.q c110, 16(%1) \n"
"sv.q c120, 32(%1) \n"
"sv.q c130, 48(%1) \n"
".set pop \n"
:: "r"(in + i), "r"(out + i));
}
for (; i < samples; i++)
out[i] = (float)in[i] * gain;
}
/**
* audio_convert_float_to_s16_ALLEGREX:
* @out : output buffer
* @in : input buffer
* @samples : size of samples to be converted
*
* Converts audio samples from floating point
* to signed integer 16-bit.
*
* MIPS ALLEGREX implementation callback function.
**/
void audio_convert_float_to_s16_ALLEGREX(int16_t *out,
const float *in, size_t samples)
{
size_t i;
#ifdef DEBUG
/* Make sure the buffers are 16 byte aligned, this should be
* the default behaviour of malloc in the PSPSDK.
* Both buffers are allocated by RetroArch, so can assume alignment. */
retro_assert(((uintptr_t)in & 0xf) == 0);
retro_assert(((uintptr_t)out & 0xf) == 0);
#endif
for (i = 0; i + 8 <= samples; i += 8)
{
__asm__ (
".set push \n"
".set noreorder \n"
"lv.q c100, 0(%0) \n"
"lv.q c110, 16(%0) \n"
"vf2in.q c100, c100, 31 \n"
"vf2in.q c110, c110, 31 \n"
"vi2s.q c100, c100 \n"
"vi2s.q c102, c110 \n"
"sv.q c100, 0(%1) \n"
".set pop \n"
:: "r"(in + i), "r"(out + i));
}
for (; i < samples; i++)
{
int32_t val = (int32_t)(in[i] * 0x8000);
out[i] = (val > 0x7FFF) ? 0x7FFF :
(val < -0x8000 ? -0x8000 : (int16_t)val);
}
}
#endif
#ifndef RARCH_INTERNAL
#ifdef __cplusplus
extern "C" {
#endif
retro_get_cpu_features_t perf_get_cpu_features_cb;
#ifdef __cplusplus
}
#endif
#endif
static unsigned audio_convert_get_cpu_features(void)
{
#ifdef RARCH_INTERNAL
return retro_get_cpu_features();
#else
return perf_get_cpu_features_cb();
#endif
}
/**
* audio_convert_init_simd:
*
* Sets up function pointers for audio conversion
* functions based on CPU features.
**/
void audio_convert_init_simd(void)
{
unsigned cpu = audio_convert_get_cpu_features();
(void)cpu;
#if defined(__ARM_NEON__) && !defined(VITA)
audio_convert_s16_to_float_arm = (cpu & RETRO_SIMD_NEON) ?
audio_convert_s16_to_float_neon : audio_convert_s16_to_float_C;
audio_convert_float_to_s16_arm = (cpu & RETRO_SIMD_NEON) ?
audio_convert_float_to_s16_neon : audio_convert_float_to_s16_C;
#endif
}
-184
View File
@@ -1,184 +0,0 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
*
* RetroArch 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 Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch 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 RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef AUDIO_UTILS_H
#define AUDIO_UTILS_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#include <stddef.h>
#ifdef HAVE_CONFIG_H
#include "../config.h"
#endif
#if defined(__SSE2__)
#define audio_convert_s16_to_float audio_convert_s16_to_float_SSE2
#define audio_convert_float_to_s16 audio_convert_float_to_s16_SSE2
/**
* audio_convert_s16_to_float_SSE2:
* @out : output buffer
* @in : input buffer
* @samples : size of samples to be converted
* @gain : gain applied to the audio volume
*
* Converts audio samples from signed integer 16-bit
* to floating point.
*
* SSE2 implementation callback function.
**/
void audio_convert_s16_to_float_SSE2(float *out,
const int16_t *in, size_t samples, float gain);
/**
* audio_convert_float_to_s16_SSE2:
* @out : output buffer
* @in : input buffer
* @samples : size of samples to be converted
*
* Converts audio samples from floating point
* to signed integer 16-bit.
*
* SSE2 implementation callback function.
**/
void audio_convert_float_to_s16_SSE2(int16_t *out,
const float *in, size_t samples);
#elif defined(__ALTIVEC__)
#define audio_convert_s16_to_float audio_convert_s16_to_float_altivec
#define audio_convert_float_to_s16 audio_convert_float_to_s16_altivec
/**
* audio_convert_s16_to_float_altivec:
* @out : output buffer
* @in : input buffer
* @samples : size of samples to be converted
* @gain : gain applied to the audio volume
*
* Converts audio samples from signed integer 16-bit
* to floating point.
*
* AltiVec implementation callback function.
**/
void audio_convert_s16_to_float_altivec(float *out,
const int16_t *in, size_t samples, float gain);
/**
* audio_convert_float_to_s16_altivec:
* @out : output buffer
* @in : input buffer
* @samples : size of samples to be converted
*
* Converts audio samples from floating point
* to signed integer 16-bit.
*
* AltiVec implementation callback function.
**/
void audio_convert_float_to_s16_altivec(int16_t *out,
const float *in, size_t samples);
#elif defined(__ARM_NEON__) && !defined(VITA)
#define audio_convert_s16_to_float audio_convert_s16_to_float_arm
#define audio_convert_float_to_s16 audio_convert_float_to_s16_arm
void (*audio_convert_s16_to_float_arm)(float *out,
const int16_t *in, size_t samples, float gain);
void (*audio_convert_float_to_s16_arm)(int16_t *out,
const float *in, size_t samples);
#elif defined(_MIPS_ARCH_ALLEGREX)
#define audio_convert_s16_to_float audio_convert_s16_to_float_ALLEGREX
#define audio_convert_float_to_s16 audio_convert_float_to_s16_ALLEGREX
/**
* audio_convert_s16_to_float_ALLEGREX:
* @out : output buffer
* @in : input buffer
* @samples : size of samples to be converted
* @gain : gain applied to the audio volume
*
* Converts audio samples from signed integer 16-bit
* to floating point.
*
* MIPS ALLEGREX implementation callback function.
**/
void audio_convert_s16_to_float_ALLEGREX(float *out,
const int16_t *in, size_t samples, float gain);
/**
* audio_convert_float_to_s16_ALLEGREX:
* @out : output buffer
* @in : input buffer
* @samples : size of samples to be converted
*
* Converts audio samples from floating point
* to signed integer 16-bit.
*
* MIPS ALLEGREX implementation callback function.
**/
void audio_convert_float_to_s16_ALLEGREX(int16_t *out,
const float *in, size_t samples);
#else
#define audio_convert_s16_to_float audio_convert_s16_to_float_C
#define audio_convert_float_to_s16 audio_convert_float_to_s16_C
#endif
/**
* audio_convert_s16_to_float_C:
* @out : output buffer
* @in : input buffer
* @samples : size of samples to be converted
* @gain : gain applied to the audio volume
*
* Converts audio samples from signed integer 16-bit
* to floating point.
*
* C implementation callback function.
**/
void audio_convert_s16_to_float_C(float *out,
const int16_t *in, size_t samples, float gain);
/**
* audio_convert_float_to_s16_C:
* @out : output buffer
* @in : input buffer
* @samples : size of samples to be converted
*
* Converts audio samples from floating point
* to signed integer 16-bit.
*
* C implementation callback function.
**/
void audio_convert_float_to_s16_C(int16_t *out,
const float *in, size_t samples);
/**
* audio_convert_init_simd:
*
* Sets up function pointers for audio conversion
* functions based on CPU features.
**/
void audio_convert_init_simd(void);
#ifdef __cplusplus
}
#endif
#endif
+67
View File
@@ -15,6 +15,8 @@
#include <stdlib.h>
#include <lists/string_list.h>
#include <alsa/asoundlib.h>
#include "../audio_driver.h"
@@ -154,7 +156,10 @@ error:
if (alsa)
{
if (alsa->pcm)
{
snd_pcm_close(alsa->pcm);
snd_config_update_free_global();
}
free(alsa);
}
@@ -296,7 +301,9 @@ static void alsa_free(void *data)
{
snd_pcm_drop(alsa->pcm);
snd_pcm_close(alsa->pcm);
snd_config_update_free_global();
}
free(alsa);
}
}
@@ -324,6 +331,64 @@ static size_t alsa_buffer_size(void *data)
return alsa->buffer_size;
}
static void *alsa_device_list_new(void *data)
{
void **hints, **n;
union string_list_elem_attr attr;
struct string_list *s = string_list_new();
if (!s)
return NULL;
attr.i = 0;
if (snd_device_name_hint(-1, "pcm", &hints) != 0)
goto error;
n = hints;
while (*n != NULL)
{
char *name = snd_device_name_get_hint(*n, "NAME");
char *io = snd_device_name_get_hint(*n, "IOID");
char *desc = snd_device_name_get_hint(*n, "DESC");
/* description of device IOID - input / output identifcation
* ("Input" or "Output"), NULL means both) */
if (!io || !strcmp(io,"Output"))
string_list_append(s, name, attr);
if (name)
free(name);
if (io)
free(io);
if (desc)
free(desc);
n++;
}
/* free hint buffer too */
snd_device_name_free_hint(hints);
return s;
error:
string_list_free(s);
return NULL;
}
static void alsa_device_list_free(void *data, void *array_list_data)
{
struct string_list *s = (struct string_list*)array_list_data;
if (!s)
return;
string_list_free(s);
}
audio_driver_t audio_alsa = {
alsa_init,
alsa_write,
@@ -334,6 +399,8 @@ audio_driver_t audio_alsa = {
alsa_free,
alsa_use_float,
"alsa",
alsa_device_list_new,
alsa_device_list_free,
alsa_write_avail,
alsa_buffer_size,
};
+4 -1
View File
@@ -227,7 +227,8 @@ static ssize_t alsa_qsa_write(void *data, const void *buf, size_t size)
while (size)
{
size_t avail_write = min(alsa->buf_size - alsa->buffer_ptr, size);
size_t avail_write = MIN(alsa->buf_size - alsa->buffer_ptr, size);
if (avail_write)
{
memcpy(alsa->buffer[alsa->buffer_index] +
@@ -376,6 +377,8 @@ audio_driver_t audio_alsa = {
alsa_qsa_free,
alsa_qsa_use_float,
"alsa",
NULL,
NULL,
alsa_qsa_write_avail,
alsa_qsa_buffer_size,
};
+72 -5
View File
@@ -16,10 +16,12 @@
#include <stdlib.h>
#include <lists/string_list.h>
#include <alsa/asoundlib.h>
#include <rthreads/rthreads.h>
#include <queues/fifo_buffer.h>
#include <queues/fifo_queue.h>
#include "../audio_driver.h"
#include "../../configuration.h"
@@ -66,7 +68,7 @@ static void alsa_worker_thread(void *data)
snd_pcm_sframes_t frames;
slock_lock(alsa->fifo_lock);
avail = fifo_read_avail(alsa->buffer);
fifo_size = min(alsa->period_size, avail);
fifo_size = MIN(alsa->period_size, avail);
fifo_read(alsa->buffer, buf, fifo_size);
scond_signal(alsa->cond);
slock_unlock(alsa->fifo_lock);
@@ -130,7 +132,9 @@ static void alsa_thread_free(void *data)
{
if (alsa->worker_thread)
{
slock_lock(alsa->cond_lock);
alsa->thread_dead = true;
slock_unlock(alsa->cond_lock);
sthread_join(alsa->worker_thread);
}
if (alsa->buffer)
@@ -252,11 +256,14 @@ static ssize_t alsa_thread_write(void *data, const void *buf, size_t size)
{
size_t avail;
size_t write_amt;
slock_lock(alsa->fifo_lock);
avail = fifo_write_avail(alsa->buffer);
write_amt = min(avail, size);
avail = fifo_write_avail(alsa->buffer);
write_amt = MIN(avail, size);
fifo_write(alsa->buffer, buf, write_amt);
slock_unlock(alsa->fifo_lock);
return write_amt;
}
else
@@ -278,7 +285,7 @@ static ssize_t alsa_thread_write(void *data, const void *buf, size_t size)
}
else
{
size_t write_amt = min(size - written, avail);
size_t write_amt = MIN(size - written, avail);
fifo_write(alsa->buffer, (const char*)buf + written, write_amt);
slock_unlock(alsa->fifo_lock);
written += write_amt;
@@ -339,6 +346,64 @@ static size_t alsa_thread_buffer_size(void *data)
return alsa->buffer_size;
}
static void *alsa_device_list_new(void *data)
{
void **hints, **n;
union string_list_elem_attr attr;
struct string_list *s = string_list_new();
if (!s)
return NULL;
attr.i = 0;
if (snd_device_name_hint(-1, "pcm", &hints) != 0)
goto error;
n = hints;
while (*n != NULL)
{
char *name = snd_device_name_get_hint(*n, "NAME");
char *io = snd_device_name_get_hint(*n, "IOID");
char *desc = snd_device_name_get_hint(*n, "DESC");
/* description of device IOID - input / output identifcation
* ("Input" or "Output"), NULL means both) */
if (!io || !strcmp(io,"Output"))
string_list_append(s, name, attr);
if (name)
free(name);
if (io)
free(io);
if (desc)
free(desc);
n++;
}
/* free hint buffer too */
snd_device_name_free_hint(hints);
return s;
error:
string_list_free(s);
return NULL;
}
static void alsa_device_list_free(void *data, void *array_list_data)
{
struct string_list *s = (struct string_list*)array_list_data;
if (!s)
return;
string_list_free(s);
}
audio_driver_t audio_alsathread = {
alsa_thread_init,
alsa_thread_write,
@@ -349,6 +414,8 @@ audio_driver_t audio_alsathread = {
alsa_thread_free,
alsa_thread_use_float,
"alsathread",
alsa_device_list_new,
alsa_device_list_free,
alsa_thread_write_avail,
alsa_thread_buffer_size,
};
+16 -2
View File
@@ -27,9 +27,10 @@
#include <AudioUnit/AUComponent.h>
#include <boolean.h>
#include <queues/fifo_buffer.h>
#include <queues/fifo_queue.h>
#include <rthreads/rthreads.h>
#include <retro_endianness.h>
#include <string/stdstring.h>
#include "../audio_driver.h"
#include "../../configuration.h"
@@ -174,7 +175,7 @@ static void choose_output_device(coreaudio_t *dev, const char* device)
if (AudioObjectGetPropertyData(devices[i],
&propaddr, 0, 0, &size, device_name) == noErr
&& !strcmp(device_name, device))
&& string_is_equal(device_name, device))
{
AudioUnitSetProperty(dev->dev, kAudioOutputUnitProperty_CurrentDevice,
kAudioUnitScope_Global, 0, &devices[i], sizeof(AudioDeviceID));
@@ -439,6 +440,17 @@ static size_t coreaudio_buffer_size(void *data)
return dev->buffer_size;
}
static void *coreaudio_device_list_new(void *data)
{
/* TODO/FIXME */
return NULL;
}
static void coreaudio_device_list_free(void *data, void *array_list_data)
{
/* TODO/FIXME */
}
audio_driver_t audio_coreaudio = {
coreaudio_init,
coreaudio_write,
@@ -449,6 +461,8 @@ audio_driver_t audio_coreaudio = {
coreaudio_free,
coreaudio_use_float,
"coreaudio",
coreaudio_device_list_new,
coreaudio_device_list_free,
coreaudio_write_avail,
coreaudio_buffer_size,
};
+6 -4
View File
@@ -18,7 +18,7 @@
#include "../audio_driver.h"
#include "../../configuration.h"
#include "../../performance.h"
#include "../../performance_counters.h"
#include "../../runloop.h"
typedef struct
@@ -169,8 +169,8 @@ static ssize_t ctr_csnd_audio_write(void *data, const void *buf, size_t size)
(void)samples_played;
(void)current_tick;
rarch_perf_init(&ctraudio_f, "ctraudio_f");
retro_perf_start(&ctraudio_f);
performance_counter_init(&ctraudio_f, "ctraudio_f");
performance_counter_start(&ctraudio_f);
ctr_csnd_audio_update_playpos(ctr);
@@ -202,7 +202,7 @@ static ssize_t ctr_csnd_audio_write(void *data, const void *buf, size_t size)
GSPGPU_FlushDataCache(ctr->l, CTR_CSND_AUDIO_SIZE);
GSPGPU_FlushDataCache(ctr->r, CTR_CSND_AUDIO_SIZE);
retro_perf_stop(&ctraudio_f);
performance_counter_stop(&ctraudio_f);
return size;
}
@@ -300,6 +300,8 @@ audio_driver_t audio_ctr_csnd = {
ctr_csnd_audio_free,
ctr_csnd_audio_use_float,
"csnd",
NULL,
NULL,
ctr_csnd_audio_write_avail,
ctr_csnd_audio_buffer_size
};
+6 -4
View File
@@ -18,7 +18,7 @@
#include "../audio_driver.h"
#include "../../configuration.h"
#include "../../performance.h"
#include "../../performance_counters.h"
#include "../../runloop.h"
#include "../../ctr/ctr_debug.h"
@@ -116,8 +116,8 @@ static ssize_t ctr_dsp_audio_write(void *data, const void *buf, size_t size)
}
}
rarch_perf_init(&ctraudio_dsp_f, "ctraudio_dsp_f");
retro_perf_start(&ctraudio_dsp_f);
performance_counter_init(&ctraudio_dsp_f, "ctraudio_dsp_f");
performance_counter_start(&ctraudio_dsp_f);
pos = ctr->pos << 2;
@@ -140,7 +140,7 @@ static ssize_t ctr_dsp_audio_write(void *data, const void *buf, size_t size)
ctr->pos += size >> 2;
ctr->pos &= CTR_DSP_AUDIO_COUNT_MASK;
retro_perf_stop(&ctraudio_dsp_f);
performance_counter_stop(&ctraudio_dsp_f);
return size;
}
@@ -214,6 +214,8 @@ audio_driver_t audio_ctr_dsp = {
ctr_dsp_audio_free,
ctr_dsp_audio_use_float,
"dsp",
NULL,
NULL,
ctr_dsp_audio_write_avail,
ctr_dsp_audio_buffer_size
};
+3 -1
View File
@@ -32,7 +32,7 @@
#include <retro_inline.h>
#include <retro_miscellaneous.h>
#include <rthreads/rthreads.h>
#include <queues/fifo_buffer.h>
#include <queues/fifo_queue.h>
#include "../audio_driver.h"
#include "../../configuration.h"
@@ -489,6 +489,8 @@ audio_driver_t audio_dsound = {
dsound_free,
dsound_use_float,
"dsound",
NULL,
NULL,
dsound_write_avail,
dsound_buffer_size,
};
+3 -14
View File
@@ -31,19 +31,6 @@
#include "../../configuration.h"
#include "../../defines/gx_defines.h"
#define CHUNK_FRAMES 64
#define CHUNK_SIZE (CHUNK_FRAMES * sizeof(uint32_t))
#define BLOCKS 16
#ifdef GEKKO
#define AIInit AUDIO_Init
#define AIInitDMA AUDIO_InitDMA
#define AIStartDMA AUDIO_StartDMA
#define AIStopDMA AUDIO_StopDMA
#define AIRegisterDMACallback AUDIO_RegisterDMACallback
#define AISetDSPSampleRate AUDIO_SetDSPSampleRate
#endif
typedef struct
{
uint32_t data[BLOCKS][CHUNK_FRAMES];
@@ -218,7 +205,7 @@ static void gx_audio_free(void *data)
AIRegisterDMACallback(NULL);
if (wa->cond)
LWP_CloseQueue(wa->cond);
OSCloseThreadQueue(wa->cond);
wa->cond = 0;
free(data);
@@ -254,6 +241,8 @@ audio_driver_t audio_gx = {
gx_audio_free,
gx_audio_use_float,
"gx",
NULL,
NULL,
gx_audio_write_avail,
gx_audio_buffer_size,
};
+17
View File
@@ -41,8 +41,10 @@ typedef struct jack
bool nonblock;
bool is_paused;
#ifdef HAVE_THREADS
scond_t *cond;
slock_t *cond_lock;
#endif
size_t buffer_size;
} jack_t;
@@ -54,7 +56,9 @@ static int process_cb(jack_nframes_t nframes, void *data)
if (nframes <= 0)
{
#ifdef HAVE_THREADS
scond_signal(jd->cond);
#endif
return 0;
}
@@ -74,7 +78,9 @@ static int process_cb(jack_nframes_t nframes, void *data)
for (f = min_avail; f < nframes; f++)
out[f] = 0.0f;
}
#ifdef HAVE_THREADS
scond_signal(jd->cond);
#endif
return 0;
}
@@ -86,7 +92,9 @@ static void shutdown_cb(void *data)
return;
jd->shutdown = true;
#ifdef HAVE_THREADS
scond_signal(jd->cond);
#endif
}
static int parse_ports(char **dest_ports, const char **jports)
@@ -149,8 +157,10 @@ static void *ja_init(const char *device, unsigned rate, unsigned latency)
if (!jd)
return NULL;
#ifdef HAVE_THREADS
jd->cond = scond_new();
jd->cond_lock = slock_new();
#endif
jd->client = jack_client_open("RetroArch", JackNullOption, NULL);
if (jd->client == NULL)
@@ -216,6 +226,7 @@ static void *ja_init(const char *device, unsigned rate, unsigned latency)
error:
if (jports != NULL)
jack_free(jports);
free(jd);
return NULL;
}
@@ -258,12 +269,14 @@ static size_t write_buffer(jack_t *jd, const float *buf, size_t size)
}
written += write_frames;
}
#ifdef HAVE_THREADS
else
{
slock_lock(jd->cond_lock);
scond_wait(jd->cond, jd->cond_lock);
slock_unlock(jd->cond_lock);
}
#endif
if (jd->nonblock)
break;
@@ -327,10 +340,12 @@ static void ja_free(void *data)
if (jd->buffer[i] != NULL)
jack_ringbuffer_free(jd->buffer[i]);
#ifdef HAVE_THREADS
if (jd->cond_lock)
slock_free(jd->cond_lock);
if (jd->cond)
scond_free(jd->cond);
#endif
free(jd);
}
@@ -362,6 +377,8 @@ audio_driver_t audio_jack = {
ja_free,
ja_use_float,
"jack",
NULL,
NULL,
ja_write_avail,
ja_buffer_size,
};
+2
View File
@@ -85,6 +85,8 @@ audio_driver_t audio_null = {
null_audio_free,
null_audio_use_float,
"null",
NULL,
NULL,
null_audio_write_avail,
NULL
};
+3 -1
View File
@@ -162,7 +162,7 @@ static bool al_get_buffer(al_t *al, ALuint *buffer)
static size_t al_fill_internal_buf(al_t *al, const void *buf, size_t size)
{
size_t read_size = min(BUFSIZE - al->tmpbuf_ptr, size);
size_t read_size = MIN(BUFSIZE - al->tmpbuf_ptr, size);
memcpy(al->tmpbuf + al->tmpbuf_ptr, buf, read_size);
al->tmpbuf_ptr += read_size;
return read_size;
@@ -267,6 +267,8 @@ audio_driver_t audio_openal = {
al_free,
al_use_float,
"openal",
NULL,
NULL,
al_write_avail,
al_buffer_size,
};
+3 -1
View File
@@ -255,7 +255,7 @@ static ssize_t sl_write(void *data, const void *buf_, size_t size)
slock_unlock(sl->lock);
}
avail_write = min(sl->buf_size - sl->buffer_ptr, size);
avail_write = MIN(sl->buf_size - sl->buffer_ptr, size);
if (avail_write)
{
@@ -313,6 +313,8 @@ audio_driver_t audio_opensl = {
sl_free,
sl_use_float,
"opensl",
NULL,
NULL,
sl_write_avail,
sl_buffer_size,
};
+2
View File
@@ -212,6 +212,8 @@ audio_driver_t audio_oss = {
oss_free,
oss_use_float,
"oss",
NULL,
NULL,
oss_write_avail,
oss_buffer_size,
};
+3 -1
View File
@@ -17,7 +17,7 @@
#include <stdlib.h>
#include <string.h>
#include <queues/fifo_buffer.h>
#include <queues/fifo_queue.h>
#include "../audio_driver.h"
#include "../../configuration.h"
@@ -247,6 +247,8 @@ audio_driver_t audio_ps3 = {
ps3_audio_free,
ps3_audio_use_float,
"ps3",
NULL,
NULL,
ps3_audio_write_avail,
NULL
};
+5 -3
View File
@@ -49,7 +49,7 @@ typedef struct psp_audio
#define AUDIO_BUFFER_SIZE_MASK (AUDIO_BUFFER_SIZE-1)
#ifdef VITA
#define PSP_THREAD_STOPPED PSP2_THREAD_STOPPED
#define PSP_THREAD_STOPPED SCE_THREAD_STOPPED
#else
#define SceKernelThreadInfo SceKernelThreadRunStatus
#define sceKernelGetThreadInfo sceKernelReferThreadRunStatus
@@ -60,8 +60,8 @@ static int audioMainLoop(SceSize args, void* argp)
psp_audio_t* psp = *((psp_audio_t**)argp);
#ifdef VITA
int port = sceAudioOutOpenPort(PSP2_AUDIO_OUT_PORT_TYPE_MAIN, AUDIO_OUT_COUNT,
psp->rate, PSP2_AUDIO_OUT_MODE_STEREO);
int port = sceAudioOutOpenPort(SCE_AUDIO_OUT_PORT_TYPE_MAIN, AUDIO_OUT_COUNT,
psp->rate, SCE_AUDIO_OUT_MODE_STEREO);
#else
sceAudioSRCChReserve(AUDIO_OUT_COUNT, psp->rate, 2);
#endif
@@ -286,6 +286,8 @@ audio_driver_t audio_psp = {
#else
"psp",
#endif
NULL,
NULL,
psp_write_avail,
psp_buffer_size,
};
+3 -3
View File
@@ -238,9 +238,7 @@ static ssize_t pulse_write(void *data, const void *buf_, size_t size)
pa_threaded_mainloop_lock(pa->mainloop);
while (size)
{
size_t writable = pa_stream_writable_size(pa->stream);
writable = min(size, writable);
size_t writable = MIN(size, pa_stream_writable_size(pa->stream));
if (writable)
{
@@ -345,6 +343,8 @@ audio_driver_t audio_pulse = {
pulse_free,
pulse_use_float,
"pulse",
NULL,
NULL,
pulse_write_avail,
pulse_buffer_size,
};
+4
View File
@@ -24,11 +24,13 @@
#include "../audio_driver.h"
#include "../../configuration.h"
#include "../../verbosity.h"
typedef struct
{
roar_vs_t *vss;
bool nonblocking;
bool is_paused;
} roar_t;
static void *ra_init(const char *device, unsigned rate, unsigned latency)
@@ -142,6 +144,8 @@ audio_driver_t audio_roar = {
ra_free,
ra_use_float,
"roar",
NULL,
NULL,
ra_write_avail,
NULL
};
+3 -1
View File
@@ -17,7 +17,7 @@
#include <boolean.h>
#include <queues/fifo_buffer.h>
#include <queues/fifo_queue.h>
#include <rthreads/rthreads.h>
#include "../audio_driver.h"
@@ -233,6 +233,8 @@ audio_driver_t audio_rsound = {
rs_free,
rs_use_float,
"rsound",
NULL,
NULL,
rs_write_avail,
rs_buffer_size,
};
+5 -12
View File
@@ -16,14 +16,6 @@
#ifndef __RSOUND_H
#define __RSOUND_H
#ifdef __cplusplus
extern "C" {
#endif
#if 0
#define STANDALONE
#endif
#include <sys/types.h>
#include <unistd.h>
#include <rthreads/rthreads.h>
@@ -32,7 +24,10 @@ extern "C" {
#include <stdint.h>
#include <stddef.h>
#include <queues/fifo_buffer.h>
#include <retro_common_api.h>
#include <queues/fifo_queue.h>
RETRO_BEGIN_DECLS
#ifdef _WIN32
#define RSD_DEFAULT_HOST "127.0.0.1" /* Stupid Windows. */
@@ -323,8 +318,6 @@ int rsd_pause (rsound_t *rd, int enable);
/* Frees an rsound_t struct. Make sure that the stream is properly closed down with rsd_stop() before calling rsd_free(). */
int rsd_free (rsound_t *rd);
#ifdef __cplusplus
}
#endif
RETRO_END_DECLS
#endif
+2
View File
@@ -110,6 +110,8 @@ audio_driver_t audio_rwebaudio = {
rwebaudio_free,
rwebaudio_use_float,
"rwebaudio",
NULL,
NULL,
rwebaudio_write_avail,
rwebaudio_buffer_size,
};
+13 -1
View File
@@ -23,7 +23,7 @@
#include <boolean.h>
#include <rthreads/rthreads.h>
#include <queues/fifo_buffer.h>
#include <queues/fifo_queue.h>
#include <retro_inline.h>
#include "../audio_driver.h"
@@ -35,8 +35,10 @@ typedef struct sdl_audio
bool nonblock;
bool is_paused;
#ifdef HAVE_THREADS
slock_t *lock;
scond_t *cond;
#endif
fifo_buffer_t *buffer;
} sdl_audio_t;
@@ -47,7 +49,9 @@ static void sdl_audio_cb(void *data, Uint8 *stream, int len)
size_t write_size = len > (int)avail ? avail : len;
fifo_read(sdl->buffer, stream, write_size);
#ifdef HAVE_THREADS
scond_signal(sdl->cond);
#endif
/* If underrun, fill rest with silence. */
memset(stream + write_size, 0, len - write_size);
@@ -109,8 +113,10 @@ static void *sdl_audio_init(const char *device,
settings->audio.out_rate = out.freq;
#ifdef HAVE_THREADS
sdl->lock = slock_new();
sdl->cond = scond_new();
#endif
RARCH_LOG("SDL audio: Requested %u ms latency, got %d ms\n",
latency, (int)(out.samples * 4 * 1000 / settings->audio.out_rate));
@@ -160,9 +166,11 @@ static ssize_t sdl_audio_write(void *data, const void *buf, size_t size)
if (avail == 0)
{
SDL_UnlockAudio();
#ifdef HAVE_THREADS
slock_lock(sdl->lock);
scond_wait(sdl->cond, sdl->lock);
slock_unlock(sdl->lock);
#endif
}
else
{
@@ -220,8 +228,10 @@ static void sdl_audio_free(void *data)
if (sdl)
{
fifo_free(sdl->buffer);
#ifdef HAVE_THREADS
slock_free(sdl->lock);
scond_free(sdl->cond);
#endif
}
free(sdl);
}
@@ -253,6 +263,8 @@ audio_driver_t audio_sdl = {
#else
"sdl",
#endif
NULL,
NULL,
sdl_audio_write_avail,
NULL
};
+3 -1
View File
@@ -194,7 +194,7 @@ static size_t xaudio2_write(xaudio2_t *handle, const void *buf, size_t bytes_)
while (bytes)
{
unsigned need = min(bytes, handle->bufsize - handle->bufptr);
unsigned need = MIN(bytes, handle->bufsize - handle->bufptr);
memcpy(handle->buf + handle->write_buffer * handle->bufsize + handle->bufptr,
buffer, need);
@@ -347,6 +347,8 @@ audio_driver_t audio_xa = {
xa_free,
xa_use_float,
"xaudio",
NULL,
NULL,
xa_write_avail,
xa_buffer_size,
};
+2
View File
@@ -146,6 +146,8 @@ audio_driver_t audio_xenon360 = {
xenon360_audio_free,
xenon360_use_float,
"xenon360",
NULL,
NULL,
xenon360_write_avail,
NULL
};
+2 -2
View File
@@ -271,7 +271,7 @@ static void resampler_CC_upsample(void *re_, struct resampler_data *data)
audio_frame_float_t *inp = (audio_frame_float_t*)data->data_in;
audio_frame_float_t *inp_max = (audio_frame_float_t*)(inp + data->input_frames);
audio_frame_float_t *outp = (audio_frame_float_t*)data->data_out;
float b = min(data->ratio, 1.00); /* cutoff frequency. */
float b = MIN(data->ratio, 1.00); /* cutoff frequency. */
float ratio = 1.0 / data->ratio;
__m128 vec_previous = _mm_loadu_ps((float*)&re->buffer[0]);
__m128 vec_current = _mm_loadu_ps((float*)&re->buffer[2]);
@@ -446,7 +446,7 @@ static void resampler_CC_upsample(void *re_, struct resampler_data *data)
audio_frame_float_t *inp_max = (audio_frame_float_t*)
(inp + data->input_frames);
audio_frame_float_t *outp = (audio_frame_float_t*)data->data_out;
float b = min(data->ratio, 1.00); /* cutoff frequency. */
float b = MIN(data->ratio, 1.00); /* cutoff frequency. */
float ratio = 1.0 / data->ratio;
while (inp != inp_max)
+48
View File
@@ -0,0 +1,48 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2014-2016 - Ali Bouhlel ( [email protected] )
*
* RetroArch 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 Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch 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 RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdint.h>
#include <stdlib.h>
#include <math.h>
#include "../audio_resampler_driver.h"
typedef struct rarch_null_resampler
{
void *empty;
} rarch_null_resampler_t;
static void resampler_null_process(
void *re_, struct resampler_data *data)
{
}
static void resampler_null_free(void *re_)
{
}
static void *resampler_null_init(const struct resampler_config *config,
double bandwidth_mod, resampler_simd_mask_t mask)
{
return (void*)0;
}
rarch_resampler_t null_resampler = {
resampler_null_init,
resampler_null_process,
resampler_null_free,
RESAMPLER_API_VERSION,
"null",
"null"
};
File renamed without changes.
+23 -26
View File
@@ -20,22 +20,19 @@ CFLAGS += -I$(LIBRETRO_COMM_DIR)/include -I../../
LDFLAGS += -lm
SHAREDOBJ += $(LIBRETRO_COMM_DIR)/memmap/memalign.o \
$(LIBRETRO_COMM_DIR)/string/string_list.o \
$(LIBRETRO_COMM_DIR)/file/config_file_userdata.o \
$(LIBRETRO_COMM_DIR)/lists/string_list.o \
../..//config_file_userdata.o \
../audio_resampler_driver.o \
$(LIBRETRO_COMM_DIR)/file/config_file.o \
$(LIBRETRO_COMM_DIR)/file/retro_file.o \
$(LIBRETRO_COMM_DIR)/streams/file_stream.o \
$(LIBRETRO_COMM_DIR)/string/stdstring.o \
$(LIBRETRO_COMM_DIR)/file/file_path.o \
$(LIBRETRO_COMM_DIR)/compat/compat.o \
$(LIBRETRO_COMM_DIR)/file/retro_stat.o \
$(LIBRETRO_COMM_DIR)/compat/compat_strl.o \
$(LIBRETRO_COMM_DIR)/hash/rhash.o \
all: $(TESTS)
resampler-sinc.o: ../audio_resampler_driver.c $(SHAREDOBJ)
$(CC) -c -o $@ $< $(CFLAGS)
resampler-cc.o: ../audio_resampler_driver.c $(SHAREDOBJ)
$(CC) -c -o $@ $< $(CFLAGS) -DRESAMPLER_IDENT='"CC"'
main-cc.o: main.c
$(CC) -c -o $@ $< $(CFLAGS) -DRESAMPLER_IDENT='"CC"'
@@ -45,16 +42,16 @@ snr-cc.o: snr.c
cc-resampler.o: ../drivers_resampler/cc_resampler.c
$(CC) -c -o $@ $< $(CFLAGS)
sinc-lowest.o: ../drivers_resampler/sinc.c
sinc-lowest.o: ../drivers_resampler/sinc_resampler.c
$(CC) -c -o $@ $< $(CFLAGS) -DSINC_LOWEST_QUALITY
sinc-lower.o: ../drivers_resampler/sinc.c
sinc-lower.o: ../drivers_resampler/sinc_resampler.c
$(CC) -c -o $@ $< $(CFLAGS) -DSINC_LOWER_QUALITY
sinc.o: ../drivers_resampler/sinc.c
sinc.o: ../drivers_resampler/sinc_resampler.c
$(CC) -c -o $@ $< $(CFLAGS)
nearest.o: ../drivers_resampler/nearest.c
nearest_resampler.o: ../drivers_resampler/nearest_resampler.c
$(CC) -c -o $@ $< $(CFLAGS)
sinc-higher.o: ../drivers_resampler/sinc.c
@@ -63,40 +60,40 @@ sinc-higher.o: ../drivers_resampler/sinc.c
sinc-highest.o: ../drivers_resampler/sinc.c
$(CC) -c -o $@ $< $(CFLAGS) -DSINC_HIGHEST_QUALITY
test-sinc-lowest: sinc-lowest.o ../audio_utils.o main.o resampler-sinc.o resampler-cc.o nearest.o $(SHAREDOBJ)
test-sinc-lowest: sinc-lowest.o ../audio_utils.o main.o nearest_resampler.o $(SHAREDOBJ)
$(CC) -o $@ $^ $(LDFLAGS)
test-snr-sinc-lowest: sinc-lowest.o ../audio_utils.o snr.o resampler-sinc.o resampler-cc.o nearest.o $(SHAREDOBJ)
test-snr-sinc-lowest: sinc-lowest.o ../audio_utils.o snr.o nearest_resampler.o $(SHAREDOBJ)
$(CC) -o $@ $^ $(LDFLAGS)
test-sinc-lower: sinc-lower.o ../audio_utils.o main.o resampler-sinc.o resampler-cc.o nearest.o $(SHAREDOBJ)
test-sinc-lower: sinc-lower.o ../audio_utils.o main.o nearest_resampler.o $(SHAREDOBJ)
$(CC) -o $@ $^ $(LDFLAGS)
test-snr-sinc-lower: sinc-lower.o ../audio_utils.o snr.o resampler-sinc.o resampler-cc.o nearest.o $(SHAREDOBJ)
test-snr-sinc-lower: sinc-lower.o ../audio_utils.o snr.o nearest_resampler.o $(SHAREDOBJ)
$(CC) -o $@ $^ $(LDFLAGS)
test-sinc: sinc.o ../audio_utils.o main.o resampler-sinc.o resampler-cc.o nearest.o $(SHAREDOBJ)
test-sinc: sinc.o ../audio_utils.o main.o nearest_resampler.o $(SHAREDOBJ)
$(CC) -o $@ $^ $(LDFLAGS)
test-snr-sinc: sinc.o ../audio_utils.o snr.o resampler-sinc.o resampler-cc.o nearest.o $(SHAREDOBJ)
test-snr-sinc: sinc.o ../audio_utils.o snr.o nearest_resampler.o $(SHAREDOBJ)
$(CC) -o $@ $^ $(LDFLAGS)
test-sinc-higher: sinc-higher.o ../audio_utils.o main.o resampler-sinc.o resampler-cc.o nearest.o $(SHAREDOBJ)
test-sinc-higher: sinc-higher.o ../audio_utils.o main.o nearest_resampler.o $(SHAREDOBJ)
$(CC) -o $@ $^ $(LDFLAGS)
test-snr-sinc-higher: sinc-higher.o ../audio_utils.o snr.o resampler-sinc.o resampler-cc.o nearest.o $(SHAREDOBJ)
test-snr-sinc-higher: sinc-higher.o ../audio_utils.o snr.o nearest_resampler.o $(SHAREDOBJ)
$(CC) -o $@ $^ $(LDFLAGS)
test-sinc-highest: sinc-highest.o ../audio_utils.o main.o resampler-sinc.o resampler-cc.o nearest.o $(SHAREDOBJ)
test-sinc-highest: sinc-highest.o ../audio_utils.o main.o nearest_resampler.o $(SHAREDOBJ)
$(CC) -o $@ $^ $(LDFLAGS)
test-snr-sinc-highest: sinc-highest.o ../audio_utils.o snr.o resampler-sinc.o resampler-cc.o nearest.o $(SHAREDOBJ)
test-snr-sinc-highest: sinc-highest.o ../audio_utils.o snr.o nearest_resampler.o $(SHAREDOBJ)
$(CC) -o $@ $^ $(LDFLAGS)
test-cc: cc-resampler.o ../audio_utils.o main-cc.o resampler-cc.o resampler-cc.o sinc.o nearest.o $(SHAREDOBJ)
test-cc: cc-resampler.o ../audio_utils.o main-cc.o resampler-cc.o sinc.o nearest_resampler.o $(SHAREDOBJ)
$(CC) -o $@ $^ $(LDFLAGS)
test-snr-cc: cc-resampler.o ../audio_utils.o snr-cc.o resampler-cc.o sinc.o nearest.o $(SHAREDOBJ)
test-snr-cc: cc-resampler.o ../audio_utils.o snr-cc.o resampler-cc.o sinc.o nearest_resampler.o $(SHAREDOBJ)
$(CC) -o $@ $^ $(LDFLAGS)
%.o: %.c
+2 -2
View File
@@ -80,7 +80,7 @@ int main(int argc, char *argv[])
uniform = (2.0 * rand()) / RAND_MAX - 1.0;
rate_mod = 1.0 + ratio_max_deviation * uniform;
audio_convert_s16_to_float(input_f, input_i, 1024, 1.0f);
convert_s16_to_float(input_f, input_i, 1024, 1.0f);
data.data_in = input_f;
data.data_out = output_f;
@@ -91,7 +91,7 @@ int main(int argc, char *argv[])
output_samples = data.output_frames * 2;
audio_convert_float_to_s16(output_i, output_f, output_samples);
convert_float_to_s16(output_i, output_f, output_samples);
if (fwrite(output_i, sizeof(int16_t), output_samples, stdout) != output_samples)
break;
+11 -36
View File
@@ -17,57 +17,32 @@
#ifndef __RARCH_AUTOSAVE_H
#define __RARCH_AUTOSAVE_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stddef.h>
#include <retro_common_api.h>
RETRO_BEGIN_DECLS
typedef struct autosave autosave_t;
/**
* autosave_new:
* @path : path to autosave file
* @data : pointer to buffer
* @size : size of @data buffer
* @interval : interval at which saves should be performed.
*
* Create and initialize autosave object.
*
* Returns: pointer to new autosave_t object if successful, otherwise
* NULL.
**/
autosave_t *autosave_new(const char *path, const void *data,
size_t size, unsigned interval);
/**
* autosave_free:
* @handle : pointer to autosave object
*
* Frees autosave object.
**/
void autosave_free(autosave_t *handle);
/**
* lock_autosave:
* autosave_lock:
*
* Lock autosave.
**/
void lock_autosave(void);
void autosave_lock(void);
/**
* unlock_autosave:
* autosave_unlock:
*
* Unlocks autosave.
**/
void unlock_autosave(void);
void autosave_unlock(void);
void autosave_event_init(void);
void autosave_init(void);
void autosave_event_deinit(void);
void autosave_deinit(void);
#ifdef __cplusplus
}
#endif
RETRO_END_DECLS
#endif
+111 -130
View File
@@ -17,9 +17,11 @@
#include <string.h>
#include "camera_driver.h"
#include "../general.h"
#include "../string_list_special.h"
#include "../system.h"
#include "../configuration.h"
#include "../retroarch.h"
#include "../runloop.h"
#include "../list_special.h"
#include "../verbosity.h"
static const camera_driver_t *camera_drivers[] = {
@@ -41,9 +43,6 @@ static const camera_driver_t *camera_drivers[] = {
NULL,
};
static const camera_driver_t *camera_driver;
static void *camera_data;
/**
* camera_driver_find_handle:
* @idx : index of driver to get handle to.
@@ -88,138 +87,22 @@ const char* config_get_camera_driver_options(void)
return char_list_new_special(STRING_LIST_CAMERA_DRIVERS, NULL);
}
void find_camera_driver(void)
{
settings_t *settings = config_get_ptr();
int i = find_driver_index("camera_driver", settings->camera.driver);
if (i >= 0)
camera_driver = (const camera_driver_t*)camera_driver_find_handle(i);
else
{
unsigned d;
RARCH_ERR("Couldn't find any camera driver named \"%s\"\n",
settings->camera.driver);
RARCH_LOG_OUTPUT("Available camera drivers are:\n");
for (d = 0; camera_driver_find_handle(d); d++)
RARCH_LOG_OUTPUT("\t%s\n", camera_driver_find_ident(d));
RARCH_WARN("Going to default to first camera driver...\n");
camera_driver = (const camera_driver_t*)camera_driver_find_handle(0);
if (!camera_driver)
retro_fail(1, "find_camera_driver()");
}
}
/**
* driver_camera_start:
*
* Starts camera driver interface.
* Used by RETRO_ENVIRONMENT_GET_CAMERA_INTERFACE.
*
* Returns: true (1) if successful, otherwise false (0).
**/
bool driver_camera_start(void)
{
settings_t *settings = config_get_ptr();
if (camera_driver && camera_data && camera_driver->start)
{
if (settings->camera.allow)
return camera_driver->start(camera_data);
runloop_msg_queue_push(
"Camera is explicitly disabled.\n", 1, 180, false);
}
return false;
}
/**
* driver_camera_stop:
*
* Stops camera driver.
* Used by RETRO_ENVIRONMENT_GET_CAMERA_INTERFACE.
*
* Returns: true (1) if successful, otherwise false (0).
**/
void driver_camera_stop(void)
{
if (camera_driver && camera_driver->stop && camera_data)
camera_driver->stop(camera_data);
camera_driver_ctl(RARCH_CAMERA_CTL_START, NULL);
}
/**
* driver_camera_poll:
*
* Call camera driver's poll function.
* Used by RETRO_ENVIRONMENT_GET_CAMERA_INTERFACE.
*
* Returns: true (1) if successful, otherwise false (0).
**/
void driver_camera_poll(void)
bool driver_camera_start(void)
{
rarch_system_info_t *system = NULL;
runloop_ctl(RUNLOOP_CTL_SYSTEM_INFO_GET, &system);
if (camera_driver && camera_driver->poll && camera_data)
camera_driver->poll(camera_data,
system->camera_callback.frame_raw_framebuffer,
system->camera_callback.frame_opengl_texture);
}
void init_camera(void)
{
settings_t *settings = config_get_ptr();
rarch_system_info_t *system = NULL;
runloop_ctl(RUNLOOP_CTL_SYSTEM_INFO_GET, &system);
/* Resource leaks will follow if camera is initialized twice. */
if (camera_data)
return;
find_camera_driver();
camera_data = camera_driver->init(
*settings->camera.device ? settings->camera.device : NULL,
system->camera_callback.caps,
settings->camera.width ?
settings->camera.width : system->camera_callback.width,
settings->camera.height ?
settings->camera.height : system->camera_callback.height);
if (!camera_data)
{
RARCH_ERR("Failed to initialize camera driver. Will continue without camera.\n");
camera_driver_ctl(RARCH_CAMERA_CTL_UNSET_ACTIVE, NULL);
}
if (system->camera_callback.initialized)
system->camera_callback.initialized();
}
static void uninit_camera(void)
{
rarch_system_info_t *system = NULL;
runloop_ctl(RUNLOOP_CTL_SYSTEM_INFO_GET, &system);
if (camera_data && camera_driver)
{
if (system->camera_callback.deinitialized)
system->camera_callback.deinitialized();
if (camera_driver->free)
camera_driver->free(camera_data);
}
camera_data = NULL;
return camera_driver_ctl(RARCH_CAMERA_CTL_START, NULL);
}
bool camera_driver_ctl(enum rarch_camera_ctl_state state, void *data)
{
settings_t *settings = config_get_ptr();
static struct retro_camera_callback camera_cb;
static const camera_driver_t *camera_driver = NULL;
static void *camera_data = NULL;
static bool camera_driver_active = false;
static bool camera_driver_data_own = false;
@@ -229,6 +112,7 @@ bool camera_driver_ctl(enum rarch_camera_ctl_state state, void *data)
camera_driver_active = false;
camera_driver_data_own = false;
camera_driver = NULL;
camera_data = NULL;
break;
case RARCH_CAMERA_CTL_SET_OWN_DRIVER:
camera_driver_data_own = true;
@@ -241,13 +125,110 @@ bool camera_driver_ctl(enum rarch_camera_ctl_state state, void *data)
case RARCH_CAMERA_CTL_SET_ACTIVE:
camera_driver_active = true;
break;
case RARCH_CAMERA_CTL_FIND_DRIVER:
{
int i;
driver_ctx_info_t drv;
drv.label = "camera_driver";
drv.s = settings->camera.driver;
driver_ctl(RARCH_DRIVER_CTL_FIND_INDEX, &drv);
i = drv.len;
if (i >= 0)
camera_driver = (const camera_driver_t*)camera_driver_find_handle(i);
else
{
unsigned d;
RARCH_ERR("Couldn't find any camera driver named \"%s\"\n",
settings->camera.driver);
RARCH_LOG_OUTPUT("Available camera drivers are:\n");
for (d = 0; camera_driver_find_handle(d); d++)
RARCH_LOG_OUTPUT("\t%s\n", camera_driver_find_ident(d));
RARCH_WARN("Going to default to first camera driver...\n");
camera_driver = (const camera_driver_t*)camera_driver_find_handle(0);
if (!camera_driver)
retroarch_fail(1, "find_camera_driver()");
}
}
break;
case RARCH_CAMERA_CTL_UNSET_ACTIVE:
camera_driver_active = false;
break;
case RARCH_CAMERA_CTL_IS_ACTIVE:
return camera_driver_active;
case RARCH_CAMERA_CTL_DEINIT:
uninit_camera();
if (camera_data && camera_driver)
{
if (camera_cb.deinitialized)
camera_cb.deinitialized();
if (camera_driver->free)
camera_driver->free(camera_data);
}
camera_data = NULL;
break;
case RARCH_CAMERA_CTL_STOP:
if ( camera_driver
&& camera_driver->stop
&& camera_data)
camera_driver->stop(camera_data);
break;
case RARCH_CAMERA_CTL_START:
if (camera_driver && camera_data && camera_driver->start)
{
if (settings->camera.allow)
return camera_driver->start(camera_data);
runloop_msg_queue_push(
"Camera is explicitly disabled.\n", 1, 180, false);
}
return false;
case RARCH_CAMERA_CTL_POLL:
if (!camera_cb.caps)
return false;
if (!camera_driver || !camera_driver->poll || !camera_data)
return false;
camera_driver->poll(camera_data,
camera_cb.frame_raw_framebuffer,
camera_cb.frame_opengl_texture);
break;
case RARCH_CAMERA_CTL_SET_CB:
{
struct retro_camera_callback *cb =
(struct retro_camera_callback*)data;
camera_cb = *cb;
}
break;
case RARCH_CAMERA_CTL_INIT:
/* Resource leaks will follow if camera is initialized twice. */
if (camera_data)
return false;
camera_driver_ctl(RARCH_CAMERA_CTL_FIND_DRIVER, NULL);
camera_data = camera_driver->init(
*settings->camera.device ? settings->camera.device : NULL,
camera_cb.caps,
settings->camera.width ?
settings->camera.width : camera_cb.width,
settings->camera.height ?
settings->camera.height : camera_cb.height);
if (!camera_data)
{
RARCH_ERR("Failed to initialize camera driver. Will continue without camera.\n");
camera_driver_ctl(RARCH_CAMERA_CTL_UNSET_ACTIVE, NULL);
}
if (camera_cb.initialized)
camera_cb.initialized();
break;
default:
break;
+15 -41
View File
@@ -18,12 +18,12 @@
#define __CAMERA_DRIVER__H
#include <stdint.h>
#include <boolean.h>
#include "../libretro.h"
#ifdef __cplusplus
extern "C" {
#endif
#include <boolean.h>
#include <retro_common_api.h>
#include <libretro.h>
RETRO_BEGIN_DECLS
enum rarch_camera_ctl_state
{
@@ -35,7 +35,13 @@ enum rarch_camera_ctl_state
RARCH_CAMERA_CTL_OWNS_DRIVER,
RARCH_CAMERA_CTL_SET_ACTIVE,
RARCH_CAMERA_CTL_UNSET_ACTIVE,
RARCH_CAMERA_CTL_IS_ACTIVE
RARCH_CAMERA_CTL_IS_ACTIVE,
RARCH_CAMERA_CTL_FIND_DRIVER,
RARCH_CAMERA_CTL_POLL,
RARCH_CAMERA_CTL_SET_CB,
RARCH_CAMERA_CTL_STOP,
RARCH_CAMERA_CTL_START,
RARCH_CAMERA_CTL_INIT
};
typedef struct camera_driver
@@ -66,36 +72,6 @@ extern camera_driver_t camera_rwebcam;
extern camera_driver_t camera_avfoundation;
extern camera_driver_t camera_null;
/**
* driver_camera_start:
*
* Starts camera driver.
* Used by RETRO_ENVIRONMENT_GET_CAMERA_INTERFACE.
*
* Returns: true (1) if successful, otherwise false (0).
**/
bool driver_camera_start(void);
/**
* driver_camera_stop:
*
* Stops camera driver.
* Used by RETRO_ENVIRONMENT_GET_CAMERA_INTERFACE.
*
* Returns: true (1) if successful, otherwise false (0).
**/
void driver_camera_stop(void);
/**
* driver_camera_poll:
*
* Call camera driver's poll function.
* Used by RETRO_ENVIRONMENT_GET_CAMERA_INTERFACE.
*
* Returns: true (1) if successful, otherwise false (0).
**/
void driver_camera_poll(void);
/**
* config_get_camera_driver_options:
*
@@ -125,14 +101,12 @@ const void *camera_driver_find_handle(int index);
**/
const char *camera_driver_find_ident(int index);
void find_camera_driver(void);
void driver_camera_stop(void);
void init_camera(void);
bool driver_camera_start(void);
bool camera_driver_ctl(enum rarch_camera_ctl_state state, void *data);
#ifdef __cplusplus
}
#endif
RETRO_END_DECLS
#endif
+11 -11
View File
@@ -41,7 +41,7 @@
#include <compat/strl.h>
#include "../camera_driver.h"
#include "../../performance.h"
#include "../../performance_counters.h"
#include "../../verbosity.h"
struct buffer
@@ -70,10 +70,10 @@ static void process_image(video4linux_t *v4l, const uint8_t *buffer_yuv)
{
static struct retro_perf_counter yuv_convert_direct = {0};
rarch_perf_init(&yuv_convert_direct, "yuv_convert_direct");
retro_perf_start(&yuv_convert_direct);
performance_counter_init(&yuv_convert_direct, "yuv_convert_direct");
performance_counter_start(&yuv_convert_direct);
scaler_ctx_scale(&v4l->scaler, v4l->buffer_output, buffer_yuv);
retro_perf_stop(&yuv_convert_direct);
performance_counter_stop(&yuv_convert_direct);
}
static int xioctl(int fd, int request, void *args)
@@ -95,8 +95,8 @@ static bool init_mmap(void *data)
memset(&req, 0, sizeof(req));
req.count = 4;
req.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
req.count = 4;
req.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
req.memory = V4L2_MEMORY_MMAP;
if (xioctl(v4l->fd, (uint8_t)VIDIOC_REQBUFS, &req) == -1)
@@ -210,9 +210,9 @@ static bool init_device(void *data)
}
/* VIDIOC_S_FMT may change width, height and pitch. */
v4l->width = fmt.fmt.pix.width;
v4l->width = fmt.fmt.pix.width;
v4l->height = fmt.fmt.pix.height;
v4l->pitch = max(fmt.fmt.pix.bytesperline, v4l->width * 2);
v4l->pitch = MAX(fmt.fmt.pix.bytesperline, v4l->width * 2);
/* Sanity check to see if our assumptions are met.
* It is possible to support whatever the device gives us,
@@ -249,9 +249,9 @@ static void v4l_stop(void *data)
static bool v4l_start(void *data)
{
video4linux_t *v4l = (video4linux_t*)data;
unsigned i;
enum v4l2_buf_type type;
video4linux_t *v4l = (video4linux_t*)data;
for (i = 0; i < v4l->n_buffers; i++)
{
@@ -259,9 +259,9 @@ static bool v4l_start(void *data)
memset(&buf, 0, sizeof(buf));
buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
buf.memory = V4L2_MEMORY_MMAP;
buf.index = i;
buf.index = i;
if (xioctl(v4l->fd, (uint8_t)VIDIOC_QBUF, &buf) == -1)
{
+804 -464
View File
File diff suppressed because it is too large. Load diff
+36 -8
View File
@@ -19,20 +19,48 @@
#include <stdint.h>
#include <stdlib.h>
int cheevos_load(const void *data);
#include <retro_common_api.h>
RETRO_BEGIN_DECLS
typedef struct cheevos_ctx_desc
{
unsigned idx;
char *s;
size_t len;
} cheevos_ctx_desc_t;
bool cheevos_load(const void *data);
#ifdef HAVE_MENU
void cheevos_populate_menu(void *data);
#endif
void cheevos_get_description(unsigned cheevo_ndx, char *str, size_t len);
bool cheevos_get_description(cheevos_ctx_desc_t *desc);
void cheevos_set_cheats(void);
bool cheevos_apply_cheats(bool *data_bool);
void cheevos_apply_cheats(bool enable);
bool cheevos_unload(void);
void cheevos_test(void);
bool cheevos_toggle_hardcore_mode(void);
void cheevos_unload(void);
bool cheevos_test(void);
bool cheevos_set_cheats(void);
void cheevos_set_support_cheevos(bool state);
typedef struct
{
unsigned size;
unsigned type;
int bank_id;
unsigned value;
unsigned previous;
} cheevos_var_t;
void cheevos_parse_guest_addr(cheevos_var_t *var, unsigned value);
uint8_t *cheevos_get_memory(const cheevos_var_t *var);
RETRO_END_DECLS
#endif /* __RARCH_CHEEVOS_H */
+2130 -268
View File
File diff suppressed because it is too large. Load diff
+217 -18
View File
@@ -23,31 +23,230 @@
#include <stdint.h>
#include <boolean.h>
#include <retro_common_api.h>
#ifdef __cplusplus
extern "C" {
#endif
RETRO_BEGIN_DECLS
typedef struct rarch_cmd rarch_cmd_t;
typedef struct command command_t;
rarch_cmd_t *rarch_cmd_new(bool stdin_enable,
bool network_enable, uint16_t port);
typedef struct command_handle
{
command_t *handle;
unsigned id;
} command_handle_t;
void rarch_cmd_free(rarch_cmd_t *handle);
void rarch_cmd_poll(rarch_cmd_t *handle);
void rarch_cmd_set(rarch_cmd_t *handle, unsigned id);
bool rarch_cmd_get(rarch_cmd_t *handle, unsigned id);
enum event_command
{
CMD_EVENT_NONE = 0,
/* Resets RetroArch. */
CMD_EVENT_RESET,
CMD_EVENT_SET_PER_GAME_RESOLUTION,
CMD_EVENT_SET_FRAME_LIMIT,
/* Loads core. */
CMD_EVENT_LOAD_CORE_DEINIT,
CMD_EVENT_LOAD_CORE,
CMD_EVENT_LOAD_CORE_PERSIST,
CMD_EVENT_UNLOAD_CORE,
CMD_EVENT_LOAD_STATE,
/* Swaps the current state with what's on the undo load buffer */
CMD_EVENT_UNDO_LOAD_STATE,
/* Rewrites a savestate on disk */
CMD_EVENT_UNDO_SAVE_STATE,
CMD_EVENT_SAVE_STATE,
CMD_EVENT_SAVE_STATE_DECREMENT,
CMD_EVENT_SAVE_STATE_INCREMENT,
/* Takes screenshot. */
CMD_EVENT_TAKE_SCREENSHOT,
/* Quits RetroArch. */
CMD_EVENT_QUIT,
/* Reinitialize all drivers. */
CMD_EVENT_REINIT,
/* Toggles cheevos hardcore mode. */
CMD_EVENT_CHEEVOS_HARDCORE_MODE_TOGGLE,
/* Deinitialize rewind. */
CMD_EVENT_REWIND_DEINIT,
/* Initializes rewind. */
CMD_EVENT_REWIND_INIT,
/* Toggles rewind. */
CMD_EVENT_REWIND_TOGGLE,
/* Deinitializes autosave. */
CMD_EVENT_AUTOSAVE_DEINIT,
/* Initializes autosave. */
CMD_EVENT_AUTOSAVE_INIT,
CMD_EVENT_AUTOSAVE_STATE,
/* Stops audio. */
CMD_EVENT_AUDIO_STOP,
/* Starts audio. */
CMD_EVENT_AUDIO_START,
/* Mutes audio. */
CMD_EVENT_AUDIO_MUTE_TOGGLE,
/* Initializes overlay. */
CMD_EVENT_OVERLAY_INIT,
/* Deinitializes overlay. */
CMD_EVENT_OVERLAY_DEINIT,
/* Sets current scale factor for overlay. */
CMD_EVENT_OVERLAY_SET_SCALE_FACTOR,
/* Sets current alpha modulation for overlay. */
CMD_EVENT_OVERLAY_SET_ALPHA_MOD,
/* Cycle to next overlay. */
CMD_EVENT_OVERLAY_NEXT,
/* Deinitializes overlay. */
CMD_EVENT_DSP_FILTER_INIT,
/* Deinitializes graphics filter. */
CMD_EVENT_DSP_FILTER_DEINIT,
/* Deinitializes GPU recoring. */
CMD_EVENT_GPU_RECORD_DEINIT,
/* Initializes recording system. */
CMD_EVENT_RECORD_INIT,
/* Deinitializes recording system. */
CMD_EVENT_RECORD_DEINIT,
/* Deinitializes history playlist. */
CMD_EVENT_HISTORY_DEINIT,
/* Initializes history playlist. */
CMD_EVENT_HISTORY_INIT,
/* Deinitializes core information. */
CMD_EVENT_CORE_INFO_DEINIT,
/* Initializes core information. */
CMD_EVENT_CORE_INFO_INIT,
/* Deinitializes core. */
CMD_EVENT_CORE_DEINIT,
/* Initializes core. */
CMD_EVENT_CORE_INIT,
/* Set audio blocking state. */
CMD_EVENT_AUDIO_SET_BLOCKING_STATE,
/* Set audio nonblocking state. */
CMD_EVENT_AUDIO_SET_NONBLOCKING_STATE,
/* Apply video state changes. */
CMD_EVENT_VIDEO_APPLY_STATE_CHANGES,
/* Set video blocking state. */
CMD_EVENT_VIDEO_SET_BLOCKING_STATE,
/* Set video nonblocking state. */
CMD_EVENT_VIDEO_SET_NONBLOCKING_STATE,
/* Sets current aspect ratio index. */
CMD_EVENT_VIDEO_SET_ASPECT_RATIO,
CMD_EVENT_RESET_CONTEXT,
/* Restarts RetroArch. */
CMD_EVENT_RESTART_RETROARCH,
/* Shutdown the OS */
CMD_EVENT_SHUTDOWN,
/* Reboot the OS */
CMD_EVENT_REBOOT,
/* Resume RetroArch when in menu. */
CMD_EVENT_RESUME,
/* Toggles pause. */
CMD_EVENT_PAUSE_TOGGLE,
/* Pauses RetroArch. */
CMD_EVENT_UNPAUSE,
/* Unpauses retroArch. */
CMD_EVENT_PAUSE,
CMD_EVENT_PAUSE_CHECKS,
CMD_EVENT_MENU_SAVE_CURRENT_CONFIG,
CMD_EVENT_MENU_SAVE_CONFIG,
CMD_EVENT_MENU_PAUSE_LIBRETRO,
/* Toggles menu on/off. */
CMD_EVENT_MENU_TOGGLE,
CMD_EVENT_MENU_REFRESH,
/* Applies shader changes. */
CMD_EVENT_SHADERS_APPLY_CHANGES,
/* Initializes shader directory. */
CMD_EVENT_SHADER_DIR_INIT,
/* Deinitializes shader directory. */
CMD_EVENT_SHADER_DIR_DEINIT,
/* Initializes controllers. */
CMD_EVENT_CONTROLLERS_INIT,
CMD_EVENT_SAVEFILES,
/* Initializes savefiles. */
CMD_EVENT_SAVEFILES_INIT,
/* Deinitializes savefiles. */
CMD_EVENT_SAVEFILES_DEINIT,
/* Initializes cheats. */
CMD_EVENT_CHEATS_INIT,
/* Deinitializes cheats. */
CMD_EVENT_CHEATS_DEINIT,
/* Apply cheats. */
CMD_EVENT_CHEATS_APPLY,
/* Deinitializes network system. */
CMD_EVENT_NETWORK_DEINIT,
/* Initializes network system. */
CMD_EVENT_NETWORK_INIT,
/* Initializes netplay system. */
CMD_EVENT_NETPLAY_INIT,
/* Deinitializes netplay system. */
CMD_EVENT_NETPLAY_DEINIT,
/* Flip netplay players. */
CMD_EVENT_NETPLAY_FLIP_PLAYERS,
/* Initializes BSV movie. */
CMD_EVENT_BSV_MOVIE_INIT,
/* Deinitializes BSV movie. */
CMD_EVENT_BSV_MOVIE_DEINIT,
/* Initializes command interface. */
CMD_EVENT_COMMAND_INIT,
/* Deinitialize command interface. */
CMD_EVENT_COMMAND_DEINIT,
/* Initializes remote gamepad interface. */
CMD_EVENT_REMOTE_INIT,
/* Deinitializes remote gamepad interface. */
CMD_EVENT_REMOTE_DEINIT,
/* Reinitializes audio driver. */
CMD_EVENT_AUDIO_REINIT,
/* Resizes windowed scale. Will reinitialize video driver. */
CMD_EVENT_RESIZE_WINDOWED_SCALE,
/* Deinitializes temporary content. */
CMD_EVENT_TEMPORARY_CONTENT_DEINIT,
CMD_EVENT_SUBSYSTEM_FULLPATHS_DEINIT,
CMD_EVENT_LOG_FILE_DEINIT,
/* Toggles disk eject. */
CMD_EVENT_DISK_EJECT_TOGGLE,
/* Cycle to next disk. */
CMD_EVENT_DISK_NEXT,
/* Cycle to previous disk. */
CMD_EVENT_DISK_PREV,
/* Appends disk image to disk image list. */
CMD_EVENT_DISK_APPEND_IMAGE,
/* Stops rumbling. */
CMD_EVENT_RUMBLE_STOP,
/* Toggles mouse grab. */
CMD_EVENT_GRAB_MOUSE_TOGGLE,
/* Toggles fullscreen mode. */
CMD_EVENT_FULLSCREEN_TOGGLE,
CMD_EVENT_PERFCNT_REPORT_FRONTEND_LOG,
CMD_EVENT_VOLUME_UP,
CMD_EVENT_VOLUME_DOWN,
CMD_EVENT_DISABLE_OVERRIDES
};
#ifdef HAVE_COMMAND
#if defined(HAVE_NETWORK_CMD) && defined(HAVE_NETPLAY)
bool network_cmd_send(const char *cmd);
bool command_network_send(const char *cmd_);
#endif
#endif
#ifdef __cplusplus
}
#endif
bool command_network_new(
command_t *handle,
bool stdin_enable,
bool network_enable,
uint16_t port);
command_t *command_new(bool local_enable);
bool command_poll(command_t *handle);
bool command_get(command_handle_t *handle);
bool command_set(command_handle_t *handle);
bool command_free(command_t *handle);
/**
* command_event:
* @cmd : Command index.
*
* Performs RetroArch command with index @cmd.
*
* Returns: true (1) on success, otherwise false (0).
**/
bool command_event(enum event_command action, void *data);
RETRO_END_DECLS
#endif
-1599
View File
File diff suppressed because it is too large. Load diff
-232
View File
@@ -1,232 +0,0 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2011-2016 - Daniel De Matteis
*
* RetroArch 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 Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch 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 RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef COMMAND_EVENT_H__
#define COMMAND_EVENT_H__
#include <stdint.h>
#include <boolean.h>
#ifdef __cplusplus
extern "C" {
#endif
enum event_command
{
EVENT_CMD_NONE = 0,
/* Resets RetroArch. */
EVENT_CMD_RESET,
/* Loads content file. */
EVENT_CMD_LOAD_CONTENT,
EVENT_CMD_LOAD_CONTENT_PERSIST,
#ifdef HAVE_FFMPEG
EVENT_CMD_LOAD_CONTENT_FFMPEG,
#endif
EVENT_CMD_LOAD_CONTENT_IMAGEVIEWER,
EVENT_CMD_SET_PER_GAME_RESOLUTION,
EVENT_CMD_SET_FRAME_LIMIT,
/* Loads core. */
EVENT_CMD_LOAD_CORE_DEINIT,
EVENT_CMD_LOAD_CORE,
EVENT_CMD_LOAD_CORE_PERSIST,
EVENT_CMD_UNLOAD_CORE,
EVENT_CMD_LOAD_STATE,
EVENT_CMD_SAVE_STATE,
EVENT_CMD_SAVE_STATE_DECREMENT,
EVENT_CMD_SAVE_STATE_INCREMENT,
/* Takes screenshot. */
EVENT_CMD_TAKE_SCREENSHOT,
/* Quits RetroArch. */
EVENT_CMD_QUIT,
/* Reinitialize all drivers. */
EVENT_CMD_REINIT,
/* Deinitialize rewind. */
EVENT_CMD_REWIND_DEINIT,
/* Initializes rewind. */
EVENT_CMD_REWIND_INIT,
/* Toggles rewind. */
EVENT_CMD_REWIND_TOGGLE,
/* Deinitializes autosave. */
EVENT_CMD_AUTOSAVE_DEINIT,
/* Initializes autosave. */
EVENT_CMD_AUTOSAVE_INIT,
EVENT_CMD_AUTOSAVE_STATE,
/* Stops audio. */
EVENT_CMD_AUDIO_STOP,
/* Starts audio. */
EVENT_CMD_AUDIO_START,
/* Mutes audio. */
EVENT_CMD_AUDIO_MUTE_TOGGLE,
/* Initializes overlay. */
EVENT_CMD_OVERLAY_INIT,
/* Deinitializes overlay. */
EVENT_CMD_OVERLAY_DEINIT,
/* Sets current scale factor for overlay. */
EVENT_CMD_OVERLAY_SET_SCALE_FACTOR,
/* Sets current alpha modulation for overlay. */
EVENT_CMD_OVERLAY_SET_ALPHA_MOD,
/* Cycle to next overlay. */
EVENT_CMD_OVERLAY_NEXT,
/* Deinitializes overlay. */
EVENT_CMD_DSP_FILTER_INIT,
/* Deinitializes graphics filter. */
EVENT_CMD_DSP_FILTER_DEINIT,
/* Deinitializes GPU recoring. */
EVENT_CMD_GPU_RECORD_DEINIT,
/* Initializes recording system. */
EVENT_CMD_RECORD_INIT,
/* Deinitializes recording system. */
EVENT_CMD_RECORD_DEINIT,
/* Deinitializes history playlist. */
EVENT_CMD_HISTORY_DEINIT,
/* Initializes history playlist. */
EVENT_CMD_HISTORY_INIT,
/* Deinitializes core information. */
EVENT_CMD_CORE_INFO_DEINIT,
/* Initializes core information. */
EVENT_CMD_CORE_INFO_INIT,
/* Deinitializes core. */
EVENT_CMD_CORE_DEINIT,
/* Initializes core. */
EVENT_CMD_CORE_INIT,
/* Set audio blocking state. */
EVENT_CMD_AUDIO_SET_BLOCKING_STATE,
/* Set audio nonblocking state. */
EVENT_CMD_AUDIO_SET_NONBLOCKING_STATE,
/* Apply video state changes. */
EVENT_CMD_VIDEO_APPLY_STATE_CHANGES,
/* Set video blocking state. */
EVENT_CMD_VIDEO_SET_BLOCKING_STATE,
/* Set video nonblocking state. */
EVENT_CMD_VIDEO_SET_NONBLOCKING_STATE,
/* Sets current aspect ratio index. */
EVENT_CMD_VIDEO_SET_ASPECT_RATIO,
EVENT_CMD_RESET_CONTEXT,
/* Restarts RetroArch. */
EVENT_CMD_RESTART_RETROARCH,
/* Force-quit RetroArch. */
EVENT_CMD_QUIT_RETROARCH,
/* Shutdown the OS */
EVENT_CMD_SHUTDOWN,
/* Resume RetroArch when in menu. */
EVENT_CMD_RESUME,
/* Toggles pause. */
EVENT_CMD_PAUSE_TOGGLE,
/* Pauses RetroArch. */
EVENT_CMD_UNPAUSE,
/* Unpauses retroArch. */
EVENT_CMD_PAUSE,
EVENT_CMD_PAUSE_CHECKS,
EVENT_CMD_MENU_SAVE_CURRENT_CONFIG,
EVENT_CMD_MENU_SAVE_CONFIG,
EVENT_CMD_MENU_PAUSE_LIBRETRO,
/* Toggles menu on/off. */
EVENT_CMD_MENU_TOGGLE,
EVENT_CMD_MENU_REFRESH,
/* Applies shader changes. */
EVENT_CMD_SHADERS_APPLY_CHANGES,
/* Initializes shader directory. */
EVENT_CMD_SHADER_DIR_INIT,
/* Deinitializes shader directory. */
EVENT_CMD_SHADER_DIR_DEINIT,
/* Initializes controllers. */
EVENT_CMD_CONTROLLERS_INIT,
EVENT_CMD_SAVEFILES,
/* Initializes savefiles. */
EVENT_CMD_SAVEFILES_INIT,
/* Deinitializes savefiles. */
EVENT_CMD_SAVEFILES_DEINIT,
/* Initializes cheats. */
EVENT_CMD_CHEATS_INIT,
/* Deinitializes cheats. */
EVENT_CMD_CHEATS_DEINIT,
/* Apply cheats. */
EVENT_CMD_CHEATS_APPLY,
/* Deinitializes network system. */
EVENT_CMD_NETWORK_DEINIT,
/* Initializes network system. */
EVENT_CMD_NETWORK_INIT,
/* Initializes netplay system. */
EVENT_CMD_NETPLAY_INIT,
/* Deinitializes netplay system. */
EVENT_CMD_NETPLAY_DEINIT,
/* Flip netplay players. */
EVENT_CMD_NETPLAY_FLIP_PLAYERS,
/* Initializes BSV movie. */
EVENT_CMD_BSV_MOVIE_INIT,
/* Deinitializes BSV movie. */
EVENT_CMD_BSV_MOVIE_DEINIT,
/* Initializes command interface. */
EVENT_CMD_COMMAND_INIT,
/* Deinitialize command interface. */
EVENT_CMD_COMMAND_DEINIT,
/* Initializes remote gamepad interface. */
EVENT_CMD_REMOTE_INIT,
/* Deinitializes remote gamepad interface. */
EVENT_CMD_REMOTE_DEINIT,
/* Deinitializes drivers. */
EVENT_CMD_DRIVERS_DEINIT,
/* Initializes drivers. */
EVENT_CMD_DRIVERS_INIT,
/* Reinitializes audio driver. */
EVENT_CMD_AUDIO_REINIT,
/* Resizes windowed scale. Will reinitialize video driver. */
EVENT_CMD_RESIZE_WINDOWED_SCALE,
/* Deinitializes temporary content. */
EVENT_CMD_TEMPORARY_CONTENT_DEINIT,
EVENT_CMD_SUBSYSTEM_FULLPATHS_DEINIT,
EVENT_CMD_LOG_FILE_DEINIT,
/* Toggles disk eject. */
EVENT_CMD_DISK_EJECT_TOGGLE,
/* Cycle to next disk. */
EVENT_CMD_DISK_NEXT,
/* Cycle to previous disk. */
EVENT_CMD_DISK_PREV,
/* Stops rumbling. */
EVENT_CMD_RUMBLE_STOP,
/* Toggles mouse grab. */
EVENT_CMD_GRAB_MOUSE_TOGGLE,
/* Toggles fullscreen mode. */
EVENT_CMD_FULLSCREEN_TOGGLE,
EVENT_CMD_PERFCNT_REPORT_FRONTEND_LOG,
EVENT_CMD_REMAPPING_INIT,
EVENT_CMD_REMAPPING_DEINIT,
EVENT_CMD_VOLUME_UP,
EVENT_CMD_VOLUME_DOWN
};
/**
* event_disk_control_append_image:
* @path : Path to disk image.
*
* Appends disk image to disk image list.
**/
void event_disk_control_append_image(const char *path);
/**
* event_command:
* @cmd : Command index.
*
* Performs RetroArch command with index @cmd.
*
* Returns: true (1) on success, otherwise false (0).
**/
bool event_command(enum event_command action);
#ifdef __cplusplus
}
#endif
#endif
+56 -4
View File
@@ -18,7 +18,6 @@
#define __CONFIG_DEF_H
#include <boolean.h>
#include "libretro.h"
#include "driver.h"
#include "gfx/video_driver.h"
@@ -29,6 +28,8 @@
enum
{
VIDEO_GL = 0,
VIDEO_VULKAN,
VIDEO_DRM,
VIDEO_XVIDEO,
VIDEO_SDL,
VIDEO_SDL2,
@@ -125,12 +126,15 @@ enum
MENU_XUI,
MENU_MATERIALUI,
MENU_XMB,
MENU_NUKLEAR,
RECORD_FFMPEG,
RECORD_NULL
};
#ifdef GEKKO
#if defined(HW_RVL)
#define MAX_GAMMA_SETTING 30
#elif defined(GEKKO)
#define MAX_GAMMA_SETTING 2
#else
#define MAX_GAMMA_SETTING 1
@@ -320,7 +324,7 @@ enum
#if defined(HAVE_XUI)
#define MENU_DEFAULT_DRIVER MENU_XUI
#elif defined(IOS) || defined(ANDROID)
#elif defined(IOS) || defined(ANDROID) || defined(__QNX__)
#define MENU_DEFAULT_DRIVER MENU_MATERIALUI
#elif defined(__MACH__) && defined(HAVE_XMB) || defined(__CELLOS_LV2__)
#define MENU_DEFAULT_DRIVER MENU_XMB
@@ -358,7 +362,7 @@ static const bool def_history_list_enable = true;
static const unsigned int def_user_language = 0;
#if (defined(__APPLE__) && defined(__MACH__) && defined(OSX)) || (defined(_WIN32) && !defined(_XBOX))
#if (defined(_WIN32) && !defined(_XBOX))
static const bool def_mouse_enable = true;
#else
static const bool def_mouse_enable = false;
@@ -408,6 +412,8 @@ static const bool disable_composition = false;
/* Video VSYNC (recommended) */
static const bool vsync = true;
static const unsigned max_swapchain_images = 3;
/* Attempts to hard-synchronize CPU and GPU.
* Can reduce latency at cost of performance. */
static const bool hard_sync = false;
@@ -506,8 +512,38 @@ static const bool default_overlay_enable = false;
static const bool overlay_hide_in_menu = true;
#ifdef HAVE_MENU
#include "menu/menu_display.h"
static bool default_block_config_read = true;
static unsigned xmb_scale_factor = 100;
static unsigned xmb_alpha_factor = 75;
static unsigned xmb_icon_theme = XMB_ICON_THEME_MONOCHROME;
static unsigned xmb_theme = XMB_THEME_ELECTRIC_BLUE;
#ifdef HAVE_LAKKA
static bool xmb_shadows_enable = false;
#else
static bool xmb_shadows_enable = true;
#endif
static float menu_wallpaper_opacity = 0.300;
static float menu_footer_opacity = 1.000;
static float menu_header_opacity = 1.000;
static unsigned menu_background_gradient = 4;
#if defined(HAVE_CG) || defined(HAVE_HLSL) || defined(HAVE_GLSL) || defined(HAVE_VULKAN)
#if defined(HAVE_OPENGLES2) || defined(OSX_PPC)
static unsigned menu_shader_pipeline = 1;
#else
static unsigned menu_shader_pipeline = 2;
#endif
#endif
static bool show_advanced_settings = true;
static const uint32_t menu_entry_normal_color = 0xffffffff;
static const uint32_t menu_entry_hover_color = 0xff64ff64;
@@ -577,6 +613,9 @@ static const bool post_filter_record = false;
/* Screenshots post-shaded GPU output if available. */
static const bool gpu_screenshot = true;
/* Screenshots named automatically. */
static const bool auto_screenshot_filename = true;
/* Record post-shaded GPU output instead of raw game footage if available. */
static const bool gpu_record = false;
@@ -625,7 +664,12 @@ static const char *audio_device = NULL;
/* Desired audio latency in milliseconds. Might not be honored
* if driver can't provide given latency. */
#ifdef ANDROID
/* For most Android devices, 64ms is way too low. */
static const int out_latency = 128;
#else
static const int out_latency = 64;
#endif
/* Will sync audio. (recommended) */
static const bool audio_sync = true;
@@ -751,12 +795,20 @@ static const bool input_descriptor_hide_unbound = false;
static const unsigned input_max_users = 5;
static const unsigned input_poll_type_behavior = 2;
static const unsigned input_bind_timeout = 5;
static const unsigned menu_thumbnails_default = 3;
#ifdef IOS
static const bool ui_companion_start_on_boot = false;
#else
static const bool ui_companion_start_on_boot = true;
#endif
static const bool ui_companion_enable = false;
#if defined(ANDROID)
#if defined(ANDROID_ARM)
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/android/latest/armeabi-v7a/";
+26 -2
View File
@@ -32,7 +32,7 @@ static const bool _network_command_supp = true;
static const bool _network_command_supp = false;
#endif
#ifdef HAVE_NETWORK_GAMEPAD
#ifdef HAVE_NETWORKGAMEPAD
static const bool _network_gamepad_supp = true;
#else
static const bool _network_gamepad_supp = false;
@@ -74,7 +74,13 @@ static const bool _opengl_supp = true;
static const bool _opengl_supp = false;
#endif
#if defined(HAVE_OPENGLES) || defined(HAVE_OPENGLES2) || defined(HAVE_OPENGLES3)
#ifdef HAVE_VULKAN
static const bool _vulkan_supp = true;
#else
static const bool _vulkan_supp = false;
#endif
#if defined(HAVE_OPENGLES) || defined(HAVE_OPENGLES2) || defined(HAVE_OPENGLES3) || defined(HAVE_OPENGLES_3_1) || defined(HAVE_OPENGLES_3_2)
static const bool _opengles_supp = true;
#else
static const bool _opengles_supp = false;
@@ -296,6 +302,24 @@ static const bool _rpng_supp = true;
static const bool _rpng_supp = false;
#endif
#ifdef HAVE_RJPEG
static const bool _rjpeg_supp = true;
#else
static const bool _rjpeg_supp = false;
#endif
#ifdef HAVE_RBMP
static const bool _rbmp_supp = true;
#else
static const bool _rbmp_supp = false;
#endif
#ifdef HAVE_RTGA
static const bool _rtga_supp = true;
#else
static const bool _rtga_supp = false;
#endif
#ifdef HAVE_CORETEXT
static const bool _coretext_supp = true;
#else
@@ -1,4 +1,4 @@
/* Copyright (C) 2010-2015 The RetroArch team
/* Copyright (C) 2010-2016 The RetroArch team
*
* ---------------------------------------------------------------------------------------
* The following license statement only applies to this file (config_file_userdata.c).
@@ -20,39 +20,10 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <file/config_file_userdata.h>
#include <file/file_path.h>
#include <string/string_list.h>
#include <lists/string_list.h>
#define get_array_setup() \
char key[2][256]; \
bool got; \
struct config_file_userdata *usr = (struct config_file_userdata*)userdata; \
char *str = NULL; \
fill_pathname_join_delim(key[0], usr->prefix[0], key_str, '_', sizeof(key[0])); \
fill_pathname_join_delim(key[1], usr->prefix[1], key_str, '_', sizeof(key[1])); \
got = config_get_string(usr->conf, key[0], &str); \
got = got || config_get_string(usr->conf, key[1], &str);
#define get_array_body(T) \
if (got) \
{ \
unsigned i; \
struct string_list *list = string_split(str, " "); \
*values = (T*)calloc(list->size, sizeof(T)); \
for (i = 0; i < list->size; i++) \
(*values)[i] = (T)strtod(list->elems[i].data, NULL); \
*out_num_values = list->size; \
string_list_free(list); \
return true; \
} \
else \
{ \
*values = (T*)calloc(num_default_values, sizeof(T)); \
memcpy(*values, default_values, sizeof(T) * num_default_values); \
*out_num_values = num_default_values; \
return false; \
}
#include "config_file_userdata.h"
int config_userdata_get_float(void *userdata, const char *key_str,
float *value, float default_value)
@@ -94,24 +65,74 @@ int config_userdata_get_float_array(void *userdata, const char *key_str,
float **values, unsigned *out_num_values,
const float *default_values, unsigned num_default_values)
{
get_array_setup()
get_array_body(float)
char key[2][256];
struct config_file_userdata *usr = (struct config_file_userdata*)userdata;
char *str = NULL;
fill_pathname_join_delim(key[0], usr->prefix[0], key_str, '_', sizeof(key[0]));
fill_pathname_join_delim(key[1], usr->prefix[1], key_str, '_', sizeof(key[1]));
if ( config_get_string(usr->conf, key[0], &str) ||
config_get_string(usr->conf, key[1], &str))
{
unsigned i;
struct string_list *list = string_split(str, " ");
*values = (float*)calloc(list->size, sizeof(float));
for (i = 0; i < list->size; i++)
(*values)[i] = (float)strtod(list->elems[i].data, NULL);
*out_num_values = list->size;
string_list_free(list);
free(str);
return true;
}
*values = (float*)calloc(num_default_values, sizeof(float));
memcpy(*values, default_values, sizeof(float) * num_default_values);
*out_num_values = num_default_values;
return false;
}
int config_userdata_get_int_array(void *userdata, const char *key_str,
int **values, unsigned *out_num_values,
const int *default_values, unsigned num_default_values)
{
get_array_setup()
get_array_body(int)
char key[2][256];
struct config_file_userdata *usr = (struct config_file_userdata*)userdata;
char *str = NULL;
fill_pathname_join_delim(key[0], usr->prefix[0], key_str, '_', sizeof(key[0]));
fill_pathname_join_delim(key[1], usr->prefix[1], key_str, '_', sizeof(key[1]));
if ( config_get_string(usr->conf, key[0], &str) ||
config_get_string(usr->conf, key[1], &str))
{
unsigned i;
struct string_list *list = string_split(str, " ");
*values = (int*)calloc(list->size, sizeof(int));
for (i = 0; i < list->size; i++)
(*values)[i] = (int)strtod(list->elems[i].data, NULL);
*out_num_values = list->size;
string_list_free(list);
free(str);
return true;
}
*values = (int*)calloc(num_default_values, sizeof(int));
memcpy(*values, default_values, sizeof(int) * num_default_values);
*out_num_values = num_default_values;
return false;
}
int config_userdata_get_string(void *userdata, const char *key_str,
char **output, const char *default_output)
{
get_array_setup()
char key[2][256];
struct config_file_userdata *usr = (struct config_file_userdata*)userdata;
char *str = NULL;
fill_pathname_join_delim(key[0], usr->prefix[0], key_str, '_', sizeof(key[0]));
fill_pathname_join_delim(key[1], usr->prefix[1], key_str, '_', sizeof(key[1]));
if (got)
if ( config_get_string(usr->conf, key[0], &str) ||
config_get_string(usr->conf, key[1], &str))
{
*output = str;
return true;
@@ -1,4 +1,4 @@
/* Copyright (C) 2010-2015 The RetroArch team
/* Copyright (C) 2010-2016 The RetroArch team
*
* ---------------------------------------------------------------------------------------
* The following license statement only applies to this file (config_file_userdata.h).
@@ -25,7 +25,7 @@
#include <string.h>
#include "config_file.h"
#include <file/config_file.h>
struct config_file_userdata
{
+994 -693
View File
File diff suppressed because it is too large. Load diff
+108 -66
View File
@@ -1,7 +1,7 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2016 - Daniel De Matteis
*
*
* RetroArch 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 Found-
* ation, either version 3 of the License, or (at your option) any later version.
@@ -20,6 +20,7 @@
#include <stdint.h>
#include <boolean.h>
#include <retro_common_api.h>
#include "gfx/video_driver.h"
#include "driver.h"
@@ -28,9 +29,7 @@
#define MAX_USERS 16
#endif
#ifdef __cplusplus
extern "C" {
#endif
RETRO_BEGIN_DECLS
/* All config related settings go here. */
@@ -56,6 +55,7 @@ typedef struct settings
bool vsync;
bool hard_sync;
bool black_frame_insertion;
unsigned max_swapchain_images;
unsigned swap_interval;
unsigned hard_sync_frames;
unsigned frame_delay;
@@ -72,17 +72,12 @@ typedef struct settings
unsigned aspect_ratio_idx;
unsigned rotation;
char shader_path[PATH_MAX_LENGTH];
bool shader_enable;
char softfilter_plugin[PATH_MAX_LENGTH];
float refresh_rate;
bool threaded;
char filter_dir[PATH_MAX_LENGTH];
char shader_dir[PATH_MAX_LENGTH];
char font_path[PATH_MAX_LENGTH];
float font_size;
bool font_enable;
float msg_pos_x;
@@ -112,6 +107,7 @@ typedef struct settings
bool menubar_enable;
bool suspend_screensaver_enable;
bool companion_start_on_boot;
bool companion_enable;
} ui;
#ifdef HAVE_MENU
@@ -122,9 +118,23 @@ typedef struct settings
bool timedate_enable;
bool core_enable;
bool dynamic_wallpaper_enable;
bool boxart_enable;
unsigned thumbnails;
bool throttle;
char wallpaper[PATH_MAX_LENGTH];
struct
{
float opacity;
} wallpaper;
struct
{
float opacity;
} footer;
struct
{
float opacity;
} header;
struct
{
@@ -163,6 +173,24 @@ typedef struct settings
unsigned entry_normal_color;
unsigned entry_hover_color;
unsigned title_color;
bool throttle_framerate;
bool linear_filter;
struct
{
unsigned shader_pipeline;
char font[PATH_MAX_LENGTH];
unsigned scale_factor;
unsigned alpha_factor;
unsigned theme;
unsigned menu_color_theme;
bool shadows_enable;
} xmb;
struct
{
unsigned menu_color_theme;
} materialui;
} menu;
#endif
@@ -190,22 +218,20 @@ typedef struct settings
struct
{
char driver[32];
char resampler[32];
char device[PATH_MAX_LENGTH];
bool enable;
bool mute_enable;
unsigned out_rate;
unsigned block_frames;
char device[PATH_MAX_LENGTH];
unsigned latency;
bool sync;
char dsp_plugin[PATH_MAX_LENGTH];
char filter_dir[PATH_MAX_LENGTH];
bool rate_control;
float rate_control_delta;
float max_timing_skew;
float volume; /* dB scale. */
char resampler[32];
} audio;
struct
@@ -213,6 +239,7 @@ typedef struct settings
char driver[32];
char joypad_driver[32];
char keyboard_layout[64];
char device_names[MAX_USERS][64];
unsigned remap_ids[MAX_USERS][RARCH_BIND_LIST_END];
struct retro_keybind binds[MAX_USERS][RARCH_BIND_LIST_END];
@@ -233,7 +260,6 @@ typedef struct settings
float axis_threshold;
unsigned joypad_map[MAX_USERS];
unsigned device[MAX_USERS];
char device_names[MAX_USERS][64];
unsigned device_name_index[MAX_USERS];
bool autodetect_enable;
bool netplay_client_swap_input;
@@ -244,16 +270,13 @@ typedef struct settings
bool overlay_enable;
bool overlay_enable_autopreferred;
bool overlay_hide_in_menu;
char overlay[PATH_MAX_LENGTH];
float overlay_opacity;
float overlay_scale;
char autoconfig_dir[PATH_MAX_LENGTH];
unsigned bind_timeout;
bool input_descriptor_label_show;
bool input_descriptor_hide_unbound;
char remapping_path[PATH_MAX_LENGTH];
unsigned menu_toggle_gamepad_combo;
bool back_as_menu_toggle_enable;
@@ -262,12 +285,12 @@ typedef struct settings
#endif
bool keyboard_gamepad_enable;
unsigned keyboard_gamepad_mapping_type;
unsigned poll_type_behavior;
} input;
struct
{
bool enable;
char overlay[PATH_MAX_LENGTH];
float opacity;
float scale;
} osk;
@@ -284,10 +307,7 @@ typedef struct settings
bool buildbot_auto_extract_archive;
} network;
struct
{
bool set_supports_no_game_enable;
} core;
bool set_supports_no_game_enable;
struct
{
@@ -300,6 +320,7 @@ typedef struct settings
{
bool enable;
bool test_unofficial;
bool hardcore_mode_enable;
char username[32];
char password[32];
} cheevos;
@@ -310,32 +331,57 @@ typedef struct settings
bool bundle_assets_extract_enable;
unsigned bundle_assets_extract_version_current;
unsigned bundle_assets_extract_last_version;
char bundle_assets_src_path[PATH_MAX_LENGTH];
char bundle_assets_dst_path[PATH_MAX_LENGTH];
char bundle_assets_dst_path_subdir[PATH_MAX_LENGTH];
char core_options_path[PATH_MAX_LENGTH];
char content_history_path[PATH_MAX_LENGTH];
char content_history_directory[PATH_MAX_LENGTH];
struct
{
char cheat_database[PATH_MAX_LENGTH];
char content_database[PATH_MAX_LENGTH];
char libretro[PATH_MAX_LENGTH];
char osk_overlay[PATH_MAX_LENGTH];
char overlay[PATH_MAX_LENGTH];
char menu_wallpaper[PATH_MAX_LENGTH];
char audio_dsp_plugin[PATH_MAX_LENGTH];
char softfilter_plugin[PATH_MAX_LENGTH];
char core_options[PATH_MAX_LENGTH];
char content_history[PATH_MAX_LENGTH];
char libretro_info[PATH_MAX_LENGTH];
char cheat_settings[PATH_MAX_LENGTH];
char bundle_assets_src[PATH_MAX_LENGTH];
char bundle_assets_dst[PATH_MAX_LENGTH];
char bundle_assets_dst_subdir[PATH_MAX_LENGTH];
char shader[PATH_MAX_LENGTH];
char font[PATH_MAX_LENGTH];
} path;
struct
{
char audio_filter[PATH_MAX_LENGTH];
char autoconfig[PATH_MAX_LENGTH];
char video_filter[PATH_MAX_LENGTH];
char video_shader[PATH_MAX_LENGTH];
char content_history[PATH_MAX_LENGTH];
char libretro[PATH_MAX_LENGTH];
char cursor[PATH_MAX_LENGTH];
char input_remapping[PATH_MAX_LENGTH];
char overlay[PATH_MAX_LENGTH];
char resampler[PATH_MAX_LENGTH];
char screenshot[PATH_MAX_LENGTH];
char system[PATH_MAX_LENGTH];
char cache[PATH_MAX_LENGTH];
char playlist[PATH_MAX_LENGTH];
char core_assets[PATH_MAX_LENGTH];
char assets[PATH_MAX_LENGTH];
char dynamic_wallpapers[PATH_MAX_LENGTH];
char thumbnails[PATH_MAX_LENGTH];
char menu_config[PATH_MAX_LENGTH];
char menu_content[PATH_MAX_LENGTH];
} directory;
unsigned content_history_size;
char libretro[PATH_MAX_LENGTH];
char libretro_directory[PATH_MAX_LENGTH];
unsigned libretro_log_level;
char libretro_info_path[PATH_MAX_LENGTH];
char content_database[PATH_MAX_LENGTH];
char cheat_database[PATH_MAX_LENGTH];
char cursor_directory[PATH_MAX_LENGTH];
char cheat_settings_path[PATH_MAX_LENGTH];
char input_remapping_directory[PATH_MAX_LENGTH];
char overlay_directory[PATH_MAX_LENGTH];
char resampler_directory[PATH_MAX_LENGTH];
char screenshot_directory[PATH_MAX_LENGTH];
char system_directory[PATH_MAX_LENGTH];
char cache_directory[PATH_MAX_LENGTH];
char playlist_directory[PATH_MAX_LENGTH];
bool auto_screenshot_filename;
bool history_list_enable;
bool rewind_enable;
@@ -361,13 +407,7 @@ typedef struct settings
unsigned network_remote_base_port;
bool debug_panel_enable;
char core_assets_directory[PATH_MAX_LENGTH];
char assets_directory[PATH_MAX_LENGTH];
char dynamic_wallpapers_directory[PATH_MAX_LENGTH];
char boxarts_directory[PATH_MAX_LENGTH];
char menu_config_directory[PATH_MAX_LENGTH];
#if defined(HAVE_MENU)
char menu_content_directory[PATH_MAX_LENGTH];
bool menu_show_start_screen;
#endif
bool fps_show;
@@ -390,9 +430,18 @@ typedef struct settings
unsigned menu_scroll_up_btn;
char username[32];
#ifdef HAVE_LANGEXTRA
unsigned int user_language;
#endif
bool config_save_on_exit;
#ifdef HAVE_SYSTEMD
bool ssh_enable;
bool samba_enable;
bool bluetooth_enable;
#endif
} settings_t;
/**
@@ -520,16 +569,6 @@ bool config_unload_override(void);
*/
bool config_load_remap(void);
/**
* config_save_keybinds_file:
* @path : Path that shall be written to.
*
* Writes a keybinds config file to disk.
*
* Returns: true (1) on success, otherwise returns false (0).
**/
bool config_save_keybinds_file(const char *path);
/**
* config_save_autoconf_profile:
* @path : Path that shall be written to.
@@ -548,14 +587,17 @@ bool config_save_autoconf_profile(const char *path, unsigned user);
**/
bool config_save_file(const char *path);
bool config_realloc(void);
/* Replaces currently loaded configuration file with
* another one. Will load a dummy core to flush state
* properly. */
bool config_replace(char *path);
bool config_init(void);
void config_free(void);
settings_t *config_get_ptr(void);
#ifdef __cplusplus
}
#endif
RETRO_END_DECLS
#endif
-709
View File
@@ -1,709 +0,0 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2016 - Daniel De Matteis
*
* RetroArch 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 Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch 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 RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdlib.h>
#include <boolean.h>
#include <string.h>
#include <time.h>
#ifdef _WIN32
#ifdef _XBOX
#include <xtl.h>
#define setmode _setmode
#define INVALID_FILE_ATTRIBUTES -1
#else
#include <io.h>
#include <fcntl.h>
#include <windows.h>
#endif
#endif
#include <compat/strl.h>
#include <file/file_path.h>
#include <file/file_extract.h>
#include <retro_file.h>
#include <retro_stat.h>
#include "msg_hash.h"
#include "content.h"
#include "file_ops.h"
#include "general.h"
#include "dynamic.h"
#include "movie.h"
#include "patch.h"
#include "system.h"
#include "verbosity.h"
#ifdef HAVE_CHEEVOS
#include "cheevos.h"
#endif
struct sram_block
{
unsigned type;
void *data;
size_t size;
};
static struct string_list *temporary_content;
/**
* read_content_file:
* @path : buffer of the content file.
* @buf : size of the content file.
* @length : size of the content file that has been read from.
*
* Read the content file. If read into memory, also performs soft patching
* (see patch_content function) in case soft patching has not been
* blocked by the enduser.
*
* Returns: true if successful, false on error.
**/
static bool read_content_file(unsigned i, const char *path, void **buf,
ssize_t *length)
{
uint8_t *ret_buf = NULL;
global_t *global = global_get_ptr();
RARCH_LOG("%s: %s.\n",
msg_hash_to_str(MSG_LOADING_CONTENT_FILE), path);
if (!read_file(path, (void**) &ret_buf, length))
return false;
if (*length < 0)
return false;
if (i != 0)
return true;
/* Attempt to apply a patch. */
if (!global->patch.block_patch)
patch_content(&ret_buf, length);
#ifdef HAVE_ZLIB
global->content_crc = zlib_crc32_calculate(ret_buf, *length);
RARCH_LOG("CRC32: 0x%x .\n", (unsigned)global->content_crc);
#endif
*buf = ret_buf;
return true;
}
/**
* dump_to_file_desperate:
* @data : pointer to data buffer.
* @size : size of @data.
* @type : type of file to be saved.
*
* Attempt to save valuable RAM data somewhere.
**/
static void dump_to_file_desperate(const void *data,
size_t size, unsigned type)
{
time_t time_;
char timebuf[256];
char path[PATH_MAX_LENGTH] = {0};
#if defined(_WIN32) && !defined(_XBOX)
const char *base = getenv("APPDATA");
#elif defined(__CELLOS_LV2__) || defined(_XBOX)
const char *base = NULL;
#else
const char *base = getenv("HOME");
#endif
if (!base)
goto error;
snprintf(path, sizeof(path), "%s/RetroArch-recovery-%u", base, type);
time(&time_);
strftime(timebuf, sizeof(timebuf), "%Y-%m-%d-%H-%M-%S", localtime(&time_));
strlcat(path, timebuf, sizeof(path));
if (retro_write_file(path, data, size))
RARCH_WARN("Succeeded in saving RAM data to \"%s\".\n", path);
else
goto error;
return;
error:
RARCH_WARN("Failed ... Cannot recover save file.\n");
}
/**
* save_state:
* @path : path of saved state that shall be written to.
*
* Save a state from memory to disk.
*
* Returns: true if successful, false otherwise.
**/
bool save_state(const char *path)
{
bool ret = false;
void *data = NULL;
size_t size = core.retro_serialize_size();
RARCH_LOG("%s: \"%s\".\n",
msg_hash_to_str(MSG_SAVING_STATE),
path);
if (size == 0)
return false;
data = malloc(size);
if (!data)
return false;
RARCH_LOG("%s: %d %s.\n",
msg_hash_to_str(MSG_STATE_SIZE),
(int)size,
msg_hash_to_str(MSG_BYTES));
ret = core.retro_serialize(data, size);
if (ret)
ret = retro_write_file(path, data, size);
if (!ret)
RARCH_ERR("%s \"%s\".\n",
msg_hash_to_str(MSG_FAILED_TO_SAVE_STATE_TO),
path);
free(data);
return ret;
}
/**
* load_state:
* @path : path that state will be loaded from.
*
* Load a state from disk to memory.
*
* Returns: true if successful, false otherwise.
**/
bool load_state(const char *path)
{
unsigned i;
ssize_t size;
unsigned num_blocks = 0;
void *buf = NULL;
struct sram_block *blocks = NULL;
settings_t *settings = config_get_ptr();
global_t *global = global_get_ptr();
bool ret = read_file(path, &buf, &size);
RARCH_LOG("%s: \"%s\".\n",
msg_hash_to_str(MSG_LOADING_STATE),
path);
if (!ret || size < 0)
{
RARCH_ERR("%s \"%s\".\n",
msg_hash_to_str(MSG_FAILED_TO_LOAD_STATE),
path);
return false;
}
RARCH_LOG("%s: %u %s.\n",
msg_hash_to_str(MSG_STATE_SIZE),
(unsigned)size,
msg_hash_to_str(MSG_BYTES));
if (settings->block_sram_overwrite && global->savefiles
&& global->savefiles->size)
{
RARCH_LOG("%s.\n",
msg_hash_to_str(MSG_BLOCKING_SRAM_OVERWRITE));
blocks = (struct sram_block*)
calloc(global->savefiles->size, sizeof(*blocks));
if (blocks)
{
num_blocks = global->savefiles->size;
for (i = 0; i < num_blocks; i++)
blocks[i].type = global->savefiles->elems[i].attr.i;
}
}
for (i = 0; i < num_blocks; i++)
blocks[i].size = core.retro_get_memory_size(blocks[i].type);
for (i = 0; i < num_blocks; i++)
if (blocks[i].size)
blocks[i].data = malloc(blocks[i].size);
/* Backup current SRAM which is overwritten by unserialize. */
for (i = 0; i < num_blocks; i++)
{
if (blocks[i].data)
{
const void *ptr = core.retro_get_memory_data(blocks[i].type);
if (ptr)
memcpy(blocks[i].data, ptr, blocks[i].size);
}
}
ret = core.retro_unserialize(buf, size);
/* Flush back. */
for (i = 0; i < num_blocks; i++)
{
if (blocks[i].data)
{
void *ptr = core.retro_get_memory_data(blocks[i].type);
if (ptr)
memcpy(ptr, blocks[i].data, blocks[i].size);
}
}
for (i = 0; i < num_blocks; i++)
free(blocks[i].data);
free(blocks);
free(buf);
return ret;
}
/**
* load_ram_file:
* @path : path of RAM state that will be loaded from.
* @type : type of memory
*
* Load a RAM state from disk to memory.
*/
void load_ram_file(const char *path, int type)
{
ssize_t rc;
bool ret = false;
void *buf = NULL;
size_t size = core.retro_get_memory_size(type);
void *data = core.retro_get_memory_data(type);
if (size == 0 || !data)
return;
ret = read_file(path, &buf, &rc);
if (!ret)
return;
if (rc > 0)
{
if (rc > (ssize_t)size)
{
RARCH_WARN("SRAM is larger than implementation expects, doing partial load (truncating %u %s %s %u).\n",
(unsigned)rc,
msg_hash_to_str(MSG_BYTES),
msg_hash_to_str(MSG_TO),
(unsigned)size);
rc = size;
}
memcpy(data, buf, rc);
}
if (buf)
free(buf);
}
/**
* save_ram_file:
* @path : path of RAM state that shall be written to.
* @type : type of memory
*
* Save a RAM state from memory to disk.
*
* In case the file could not be written to, a fallback function
* 'dump_to_file_desperate' will be called.
*/
void save_ram_file(const char *path, int type)
{
size_t size = core.retro_get_memory_size(type);
void *data = core.retro_get_memory_data(type);
if (!data || size == 0)
return;
if (!retro_write_file(path, data, size))
{
RARCH_ERR("%s.\n",
msg_hash_to_str(MSG_FAILED_TO_SAVE_SRAM));
RARCH_WARN("Attempting to recover ...\n");
dump_to_file_desperate(data, size, type);
return;
}
RARCH_LOG("%s \"%s\".\n",
msg_hash_to_str(MSG_SAVED_SUCCESSFULLY_TO),
path);
}
static bool load_content_dont_need_fullpath(
struct retro_game_info *info, unsigned i, const char *path)
{
ssize_t len;
/* Load the content into memory. */
/* First content file is significant, attempt to do patching,
* CRC checking, etc. */
bool ret = false;
if (i == 0)
ret = read_content_file(i, path, (void**)&info->data, &len);
else
ret = read_file(path, (void**)&info->data, &len);
if (!ret || len < 0)
{
RARCH_ERR("%s \"%s\".\n",
msg_hash_to_str(MSG_COULD_NOT_READ_CONTENT_FILE),
path);
return false;
}
info->size = len;
return true;
}
static bool load_content_need_fullpath(
struct retro_game_info *info, unsigned i,
struct string_list* additional_path_allocs,
bool need_fullpath, const char *path)
{
#ifdef HAVE_COMPRESSION
ssize_t len;
union string_list_elem_attr attributes;
char new_path[PATH_MAX_LENGTH] = {0};
char new_basedir[PATH_MAX_LENGTH] = {0};
bool ret = false;
settings_t *settings = config_get_ptr();
rarch_system_info_t *sys_info= NULL;
runloop_ctl(RUNLOOP_CTL_SYSTEM_INFO_GET, &sys_info);
if (sys_info && sys_info->info.block_extract)
return true;
if (!need_fullpath || !path_contains_compressed_file(path))
return true;
RARCH_LOG("Compressed file in case of need_fullpath."
"Now extracting to temporary directory.\n");
strlcpy(new_basedir, settings->cache_directory,
sizeof(new_basedir));
if ((!strcmp(new_basedir, "")) ||
!path_is_directory(new_basedir))
{
RARCH_WARN("Tried extracting to cache directory, but "
"cache directory was not set or found. "
"Setting cache directory to directory "
"derived by basename...\n");
fill_pathname_basedir(new_basedir, path,
sizeof(new_basedir));
}
attributes.i = 0;
fill_pathname_join(new_path, new_basedir,
path_basename(path), sizeof(new_path));
ret = read_compressed_file(path,NULL,new_path, &len);
if (!ret || len < 0)
{
RARCH_ERR("%s \"%s\".\n",
msg_hash_to_str(MSG_COULD_NOT_READ_CONTENT_FILE),
path);
return false;
}
string_list_append(additional_path_allocs,new_path, attributes);
info[i].path =
additional_path_allocs->elems
[additional_path_allocs->size -1 ].data;
/* temporary_content is initialized in init_content_file
* The following part takes care of cleanup of the unzipped files
* after exit.
*/
retro_assert(temporary_content != NULL);
string_list_append(temporary_content,
new_path, attributes);
#endif
return true;
}
/**
* load_content:
* @special : subsystem of content to be loaded. Can be NULL.
* content :
*
* Load content file (for libretro core).
*
* Returns : true if successful, otherwise false.
**/
static bool load_content(const struct retro_subsystem_info *special,
const struct string_list *content)
{
unsigned i;
bool ret = true;
struct string_list* additional_path_allocs = string_list_new();
struct retro_game_info *info = (struct retro_game_info*)
calloc(content->size, sizeof(*info));
if (!info)
{
string_list_free(additional_path_allocs);
return false;
}
for (i = 0; i < content->size; i++)
{
const char *path = content->elems[i].data;
int attr = content->elems[i].attr.i;
bool need_fullpath = attr & 2;
bool require_content = attr & 4;
if (require_content && !*path)
{
RARCH_LOG("libretro core requires content, but nothing was provided.\n");
ret = false;
goto end;
}
info[i].path = NULL;
if (*path)
info[i].path = path;
if (!need_fullpath && *path)
{
if (!load_content_dont_need_fullpath(&info[i], i, path))
goto end;
}
else
{
RARCH_LOG("Content loading skipped. Implementation will"
" load it on its own.\n");
if (!load_content_need_fullpath(&info[i], i,
additional_path_allocs, need_fullpath, path))
goto end;
}
}
if (special)
ret = core.retro_load_game_special(special->id, info, content->size);
else
{
ret = core.retro_load_game(*content->elems[0].data ? info : NULL);
#ifdef HAVE_CHEEVOS
/* Load the achievements into memory if the game has content. */
cheevos_set_cheats();
cheevos_load(*content->elems[0].data ? info : NULL);
#endif
}
if (!ret)
RARCH_ERR("%s.\n", msg_hash_to_str(MSG_FAILED_TO_LOAD_CONTENT));
end:
for (i = 0; i < content->size; i++)
free((void*)info[i].data);
string_list_free(additional_path_allocs);
if (info)
free(info);
return ret;
}
/**
* init_content_file:
*
* Initializes and loads a content file for the currently
* selected libretro core.
*
* global->content_is_init will be set to the return value
* on exit.
*
* Returns : true if successful, otherwise false.
**/
bool init_content_file(void)
{
unsigned i;
union string_list_elem_attr attr;
bool ret = false;
struct string_list *content = NULL;
const struct retro_subsystem_info *special = NULL;
rarch_system_info_t *system = NULL;
settings_t *settings = config_get_ptr();
global_t *global = global_get_ptr();
temporary_content = string_list_new();
runloop_ctl(RUNLOOP_CTL_SYSTEM_INFO_GET, &system);
if (!temporary_content)
goto error;
if (*global->subsystem)
{
special = libretro_find_subsystem_info(system->special,
system->num_special, global->subsystem);
if (!special)
{
RARCH_ERR(
"Failed to find subsystem \"%s\" in libretro implementation.\n",
global->subsystem);
goto error;
}
if (special->num_roms && !global->subsystem_fullpaths)
{
RARCH_ERR("libretro core requires special content, but none were provided.\n");
goto error;
}
else if (special->num_roms && special->num_roms
!= global->subsystem_fullpaths->size)
{
RARCH_ERR("libretro core requires %u content files for subsystem \"%s\", but %u content files were provided.\n",
special->num_roms, special->desc,
(unsigned)global->subsystem_fullpaths->size);
goto error;
}
else if (!special->num_roms && global->subsystem_fullpaths
&& global->subsystem_fullpaths->size)
{
RARCH_ERR("libretro core takes no content for subsystem \"%s\", but %u content files were provided.\n",
special->desc,
(unsigned)global->subsystem_fullpaths->size);
goto error;
}
}
content = string_list_new();
attr.i = 0;
if (!content)
goto error;
if (*global->subsystem)
{
for (i = 0; i < global->subsystem_fullpaths->size; i++)
{
attr.i = special->roms[i].block_extract;
attr.i |= special->roms[i].need_fullpath << 1;
attr.i |= special->roms[i].required << 2;
string_list_append(content,
global->subsystem_fullpaths->elems[i].data, attr);
}
}
else
{
char *fullpath = NULL;
runloop_ctl(RUNLOOP_CTL_GET_CONTENT_PATH, &fullpath);
attr.i = system->info.block_extract;
attr.i |= system->info.need_fullpath << 1;
attr.i |= (!system->no_content) << 2;
string_list_append(content,
(global->inited.core.no_content && settings->core.set_supports_no_game_enable) ? "" : fullpath, attr);
}
#ifdef HAVE_ZLIB
/* Try to extract all content we're going to load if appropriate. */
for (i = 0; i < content->size; i++)
{
const char *ext = NULL;
const char *valid_ext = NULL;
/* Block extract check. */
if (content->elems[i].attr.i & 1)
continue;
ext = path_get_extension(content->elems[i].data);
valid_ext = special ? special->roms[i].valid_extensions :
system->info.valid_extensions;
if (ext && !strcasecmp(ext, "zip"))
{
char temp_content[PATH_MAX_LENGTH] = {0};
strlcpy(temp_content, content->elems[i].data,
sizeof(temp_content));
if (!zlib_extract_first_content_file(temp_content,
sizeof(temp_content), valid_ext,
*settings->cache_directory ?
settings->cache_directory : NULL))
{
RARCH_ERR("Failed to extract content from zipped file: %s.\n",
temp_content);
goto error;
}
string_list_set(content, i, temp_content);
string_list_append(temporary_content,
temp_content, attr);
}
}
#endif
/* Set attr to need_fullpath as appropriate. */
ret = load_content(special, content);
error:
global->inited.content = (ret) ? true : false;
if (content)
string_list_free(content);
return ret;
}
/**
* content_free_temporary:
*
* Frees temporary content handle.
**/
void content_temporary_free(void)
{
unsigned i;
if (!temporary_content)
return;
for (i = 0; i < temporary_content->size; i++)
{
const char *path = temporary_content->elems[i].data;
RARCH_LOG("%s: %s.\n",
msg_hash_to_str(MSG_REMOVING_TEMPORARY_CONTENT_FILE), path);
if (remove(path) < 0)
RARCH_ERR("%s: %s.\n",
msg_hash_to_str(MSG_FAILED_TO_REMOVE_TEMPORARY_FILE),
path);
}
string_list_free(temporary_content);
temporary_content = NULL;
}
+54 -58
View File
@@ -17,76 +17,72 @@
#ifndef __RARCH_FILE_H
#define __RARCH_FILE_H
#include <boolean.h>
#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
#include <sys/types.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <boolean.h>
#include <retro_common_api.h>
/* Handles files related to libretro. */
#include "frontend/frontend_driver.h"
/**
* load_state:
* @path : path that state will be loaded from.
*
* Load a state from disk to memory.
*
* Returns: true if successful, false otherwise.
**/
bool load_state(const char *path);
RETRO_BEGIN_DECLS
/**
* save_state:
* @path : path of saved state that shall be written to.
*
* Save a state from memory to disk.
*
* Returns: true if successful, false otherwise.
**/
bool save_state(const char *path);
typedef struct ram_type ram_type_t;
/**
* load_ram_file:
* @path : path of RAM state that will be loaded from.
* @type : type of memory
*
* Load a RAM state from disk to memory.
*/
void load_ram_file(const char *path, int type);
typedef struct content_ctx_info
{
int argc; /* Argument count. */
char **argv; /* Argument variable list. */
void *args; /* Arguments passed from callee */
environment_get_t environ_get; /* Function passed for environment_get function */
} content_ctx_info_t;
/**
* save_ram_file:
* @path : path of RAM state that shall be written to.
* @type : type of memory
*
* Save a RAM state from memory to disk.
*
* In case the file could not be written to, a fallback function
* 'dump_to_file_desperate' will be called.
*/
void save_ram_file(const char *path, int type);
/* Load a RAM state from disk to memory. */
bool content_load_ram_file(unsigned slot);
/**
* init_content_file:
*
* Initializes and loads a content file for the currently
* selected libretro core.
*
* global->content_is_init will be set to the return value
* on exit.
*
* Returns : true if successful, otherwise false.
**/
bool init_content_file(void);
/* Save a RAM state from memory to disk. */
bool content_save_ram_file(unsigned slot);
void content_temporary_free(void);
/* Load a state from disk to memory. */
bool content_load_state(const char* path, bool load_to_backup_buffer);
#ifdef __cplusplus
}
#endif
/* Save a state from memory to disk. */
bool content_save_state(const char *path, bool save_to_disk);
/* Copy a save state. */
bool content_rename_state(const char *origin, const char *dest);
/* Undoes the last load state operation that was done */
bool content_undo_load_state(void);
/* Restores the last savestate file which was overwritten */
bool content_undo_save_state(void);
bool content_does_not_need_content(void);
void content_set_does_not_need_content(void);
void content_unset_does_not_need_content(void);
bool content_get_crc(uint32_t **content_crc_ptr);
bool content_is_inited(void);
void content_deinit(void);
/* Initializes and loads a content file for the currently
* selected libretro core. */
bool content_init(void);
/* Resets the state and savefile backup buffers */
bool content_reset_savestate_backups(void);
/* Checks if the buffers are empty */
bool content_undo_load_buf_is_empty(void);
bool content_undo_save_buf_is_empty(void);
RETRO_END_DECLS
#endif
+187
View File
@@ -0,0 +1,187 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2016 - Daniel De Matteis
* Copyright (C) 2012-2015 - Michael Lelli
*
* RetroArch 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 Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch 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 RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _LIBRETRO_CORE_IMPL_H
#define _LIBRETRO_CORE_IMPL_H
#include <boolean.h>
#include <libretro.h>
#include <retro_common_api.h>
#include "core_type.h"
RETRO_BEGIN_DECLS
enum
{
/* Polling is performed before
* call to retro_run. */
POLL_TYPE_EARLY = 0,
/* Polling is performed when requested. */
POLL_TYPE_NORMAL,
/* Polling is performed on first call to
* retro_input_state per frame. */
POLL_TYPE_LATE
};
typedef struct retro_ctx_input_state_info
{
retro_input_state_t cb;
} retro_ctx_input_state_info_t;
typedef struct retro_ctx_cheat_info
{
unsigned index;
bool enabled;
const char *code;
} retro_ctx_cheat_info_t;
typedef struct retro_ctx_api_info
{
unsigned version;
} retro_ctx_api_info_t;
typedef struct retro_ctx_controller_info
{
unsigned port;
unsigned device;
} retro_ctx_controller_info_t;
typedef struct retro_ctx_memory_info
{
void *data;
size_t size;
unsigned id;
} retro_ctx_memory_info_t;
typedef struct retro_ctx_load_content_info
{
struct retro_game_info *info;
const struct string_list *content;
const struct retro_subsystem_info *special;
} retro_ctx_load_content_info_t;
typedef struct retro_ctx_serialize_info
{
const void *data_const;
void *data;
size_t size;
} retro_ctx_serialize_info_t;
typedef struct retro_ctx_size_info
{
size_t size;
} retro_ctx_size_info_t;
typedef struct retro_ctx_environ_info
{
retro_environment_t env;
} retro_ctx_environ_info_t;
typedef struct retro_ctx_frame_info
{
const void *data;
unsigned width;
unsigned height;
size_t pitch;
} retro_ctx_frame_info_t;
typedef struct retro_callbacks
{
retro_video_refresh_t frame_cb;
retro_audio_sample_t sample_cb;
retro_audio_sample_batch_t sample_batch_cb;
retro_input_state_t state_cb;
retro_input_poll_t poll_cb;
} retro_callbacks_t;
bool core_load(void);
bool core_unload(void);
bool core_set_default_callbacks(void *data);
bool core_set_rewind_callbacks(void);
bool core_set_poll_type(unsigned *type);
/* Runs the core for one frame. */
bool core_run(void);
bool core_init(void);
bool core_deinit(void *data);
bool core_unload_game(void);
bool core_reset(void);
bool core_frame(retro_ctx_frame_info_t *info);
bool core_poll(void);
bool core_set_environment(retro_ctx_environ_info_t *info);
bool core_serialize_size(retro_ctx_size_info_t *info);
bool core_serialize(retro_ctx_serialize_info_t *info);
bool core_unserialize(retro_ctx_serialize_info_t *info);
bool core_init_symbols(enum rarch_core_type *type);
bool core_set_cheat(retro_ctx_cheat_info_t *info);
bool core_reset_cheat(void);
bool core_api_version(retro_ctx_api_info_t *api);
/* Compare libretro core API version against API version
* used by RetroArch.
*
* TODO - when libretro v2 gets added, allow for switching
* between libretro version backend dynamically.
*/
bool core_verify_api_version(void);
bool core_get_memory(retro_ctx_memory_info_t *info);
/* Initialize system A/V information. */
bool core_get_system_av_info(struct retro_system_av_info *av_info);
/* Get system A/V information. */
bool core_get_system_info(struct retro_system_info *system);
bool core_load_game(retro_ctx_load_content_info_t *load_info);
bool core_set_controller_port_device(retro_ctx_controller_info_t *pad);
bool core_has_set_input_descriptor(void);
void core_set_input_descriptors(void);
void core_unset_input_descriptors(void);
bool core_uninit_libretro_callbacks(void);
void core_set_input_state(retro_ctx_input_state_info_t *info);
RETRO_END_DECLS
#endif
+409
View File
@@ -0,0 +1,409 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2016 - Daniel De Matteis
* Copyright (C) 2012-2015 - Michael Lelli
*
* RetroArch 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 Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch 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 RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>
#include <retro_inline.h>
#include <boolean.h>
#include <lists/string_list.h>
#include <libretro.h>
#include "dynamic.h"
#include "core.h"
#include "general.h"
#include "msg_hash.h"
#include "managers/state_manager.h"
#include "system.h"
#include "gfx/video_driver.h"
#include "audio/audio_driver.h"
#ifdef HAVE_NETPLAY
#include "network/netplay/netplay.h"
#endif
static struct retro_core_t core;
static unsigned core_poll_type;
static bool core_input_polled;
static bool core_has_set_input_descriptors = false;
static struct retro_callbacks retro_ctx;
static void core_input_state_poll_maybe(void)
{
if (core_poll_type == POLL_TYPE_NORMAL)
input_poll();
}
static int16_t core_input_state_poll(unsigned port,
unsigned device, unsigned idx, unsigned id)
{
if (core_poll_type == POLL_TYPE_LATE)
{
if (!core_input_polled)
input_poll();
core_input_polled = true;
}
return input_state(port, device, idx, id);
}
void core_set_input_state(retro_ctx_input_state_info_t *info)
{
core.retro_set_input_state(info->cb);
}
/**
* core_init_libretro_cbs:
* @data : pointer to retro_callbacks object
*
* Initializes libretro callbacks, and binds the libretro callbacks
* to default callback functions.
**/
static bool core_init_libretro_cbs(void *data)
{
struct retro_callbacks *cbs = (struct retro_callbacks*)data;
#ifdef HAVE_NETPLAY
global_t *global = global_get_ptr();
#endif
if (!cbs)
return false;
core.retro_set_video_refresh(video_driver_frame);
core.retro_set_audio_sample(audio_driver_sample);
core.retro_set_audio_sample_batch(audio_driver_sample_batch);
core.retro_set_input_state(core_input_state_poll);
core.retro_set_input_poll(core_input_state_poll_maybe);
core_set_default_callbacks(cbs);
#ifdef HAVE_NETPLAY
if (!netplay_driver_ctl(RARCH_NETPLAY_CTL_IS_DATA_INITED, NULL))
return true;
/* Force normal poll type for netplay. */
core_poll_type = POLL_TYPE_NORMAL;
if (global->netplay.is_spectate)
{
core.retro_set_input_state(
(global->netplay.is_client ?
input_state_spectate_client : input_state_spectate)
);
}
else
{
core.retro_set_video_refresh(video_frame_net);
core.retro_set_audio_sample(audio_sample_net);
core.retro_set_audio_sample_batch(audio_sample_batch_net);
core.retro_set_input_state(input_state_net);
}
#endif
return true;
}
/**
* core_set_default_callbacks:
* @data : pointer to retro_callbacks object
*
* Binds the libretro callbacks to default callback functions.
**/
bool core_set_default_callbacks(void *data)
{
struct retro_callbacks *cbs = (struct retro_callbacks*)data;
if (!cbs)
return false;
cbs->frame_cb = video_driver_frame;
cbs->sample_cb = audio_driver_sample;
cbs->sample_batch_cb = audio_driver_sample_batch;
cbs->state_cb = core_input_state_poll;
cbs->poll_cb = input_poll;
return true;
}
bool core_deinit(void *data)
{
struct retro_callbacks *cbs = (struct retro_callbacks*)data;
if (!cbs)
return false;
cbs->frame_cb = NULL;
cbs->sample_cb = NULL;
cbs->sample_batch_cb = NULL;
cbs->state_cb = NULL;
cbs->poll_cb = NULL;
return true;
}
bool core_uninit_libretro_callbacks(void)
{
return core_deinit(&retro_ctx);
}
/**
* core_set_rewind_callbacks:
*
* Sets the audio sampling callbacks based on whether or not
* rewinding is currently activated.
**/
bool core_set_rewind_callbacks(void)
{
if (state_manager_frame_is_reversed())
{
core.retro_set_audio_sample(audio_driver_sample_rewind);
core.retro_set_audio_sample_batch(audio_driver_sample_batch_rewind);
}
else
{
core.retro_set_audio_sample(audio_driver_sample);
core.retro_set_audio_sample_batch(audio_driver_sample_batch);
}
return true;
}
bool core_set_cheat(retro_ctx_cheat_info_t *info)
{
core.retro_cheat_set(info->index, info->enabled, info->code);
return true;
}
bool core_reset_cheat(void)
{
core.retro_cheat_reset();
return true;
}
bool core_api_version(retro_ctx_api_info_t *api)
{
if (!api)
return false;
api->version = core.retro_api_version();
return true;
}
bool core_set_poll_type(unsigned *type)
{
core_poll_type = *type;
return true;
}
bool core_init_symbols(enum rarch_core_type *type)
{
if (!type)
return false;
init_libretro_sym(*type, &core);
return true;
}
bool core_set_controller_port_device(retro_ctx_controller_info_t *pad)
{
if (!pad)
return false;
core.retro_set_controller_port_device(pad->port, pad->device);
return true;
}
bool core_get_memory(retro_ctx_memory_info_t *info)
{
if (!info)
return false;
info->size = core.retro_get_memory_size(info->id);
info->data = core.retro_get_memory_data(info->id);
return true;
}
bool core_load_game(retro_ctx_load_content_info_t *load_info)
{
if (!load_info)
return false;
if (load_info->special)
return core.retro_load_game_special(load_info->special->id, load_info->info, load_info->content->size);
return core.retro_load_game(*load_info->content->elems[0].data ? load_info->info : NULL);
}
bool core_get_system_info(struct retro_system_info *system)
{
if (!system)
return false;
core.retro_get_system_info(system);
return true;
}
bool core_unserialize(retro_ctx_serialize_info_t *info)
{
if (!info)
return false;
if (!core.retro_unserialize(info->data_const, info->size))
return false;
return true;
}
bool core_serialize(retro_ctx_serialize_info_t *info)
{
if (!info)
return false;
if (!core.retro_serialize(info->data, info->size))
return false;
return true;
}
bool core_serialize_size(retro_ctx_size_info_t *info)
{
if (!info)
return false;
info->size = core.retro_serialize_size();
return true;
}
bool core_frame(retro_ctx_frame_info_t *info)
{
if (!info || !retro_ctx.frame_cb)
return false;
retro_ctx.frame_cb(
info->data, info->width, info->height, info->pitch);
return true;
}
bool core_poll(void)
{
if (!retro_ctx.poll_cb)
return false;
retro_ctx.poll_cb();
return true;
}
bool core_set_environment(retro_ctx_environ_info_t *info)
{
if (!info)
return false;
core.retro_set_environment(info->env);
return true;
}
bool core_get_system_av_info(struct retro_system_av_info *av_info)
{
if (!av_info)
return false;
core.retro_get_system_av_info(av_info);
return true;
}
bool core_reset(void)
{
core.retro_reset();
return true;
}
bool core_init(void)
{
core.retro_init();
return true;
}
bool core_unload(void)
{
core.retro_deinit();
uninit_libretro_sym(&core);
return true;
}
bool core_unload_game(void)
{
video_driver_deinit_hw_context();
audio_driver_stop();
core.retro_unload_game();
return true;
}
bool core_run(void)
{
switch (core_poll_type)
{
case POLL_TYPE_EARLY:
input_poll();
break;
case POLL_TYPE_LATE:
core_input_polled = false;
break;
}
if (core.retro_run)
core.retro_run();
if (core_poll_type == POLL_TYPE_LATE && !core_input_polled)
input_poll();
return true;
}
bool core_load(void)
{
settings_t *settings = config_get_ptr();
core_poll_type = settings->input.poll_type_behavior;
if (!core_verify_api_version())
return false;
if (!core_init_libretro_cbs(&retro_ctx))
return false;
core_get_system_av_info(video_viewport_get_system_av_info());
runloop_ctl(RUNLOOP_CTL_SET_FRAME_LIMIT, NULL);
return true;
}
bool core_verify_api_version(void)
{
unsigned api_version = core.retro_api_version();
RARCH_LOG("%s: %u\n",
msg_hash_to_str(MSG_VERSION_OF_LIBRETRO_API),
api_version);
RARCH_LOG("%s: %u\n",
msg_hash_to_str(MSG_COMPILED_AGAINST_API),
RETRO_API_VERSION);
if (api_version != RETRO_API_VERSION)
{
RARCH_WARN("%s\n", msg_hash_to_str(MSG_LIBRETRO_ABI_BREAK));
return false;
}
return true;
}
bool core_has_set_input_descriptor(void)
{
return core_has_set_input_descriptors;
}
void core_set_input_descriptors(void)
{
core_has_set_input_descriptors = true;
}
void core_unset_input_descriptors(void)
{
core_has_set_input_descriptors = false;
}
+418 -326
View File
@@ -16,17 +16,27 @@
*/
#include <file/file_path.h>
#include <file/file_extract.h>
#include <lists/dir_list.h>
#include <file/archive_file.h>
#include <compat/strl.h>
#include <string/stdstring.h>
#include "core_info.h"
#include "general.h"
#include "dir_list_special.h"
#include "configuration.h"
#include "file_path_special.h"
#include "list_special.h"
#include "config.def.h"
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
static const char *core_info_tmp_path = NULL;
static const struct string_list *core_info_tmp_list = NULL;
static core_info_t *core_info_current = NULL;
static core_info_list_t *core_info_curr_list = NULL;
static void core_info_list_resolve_all_extensions(
core_info_list_t *core_info_list)
{
@@ -74,7 +84,7 @@ static void core_info_list_resolve_all_firmware(
core_info_t *info = (core_info_t*)&core_info_list->list[i];
config_file_t *config = (config_file_t*)info->config_data;
if (!info || !config)
if (!config)
continue;
if (!config_get_uint(config, "firmware_count", &count))
@@ -94,7 +104,7 @@ static void core_info_list_resolve_all_firmware(
snprintf(path_key, sizeof(path_key), "firmware%u_path", c);
snprintf(desc_key, sizeof(desc_key), "firmware%u_desc", c);
snprintf(opt_key, sizeof(opt_key), "firmware%u_opt", c);
snprintf(opt_key, sizeof(opt_key), "firmware%u_opt", c);
config_get_string(config, path_key, &info->firmware[c].path);
config_get_string(config, desc_key, &info->firmware[c].desc);
@@ -103,84 +113,90 @@ static void core_info_list_resolve_all_firmware(
}
}
void core_info_get_name(const char *path, char *s, size_t len)
static void core_info_list_free(core_info_list_t *core_info_list)
{
size_t i;
core_info_t *core_info = NULL;
core_info_list_t *core_info_list = NULL;
settings_t *settings = config_get_ptr();
struct string_list *contents = dir_list_new_special(NULL, DIR_LIST_CORES, NULL);
size_t i, j;
if (!contents)
if (!core_info_list)
return;
core_info_list = (core_info_list_t*)calloc(1, sizeof(*core_info_list));
if (!core_info_list)
goto error;
core_info = (core_info_t*)calloc(contents->size, sizeof(*core_info));
if (!core_info)
goto error;
core_info_list->list = core_info;
core_info_list->count = contents->size;
for (i = 0; i < contents->size; i++)
for (i = 0; i < core_info_list->count; i++)
{
config_file_t *conf = NULL;
char info_path_base[PATH_MAX_LENGTH] = {0};
char info_path[PATH_MAX_LENGTH] = {0};
core_info_t *info = (core_info_t*)&core_info_list->list[i];
core_info[i].path = strdup(contents->elems[i].data);
free(info->path);
free(info->core_name);
free(info->systemname);
free(info->system_manufacturer);
free(info->display_name);
free(info->supported_extensions);
free(info->authors);
free(info->permissions);
free(info->licenses);
free(info->categories);
free(info->databases);
free(info->notes);
if (info->supported_extensions_list)
string_list_free(info->supported_extensions_list);
string_list_free(info->authors_list);
string_list_free(info->note_list);
string_list_free(info->permissions_list);
string_list_free(info->licenses_list);
string_list_free(info->categories_list);
string_list_free(info->databases_list);
config_file_free((config_file_t*)info->config_data);
if (!core_info[i].path)
break;
if (strcmp(core_info[i].path, path) != 0)
continue;
fill_pathname_base(info_path_base, contents->elems[i].data,
sizeof(info_path_base));
path_remove_extension(info_path_base);
#if defined(RARCH_MOBILE) || (defined(RARCH_CONSOLE) && !defined(PSP))
char *substr = strrchr(info_path_base, '_');
if (substr)
*substr = '\0';
#endif
strlcat(info_path_base, ".info", sizeof(info_path_base));
fill_pathname_join(info_path, (*settings->libretro_info_path) ?
settings->libretro_info_path : settings->libretro_directory,
info_path_base, sizeof(info_path));
conf = config_file_new(info_path);
if (conf)
for (j = 0; j < info->firmware_count; j++)
{
config_get_string(conf, "corename",
&core_info[i].core_name);
core_info[i].config_data = (void*)conf;
free(info->firmware[j].path);
free(info->firmware[j].desc);
}
strlcpy(s, core_info[i].core_name, len);
free(info->firmware);
}
error:
if (contents)
dir_list_free(contents);
contents = NULL;
core_info_list_free(core_info_list);
free(core_info_list->all_ext);
free(core_info_list->list);
free(core_info_list);
}
core_info_list_t *core_info_list_new(void)
static config_file_t *core_info_list_iterate(
struct string_list *contents, size_t i)
{
char info_path_base[PATH_MAX_LENGTH] = {0};
char info_path[PATH_MAX_LENGTH] = {0};
settings_t *settings = config_get_ptr();
if (!contents->elems[i].data)
return NULL;
fill_pathname_base_noext(info_path_base, contents->elems[i].data,
sizeof(info_path_base));
#if defined(RARCH_MOBILE) || (defined(RARCH_CONSOLE) && !defined(PSP))
char *substr = strrchr(info_path_base, '_');
if (substr)
*substr = '\0';
#endif
strlcat(info_path_base,
file_path_str(FILE_PATH_CORE_INFO_EXTENSION),
sizeof(info_path_base));
fill_pathname_join(info_path,
(!string_is_empty(settings->path.libretro_info)) ?
settings->path.libretro_info : settings->directory.libretro,
info_path_base, sizeof(info_path));
return config_file_new(info_path);
}
static core_info_list_t *core_info_list_new(void)
{
size_t i;
core_info_t *core_info = NULL;
core_info_t *core_info = NULL;
core_info_list_t *core_info_list = NULL;
settings_t *settings = config_get_ptr();
struct string_list *contents = dir_list_new_special(NULL, DIR_LIST_CORES, NULL);
struct string_list *contents =
dir_list_new_special(NULL, DIR_LIST_CORES, NULL);
if (!contents)
return NULL;
@@ -198,35 +214,13 @@ core_info_list_t *core_info_list_new(void)
for (i = 0; i < contents->size; i++)
{
config_file_t *conf = NULL;
char info_path_base[PATH_MAX_LENGTH] = {0};
char info_path[PATH_MAX_LENGTH] = {0};
core_info[i].path = strdup(contents->elems[i].data);
if (!core_info[i].path)
break;
fill_pathname_base(info_path_base, contents->elems[i].data,
sizeof(info_path_base));
path_remove_extension(info_path_base);
#if defined(RARCH_MOBILE) || (defined(RARCH_CONSOLE) && !defined(PSP))
char *substr = strrchr(info_path_base, '_');
if (substr)
*substr = '\0';
#endif
strlcat(info_path_base, ".info", sizeof(info_path_base));
fill_pathname_join(info_path, (*settings->libretro_info_path) ?
settings->libretro_info_path : settings->libretro_directory,
info_path_base, sizeof(info_path));
conf = config_file_new(info_path);
config_file_t *conf = core_info_list_iterate(contents, i);
if (conf)
{
bool tmp_bool = false;
unsigned count = 0;
config_get_string(conf, "display_name",
&core_info[i].display_name);
config_get_string(conf, "corename",
@@ -278,14 +272,18 @@ core_info_list_t *core_info_list_new(void)
core_info[i].notes)
core_info[i].note_list = string_split(core_info[i].notes, "|");
config_get_bool(conf, "supports_no_game",
&core_info[i].supports_no_game);
if (config_get_bool(conf, "supports_no_game",
&tmp_bool))
core_info[i].supports_no_game = tmp_bool;
core_info[i].config_data = conf;
}
core_info[i].path = strdup(contents->elems[i].data);
if (!core_info[i].display_name)
core_info[i].display_name = strdup(path_basename(core_info[i].path));
core_info[i].display_name =
strdup(path_basename(core_info[i].path));
}
core_info_list_resolve_all_extensions(core_info_list);
@@ -301,134 +299,11 @@ error:
return NULL;
}
void core_info_list_free(core_info_list_t *core_info_list)
{
size_t i, j;
if (!core_info_list)
return;
for (i = 0; i < core_info_list->count; i++)
{
core_info_t *info = (core_info_t*)&core_info_list->list[i];
if (!info)
continue;
free(info->path);
free(info->core_name);
free(info->systemname);
free(info->system_manufacturer);
free(info->display_name);
free(info->supported_extensions);
free(info->authors);
free(info->permissions);
free(info->licenses);
free(info->categories);
free(info->databases);
free(info->notes);
if (info->supported_extensions_list)
string_list_free(info->supported_extensions_list);
string_list_free(info->authors_list);
string_list_free(info->note_list);
string_list_free(info->permissions_list);
string_list_free(info->licenses_list);
string_list_free(info->categories_list);
string_list_free(info->databases_list);
config_file_free((config_file_t*)info->config_data);
for (j = 0; j < info->firmware_count; j++)
{
free(info->firmware[j].path);
free(info->firmware[j].desc);
}
free(info->firmware);
}
free(core_info_list->all_ext);
free(core_info_list->list);
free(core_info_list);
}
size_t core_info_list_num_info_files(core_info_list_t *core_info_list)
{
size_t i, num = 0;
if (!core_info_list)
return 0;
for (i = 0; i < core_info_list->count; i++)
{
config_file_t *conf = (config_file_t*)core_info_list->list[i].config_data;
num += !!conf;
}
return num;
}
bool core_info_list_get_display_name(core_info_list_t *core_info_list,
const char *path, char *buf, size_t size)
{
size_t i;
if (!core_info_list)
return false;
for (i = 0; i < core_info_list->count; i++)
{
const core_info_t *info = &core_info_list->list[i];
if (!strcmp(path_basename(info->path), path_basename(path))
&& info->display_name)
{
strlcpy(buf, info->display_name, size);
return true;
}
}
return false;
}
bool core_info_get_display_name(const char *path, char *s, size_t len)
{
char *core_name = NULL;
char *display_name = NULL;
config_file_t *conf = NULL;
if (!path_file_exists(path))
return false;
conf = config_file_new(path);
if (!conf)
goto error;
config_get_string(conf, "corename",
&core_name);
config_get_string(conf, "display_name",
&display_name);
config_file_free(conf);
if (!core_name)
goto error;
if (!conf)
goto error;
snprintf(s, len,"%s",display_name);
free(core_name);
free(display_name);
return true;
error:
if (core_name)
free(core_name);
return false;
}
bool core_info_list_get_info(core_info_list_t *core_info_list,
/* Shallow-copies internal state.
*
* Data in *info is invalidated when the
* core_info_list is freed. */
static bool core_info_list_get_info(core_info_list_t *core_info_list,
core_info_t *out_info, const char *path)
{
size_t i;
@@ -440,7 +315,9 @@ bool core_info_list_get_info(core_info_list_t *core_info_list,
for (i = 0; i < core_info_list->count; i++)
{
const core_info_t *info = &core_info_list->list[i];
if (!strcmp(path_basename(info->path), path_basename(path)))
if (string_is_equal(path_basename(info->path),
path_basename(path)))
{
*out_info = *info;
return true;
@@ -450,7 +327,7 @@ bool core_info_list_get_info(core_info_list_t *core_info_list,
return false;
}
bool core_info_does_support_any_file(const core_info_t *core,
static bool core_info_does_support_any_file(const core_info_t *core,
const struct string_list *list)
{
size_t i;
@@ -464,7 +341,8 @@ bool core_info_does_support_any_file(const core_info_t *core,
return false;
}
bool core_info_does_support_file(const core_info_t *core, const char *path)
static bool core_info_does_support_file(
const core_info_t *core, const char *path)
{
if (!path || !core || !core->supported_extensions_list)
return false;
@@ -472,49 +350,235 @@ bool core_info_does_support_file(const core_info_t *core, const char *path)
core->supported_extensions_list, ".", path_get_extension(path));
}
const char *core_info_list_get_all_extensions(void)
{
core_info_list_t *list = NULL;
runloop_ctl(RUNLOOP_CTL_CURRENT_CORE_LIST_GET, &list);
if (!list)
return NULL;
return list->all_ext;
}
/* qsort_r() is not in standard C, sadly. */
static const char *core_info_tmp_path;
static const struct string_list *core_info_tmp_list;
static int core_info_qsort_cmp(const void *a_, const void *b_)
{
const core_info_t *a = (const core_info_t*)a_;
const core_info_t *b = (const core_info_t*)b_;
int support_a = core_info_does_support_any_file(a, core_info_tmp_list) ||
core_info_does_support_file(a, core_info_tmp_path);
int support_b = core_info_does_support_any_file(b, core_info_tmp_list) ||
core_info_does_support_file(b, core_info_tmp_path);
int support_a =
core_info_does_support_any_file(a, core_info_tmp_list)
|| core_info_does_support_file(a, core_info_tmp_path);
int support_b =
core_info_does_support_any_file(b, core_info_tmp_list)
|| core_info_does_support_file(b, core_info_tmp_path);
if (support_a != support_b)
return support_b - support_a;
return strcasecmp(a->display_name, b->display_name);
}
static core_info_t *core_info_find_internal(
core_info_list_t *list,
const char *core)
{
size_t i;
for (i = 0; i < list->count; i++)
{
core_info_t *info = core_info_get(list, i);
if (!info)
continue;
if (string_is_equal(info->path, core))
return info;
}
return NULL;
}
static bool core_info_list_update_missing_firmware_internal(
core_info_list_t *core_info_list,
const char *core,
const char *systemdir)
{
size_t i;
char path[PATH_MAX_LENGTH] = {0};
core_info_t *info = NULL;
if (!core_info_list || !core)
return false;
info = core_info_find_internal(core_info_list, core);
if (!info)
return false;
for (i = 0; i < info->firmware_count; i++)
{
if (!info->firmware[i].path)
continue;
fill_pathname_join(path, systemdir,
info->firmware[i].path, sizeof(path));
info->firmware[i].missing = !path_file_exists(path);
}
return true;
}
#if 0
static int core_info_firmware_cmp(const void *a_, const void *b_)
{
const core_info_firmware_t *a = (const core_info_firmware_t*)a_;
const core_info_firmware_t *b = (const core_info_firmware_t*)b_;
int order = b->missing - a->missing;
if (order)
return order;
return strcasecmp(a->path, b->path);
}
/* Non-reentrant, does not allocate. Returns pointer to internal state. */
static void core_info_list_get_missing_firmware(
core_info_list_t *core_info_list,
const char *core, const char *systemdir,
const core_info_firmware_t **firmware, size_t *num_firmware)
{
size_t i;
char path[PATH_MAX_LENGTH] = {0};
core_info_t *info = NULL;
if (!core_info_list || !core)
return;
*firmware = NULL;
*num_firmware = 0;
if (!(info = core_info_find_internal(core_info_list, core)))
return;
*firmware = info->firmware;
for (i = 1; i < info->firmware_count; i++)
{
fill_pathname_join(path, systemdir,
info->firmware[i].path, sizeof(path));
info->firmware[i].missing = !path_file_exists(path);
*num_firmware += info->firmware[i].missing;
}
qsort(info->firmware, info->firmware_count, sizeof(*info->firmware),
core_info_firmware_cmp);
}
#endif
void core_info_free_current_core(void)
{
if (core_info_current)
free(core_info_current);
core_info_current = NULL;
}
bool core_info_init_current_core(void)
{
core_info_current = (core_info_t*)calloc(1, sizeof(core_info_t));
if (!core_info_current)
return false;
return true;
}
bool core_info_get_current_core(core_info_t **core)
{
if (!core)
return false;
*core = core_info_current;
return true;
}
void core_info_deinit_list(void)
{
if (core_info_curr_list)
core_info_list_free(core_info_curr_list);
core_info_curr_list = NULL;
}
bool core_info_init_list(void)
{
core_info_curr_list = core_info_list_new();
if (!core_info_curr_list)
return false;
return true;
}
bool core_info_get_list(core_info_list_t **core)
{
if (!core)
return false;
*core = core_info_curr_list;
return true;
}
bool core_info_list_update_missing_firmware(core_info_ctx_firmware_t *info)
{
if (!info)
return false;
return core_info_list_update_missing_firmware_internal(
core_info_curr_list,
info->path, info->directory.system);
}
bool core_info_load(core_info_ctx_find_t *info)
{
core_info_t *core_info = NULL;
if (!info)
return false;
core_info_get_current_core(&core_info);
if (!core_info_curr_list)
return false;
if (!core_info_list_get_info(core_info_curr_list,
core_info, info->path))
return false;
return true;
}
bool core_info_find(core_info_ctx_find_t *info, const char *core_path)
{
if (!info || !core_info_curr_list)
return false;
info->inf = core_info_find_internal(core_info_curr_list, core_path);
if (!info->inf)
return false;
return true;
}
core_info_t *core_info_get(core_info_list_t *list, size_t i)
{
core_info_t *info = NULL;
if (!list)
return NULL;
info = (core_info_t*)&list->list[i];
if (!info || !info->path)
return NULL;
return info;
}
void core_info_list_get_supported_cores(core_info_list_t *core_info_list,
const char *path, const core_info_t **infos, size_t *num_infos)
{
#ifdef HAVE_ZLIB
struct string_list *list = NULL;
#endif
size_t supported = 0, i;
if (!core_info_list)
return;
(void)list;
core_info_tmp_path = path;
#ifdef HAVE_ZLIB
if (!strcasecmp(path_get_extension(path), "zip"))
list = zlib_get_file_list(path, NULL);
if (string_is_equal_noncase(path_get_extension(path), "zip"))
list = file_archive_get_file_list(path, NULL);
core_info_tmp_list = list;
#endif
@@ -527,9 +591,6 @@ void core_info_list_get_supported_cores(core_info_list_t *core_info_list,
{
const core_info_t *core = &core_info_list->list[i];
if (!core)
continue;
if (core_info_does_support_file(core, path))
continue;
@@ -546,104 +607,135 @@ void core_info_list_get_supported_cores(core_info_list_t *core_info_list,
string_list_free(list);
#endif
*infos = core_info_list->list;
*infos = core_info_list->list;
*num_infos = supported;
}
core_info_t *core_info_find(core_info_list_t *list,
const char *core)
void core_info_get_name(const char *path, char *s, size_t len)
{
size_t i;
core_info_t *core_info = NULL;
core_info_list_t *core_info_list = NULL;
struct string_list *contents = dir_list_new_special(
NULL, DIR_LIST_CORES, NULL);
if (!contents)
return;
core_info_list = (core_info_list_t*)calloc(1, sizeof(*core_info_list));
if (!core_info_list)
goto error;
core_info = (core_info_t*)calloc(contents->size, sizeof(*core_info));
if (!core_info)
goto error;
core_info_list->list = core_info;
core_info_list->count = contents->size;
for (i = 0; i < contents->size; i++)
{
config_file_t *conf = NULL;
if (!string_is_equal(contents->elems[i].data, path))
continue;
conf = core_info_list_iterate(contents, i);
if (conf)
{
config_get_string(conf, "corename",
&core_info[i].core_name);
core_info[i].config_data = (void*)conf;
}
core_info[i].path = strdup(contents->elems[i].data);
strlcpy(s, core_info[i].core_name, len);
}
error:
if (contents)
dir_list_free(contents);
contents = NULL;
core_info_list_free(core_info_list);
}
size_t core_info_list_num_info_files(core_info_list_t *core_info_list)
{
size_t i, num = 0;
if (!core_info_list)
return 0;
for (i = 0; i < core_info_list->count; i++)
{
config_file_t *conf = (config_file_t*)
core_info_list->list[i].config_data;
num += !!conf;
}
return num;
}
bool core_info_list_get_display_name(core_info_list_t *core_info_list,
const char *path, char *s, size_t len)
{
size_t i;
for (i = 0; i < list->count; i++)
{
core_info_t *info = (core_info_t*)&list->list[i];
if (!core_info_list)
return false;
if (!info)
continue;
if (!info->path)
continue;
if (!strcmp(info->path, core))
return info;
for (i = 0; i < core_info_list->count; i++)
{
const core_info_t *info = &core_info_list->list[i];
if (string_is_equal(path_basename(info->path), path_basename(path))
&& info->display_name)
{
strlcpy(s, info->display_name, len);
return true;
}
}
return NULL;
return false;
}
core_info_t *core_info_get(core_info_list_t *list, size_t i)
bool core_info_get_display_name(const char *path, char *s, size_t len)
{
core_info_t *info = NULL;
char *core_name = NULL;
char *display_name = NULL;
config_file_t *conf = NULL;
if (!list)
return NULL;
info = (core_info_t*)&list->list[i];
if (!info || !info->path)
return NULL;
if (!path_file_exists(path))
return false;
return info;
}
conf = config_file_new(path);
static int core_info_firmware_cmp(const void *a_, const void *b_)
{
const core_info_firmware_t *a = (const core_info_firmware_t*)a_;
const core_info_firmware_t *b = (const core_info_firmware_t*)b_;
int order = b->missing - a->missing;
if (!conf)
return false;
if (order)
return order;
return strcasecmp(a->path, b->path);
}
config_get_string(conf, "corename",
&core_name);
config_get_string(conf, "display_name",
&display_name);
void core_info_list_update_missing_firmware(core_info_list_t *core_info_list,
const char *core, const char *systemdir)
{
size_t i;
char path[PATH_MAX_LENGTH] = {0};
core_info_t *info = NULL;
if (!core_name || !display_name)
goto error;
if (!core_info_list || !core)
return;
config_file_free(conf);
if (!(info = core_info_find(core_info_list, core)))
return;
snprintf(s, len,"%s",display_name);
for (i = 0; i < info->firmware_count; i++)
{
if (!info->firmware[i].path)
continue;
free(core_name);
free(display_name);
fill_pathname_join(path, systemdir,
info->firmware[i].path, sizeof(path));
info->firmware[i].missing = !path_file_exists(path);
}
}
return true;
void core_info_list_get_missing_firmware(core_info_list_t *core_info_list,
const char *core, const char *systemdir,
const core_info_firmware_t **firmware, size_t *num_firmware)
{
size_t i;
char path[PATH_MAX_LENGTH] = {0};
core_info_t *info = NULL;
if (!core_info_list || !core)
return;
*firmware = NULL;
*num_firmware = 0;
if (!(info = core_info_find(core_info_list, core)))
return;
*firmware = info->firmware;
for (i = 1; i < info->firmware_count; i++)
{
fill_pathname_join(path, systemdir, info->firmware[i].path, sizeof(path));
info->firmware[i].missing = !path_file_exists(path);
*num_firmware += info->firmware[i].missing;
}
qsort(info->firmware, info->firmware_count, sizeof(*info->firmware),
core_info_firmware_cmp);
error:
config_file_free(conf);
if (core_name)
free(core_name);
if (display_name)
free(display_name);
return false;
}
+38 -33
View File
@@ -20,9 +20,10 @@
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <lists/string_list.h>
#include <retro_common_api.h>
RETRO_BEGIN_DECLS
typedef struct
{
@@ -70,41 +71,29 @@ typedef struct
char *all_ext;
} core_info_list_t;
core_info_list_t *core_info_list_new(void);
void core_info_list_free(core_info_list_t *list);
typedef struct core_info_ctx_firmware
{
const char *path;
struct
{
const char *system;
} directory;
} core_info_ctx_firmware_t;
typedef struct core_info_ctx_find
{
core_info_t *inf;
const char *path;
} core_info_ctx_find_t;
size_t core_info_list_num_info_files(core_info_list_t *list);
bool core_info_does_support_file(const core_info_t *info,
const char *path);
bool core_info_does_support_any_file(const core_info_t *info,
const struct string_list *list);
/* Non-reentrant, does not allocate. Returns pointer to internal state. */
void core_info_list_get_supported_cores(core_info_list_t *list,
const char *path, const core_info_t **infos, size_t *num_infos);
/* Non-reentrant, does not allocate. Returns pointer to internal state. */
void core_info_list_get_missing_firmware(core_info_list_t *list,
const char *core, const char *systemdir,
const core_info_firmware_t **firmware, size_t *num_firmware);
void core_info_list_update_missing_firmware(core_info_list_t *list,
const char *core, const char *systemdir);
/* Shallow-copies internal state. Data in *info is invalidated when the
* core_info_list is freed. */
bool core_info_list_get_info(core_info_list_t *list,
core_info_t *info, const char *path);
const char *core_info_list_get_all_extensions(void);
core_info_t *core_info_find(core_info_list_t *list,
const char *core);
bool core_info_list_get_display_name(core_info_list_t *list,
const char *path, char *buf, size_t size);
const char *path, char *s, size_t len);
bool core_info_get_display_name(const char *path, char *s, size_t len);
@@ -112,8 +101,24 @@ void core_info_get_name(const char *path, char *s, size_t len);
core_info_t *core_info_get(core_info_list_t *list, size_t i);
#ifdef __cplusplus
}
#endif
void core_info_free_current_core(void);
bool core_info_init_current_core(void);
bool core_info_get_current_core(core_info_t **core);
void core_info_deinit_list(void);
bool core_info_init_list(void);
bool core_info_get_list(core_info_list_t **core);
bool core_info_list_update_missing_firmware(core_info_ctx_firmware_t *info);
bool core_info_find(core_info_ctx_find_t *info, const char *name);
bool core_info_load(core_info_ctx_find_t *info);
RETRO_END_DECLS
#endif /* CORE_INFO_H_ */
+10 -16
View File
@@ -1,5 +1,4 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2016 - Daniel De Matteis
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
@@ -14,21 +13,16 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __RARCH_SCREENSHOT_H
#define __RARCH_SCREENSHOT_H
#ifndef __CORE_TYPE_H
#define __CORE_TYPE_H
#include <stdint.h>
#include <stddef.h>
#include <boolean.h>
#ifdef __cplusplus
extern "C" {
#endif
bool take_screenshot(void);
#ifdef __cplusplus
}
#endif
enum rarch_core_type
{
CORE_TYPE_PLAIN = 0,
CORE_TYPE_DUMMY,
CORE_TYPE_FFMPEG,
CORE_TYPE_IMAGEVIEWER,
CORE_TYPE_NETRETROPAD
};
#endif
+2 -1
View File
@@ -19,8 +19,9 @@
#include <stdlib.h>
#include <string.h>
#include <libretro.h>
#include "internal_cores.h"
#include "../libretro.h"
static uint16_t *frame_buf;
-244
View File
@@ -1,244 +0,0 @@
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <boolean.h>
#define STB_IMAGE_IMPLEMENTATION
#ifdef RARCH_INTERNAL
#define STBI_NO_PSD
#define STBI_NO_GIF
#define STBI_NO_HDR
#define STBI_NO_PIC
#define STBI_NO_PNM
#define STBI_SUPPORT_ZLIB
#endif
#include "../deps/stb/stb_image.h"
#ifdef RARCH_INTERNAL
#include "internal_cores.h"
#include "../libretro.h"
#define IMAGE_CORE_PREFIX(s) libretro_imageviewer_##s
#else
#include "libretro.h"
#define IMAGE_CORE_PREFIX(s) s
#endif
static retro_log_printf_t IMAGE_CORE_PREFIX(log_cb);
static retro_video_refresh_t IMAGE_CORE_PREFIX(video_cb);
static retro_input_poll_t IMAGE_CORE_PREFIX(input_poll_cb);
static retro_input_state_t IMAGE_CORE_PREFIX(input_state_cb);
static retro_audio_sample_batch_t IMAGE_CORE_PREFIX(audio_batch_cb);
static retro_environment_t IMAGE_CORE_PREFIX(environ_cb);
static uint32_t* image_buffer;
static int image_width;
static int image_height;
static bool image_uploaded;
#if 0
#define DUPE_TEST
#endif
void IMAGE_CORE_PREFIX(retro_get_system_info)(struct retro_system_info *info)
{
info->library_name = "image display";
info->library_version = "v0.1";
info->need_fullpath = true;
info->block_extract = false;
#ifdef RARCH_INTERNAL
info->valid_extensions = "jpg|jpeg|png|bmp|tga";
#else
info->valid_extensions = "jpg|jpeg|png|bmp|psd|tga|gif|hdr|pic|ppm|pgm";
#endif
}
void IMAGE_CORE_PREFIX(retro_get_system_av_info)(struct retro_system_av_info *info)
{
info->geometry.base_width = image_width;
info->geometry.base_height = image_height;
info->geometry.max_width = image_width;
info->geometry.max_height = image_height;
info->geometry.aspect_ratio = 0;
info->timing.fps = 60.0;
info->timing.sample_rate = 44100.0;
}
void IMAGE_CORE_PREFIX(retro_init)(void)
{
struct retro_log_callback log;
if (IMAGE_CORE_PREFIX(environ_cb)(RETRO_ENVIRONMENT_GET_LOG_INTERFACE, &log))
IMAGE_CORE_PREFIX(log_cb) = log.log;
else
IMAGE_CORE_PREFIX(log_cb) = NULL;
image_buffer = NULL;
image_width = 0;
image_height = 0;
}
void IMAGE_CORE_PREFIX(retro_deinit)(void)
{
if (image_buffer)
free(image_buffer);
image_buffer = NULL;
image_width = 0;
image_height = 0;
}
void IMAGE_CORE_PREFIX(retro_set_environment)(retro_environment_t cb)
{
static const struct retro_variable vars[] = {
{ NULL, NULL },
};
IMAGE_CORE_PREFIX(environ_cb) = cb;
cb(RETRO_ENVIRONMENT_SET_VARIABLES, (void*)vars);
}
void IMAGE_CORE_PREFIX(retro_set_video_refresh)(retro_video_refresh_t cb)
{
IMAGE_CORE_PREFIX(video_cb) = cb;
}
void IMAGE_CORE_PREFIX(retro_set_audio_sample)(retro_audio_sample_t unused)
{
}
void IMAGE_CORE_PREFIX(retro_set_audio_sample_batch)(retro_audio_sample_batch_t cb)
{
IMAGE_CORE_PREFIX(audio_batch_cb) = cb;
}
void IMAGE_CORE_PREFIX(retro_set_input_poll)(retro_input_poll_t cb)
{
IMAGE_CORE_PREFIX(input_poll_cb) = cb;
}
void IMAGE_CORE_PREFIX(retro_set_input_state)(retro_input_state_t cb)
{
IMAGE_CORE_PREFIX(input_state_cb) = cb;
}
void IMAGE_CORE_PREFIX(retro_set_controller_port_device)(unsigned a, unsigned b)
{
}
void IMAGE_CORE_PREFIX(retro_reset)(void)
{
image_uploaded = false;
}
size_t IMAGE_CORE_PREFIX(retro_serialize_size)(void)
{
return 0;
}
bool IMAGE_CORE_PREFIX(retro_serialize)(void *data, size_t size)
{
(void)data;
(void)size;
return false;
}
bool IMAGE_CORE_PREFIX(retro_unserialize)(const void *data, size_t size)
{
(void)data;
(void)size;
return false;
}
void IMAGE_CORE_PREFIX(retro_cheat_reset)(void)
{
}
void IMAGE_CORE_PREFIX(retro_cheat_set)(unsigned a, bool b, const char * c)
{
}
bool IMAGE_CORE_PREFIX(retro_load_game)(const struct retro_game_info *info)
{
int comp;
uint32_t *buf, *end;
enum retro_pixel_format fmt = RETRO_PIXEL_FORMAT_XRGB8888;
image_buffer = (uint32_t*)stbi_load (info->path,&image_width, &image_height, &comp, 4);
/* RGBA > XRGB8888 */
buf = &image_buffer[0];
end = buf + (image_width*image_height*sizeof(uint32_t))/4;
while(buf < end)
{
uint32_t pixel = *buf;
*buf = (pixel & 0xff00ff00) | ((pixel << 16) & 0x00ff0000) | ((pixel >> 16) & 0xff);
buf++;
}
if (!IMAGE_CORE_PREFIX(environ_cb)(RETRO_ENVIRONMENT_SET_PIXEL_FORMAT, &fmt))
{
if (IMAGE_CORE_PREFIX(log_cb))
IMAGE_CORE_PREFIX(log_cb)(RETRO_LOG_INFO, "XRGB8888 is not supported.\n");
return false;
}
return true;
}
bool IMAGE_CORE_PREFIX(retro_load_game_special)(unsigned a, const struct retro_game_info *b, size_t c)
{
return false;
}
void IMAGE_CORE_PREFIX(retro_unload_game)(void)
{
if (image_buffer)
free(image_buffer);
image_buffer = NULL;
image_width = 0;
image_height = 0;
}
unsigned IMAGE_CORE_PREFIX(retro_get_region)(void)
{
return RETRO_REGION_NTSC;
}
void *IMAGE_CORE_PREFIX(retro_get_memory_data)(unsigned id)
{
return NULL;
}
size_t IMAGE_CORE_PREFIX(retro_get_memory_size)(unsigned id)
{
return 0;
}
void IMAGE_CORE_PREFIX(retro_run)(void)
{
IMAGE_CORE_PREFIX(input_poll_cb)();
#ifdef DUPE_TEST
if (!image_uploaded)
{
IMAGE_CORE_PREFIX(video_cb)(image_buffer, image_width, image_height, image_width * sizeof(uint32_t));
image_uploaded = true;
}
else
IMAGE_CORE_PREFIX(video_cb)(NULL, image_width, image_height, image_width * sizeof(uint32_t));
#else
IMAGE_CORE_PREFIX(video_cb)(image_buffer, image_width, image_height, image_width * sizeof(uint32_t));
#endif
}
unsigned IMAGE_CORE_PREFIX(retro_api_version)(void)
{
return RETRO_API_VERSION;
}
+57 -1
View File
@@ -19,7 +19,7 @@
#define INTERNAL_CORES_H__
#include <boolean.h>
#include "../libretro.h"
#include <libretro.h>
void libretro_dummy_retro_init(void);
@@ -184,4 +184,60 @@ size_t libretro_imageviewer_retro_get_memory_size(unsigned id);
#endif
#if defined(HAVE_NETWORKGAMEPAD) && defined(HAVE_NETPLAY)
/* Internal networked retropad core. */
void libretro_netretropad_retro_init(void);
void libretro_netretropad_retro_deinit(void);
unsigned libretro_netretropad_retro_api_version(void);
void libretro_netretropad_retro_get_system_info(struct retro_system_info *info);
void libretro_netretropad_retro_get_system_av_info(struct retro_system_av_info *info);
void libretro_netretropad_retro_set_environment(retro_environment_t cb);
void libretro_netretropad_retro_set_video_refresh(retro_video_refresh_t cb);
void libretro_netretropad_retro_set_audio_sample(retro_audio_sample_t cb);
void libretro_netretropad_retro_set_audio_sample_batch(retro_audio_sample_batch_t cb);
void libretro_netretropad_retro_set_input_poll(retro_input_poll_t cb);
void libretro_netretropad_retro_set_input_state(retro_input_state_t cb);
void libretro_netretropad_retro_set_controller_port_device(unsigned port, unsigned device);
void libretro_netretropad_retro_reset(void);
void libretro_netretropad_retro_run(void);
size_t libretro_netretropad_retro_serialize_size(void);
bool libretro_netretropad_retro_serialize(void *data, size_t size);
bool libretro_netretropad_retro_unserialize(const void *data, size_t size);
void libretro_netretropad_retro_cheat_reset(void);
void libretro_netretropad_retro_cheat_set(unsigned index, bool enabled, const char *code);
bool libretro_netretropad_retro_load_game(const struct retro_game_info *game);
bool libretro_netretropad_retro_load_game_special(unsigned game_type,
const struct retro_game_info *info, size_t num_info);
void libretro_netretropad_retro_unload_game(void);
unsigned libretro_netretropad_retro_get_region(void);
void *libretro_netretropad_retro_get_memory_data(unsigned id);
size_t libretro_netretropad_retro_get_memory_size(unsigned id);
#endif
#endif
+3 -2
View File
@@ -232,12 +232,13 @@ ifeq ($(HAVE_SSA), 1)
endif
LIBRETROCOMM_DIR := ../../libretro-common
DEPS_DIR := ../../deps
LIBAVCODEC_SOURCE :=
LIBAVFORMAT_SOURCE :=
LIBAVUTIL_SOURCE :=
LIBRETRO_SOURCE := ffmpeg_core.c \
$(LIBRETROCOMM_DIR)/queues/fifo_buffer.c \
$(LIBRETROCOMM_DIR)/queues/fifo_queue.c \
$(LIBRETROCOMM_DIR)/rthreads/rthreads.c
DEPS_SOURCE :=
@@ -2165,7 +2166,7 @@ else
CFLAGS += -DHAVE_INTRINSICS_NEON=0
endif
CFLAGS += -Ilibretro-common/include
CFLAGS += -I$(LIBRETROCOMM_DIR)/include -I$(DEPS_DIR)
OBJECTS := $(DEPS_SOURCE:.c=.o) $(LIBRETRO_SOURCE:.c=.o) $(FFT_SOURCE:.cpp=.o) $(LIBAVUTIL_SOURCE:.c=.o) $(LIBAVFORMAT_SOURCE:.c=.o) $(LIBSWSCALE_SOURCE:.c=.o) $(LIBAVCODEC_SOURCE:.c=.o) $(LIBSWRESAMPLE_SOURCE:.c=.o)
+54 -27
View File
@@ -5,6 +5,12 @@
#include <assert.h>
#include <stdarg.h>
#ifdef RARCH_INTERNAL
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#endif
#ifdef __cplusplus
extern "C" {
#endif
@@ -12,6 +18,7 @@ extern "C" {
#include <libavformat/avformat.h>
#include <libavcodec/avcodec.h>
#include <libswscale/swscale.h>
#include <libavutil/imgutils.h>
#include <libavutil/time.h>
#include <libavutil/opt.h>
#include <libavdevice/avdevice.h>
@@ -33,9 +40,9 @@ extern "C" {
#endif
#include <rthreads/rthreads.h>
#include <queues/fifo_buffer.h>
#include <queues/fifo_queue.h>
#include "libretro.h"
#include <libretro.h>
#ifdef RARCH_INTERNAL
#include "internal_cores.h"
#define CORE_PREFIX(s) libretro_ffmpeg_##s
@@ -174,9 +181,14 @@ static struct
#ifdef HAVE_SSA
static void ass_msg_cb(int level, const char *fmt, va_list args, void *data)
{
char buffer[4096];
(void)data;
if (level < 6)
log_cb(RETRO_LOG_INFO, fmt);
{
vsnprintf(buffer, sizeof(buffer), fmt, args);
log_cb(RETRO_LOG_INFO, "%s\n", buffer);
}
}
#endif
@@ -792,8 +804,10 @@ static bool codec_id_is_ass(enum AVCodecID id)
#endif
return true;
default:
return false;
break;
}
return false;
}
#endif
@@ -801,14 +815,15 @@ static bool open_codecs(void)
{
unsigned i;
video_stream = -1;
memset(audio_streams, 0, sizeof(audio_streams));
memset(subtitle_streams, 0, sizeof(subtitle_streams));
video_stream = -1;
audio_streams_num = 0;
audio_streams_ptr = 0;
subtitle_streams_num = 0;
subtitle_streams_ptr = 0;
memset(audio_streams, 0, sizeof(audio_streams));
memset(subtitle_streams, 0, sizeof(subtitle_streams));
for (i = 0; i < fctx->nb_streams; i++)
{
switch (fctx->streams[i]->codec->codec_type)
@@ -848,7 +863,7 @@ static bool open_codecs(void)
if (size)
{
ass_extra_data[subtitle_streams_num] = av_malloc(size);
ass_extra_data[subtitle_streams_num] = (uint8_t*)av_malloc(size);
memcpy(ass_extra_data[subtitle_streams_num], (*s)->extradata, size);
}
@@ -858,12 +873,12 @@ static bool open_codecs(void)
break;
case AVMEDIA_TYPE_ATTACHMENT:
{
AVCodecContext *ctx = fctx->streams[i]->codec;
if (codec_id_is_ttf(ctx->codec_id))
append_attachment(ctx->extradata, ctx->extradata_size);
{
AVCodecContext *ctx = fctx->streams[i]->codec;
if (codec_id_is_ttf(ctx->codec_id))
append_attachment(ctx->extradata, ctx->extradata_size);
}
break;
}
default:
break;
@@ -883,19 +898,21 @@ static bool init_media_info(void)
{
media.width = vctx->width;
media.height = vctx->height;
media.aspect = (float)vctx->width * av_q2d(vctx->sample_aspect_ratio) / vctx->height;
media.aspect = (float)vctx->width *
av_q2d(vctx->sample_aspect_ratio) / vctx->height;
}
#ifdef HAVE_SSA
if (sctx[0])
{
size_t i;
unsigned i;
ass = ass_library_init();
ass_set_message_cb(ass, ass_msg_cb, NULL);
for (i = 0; i < attachments_size; i++)
ass_add_font(ass, (char*)"", (char*)attachments[i].data, attachments[i].size);
ass_add_font(ass, (char*)"",
(char*)attachments[i].data, attachments[i].size);
ass_render = ass_renderer_init(ass);
ass_set_frame_size(ass_render, media.width, media.height);
@@ -903,7 +920,7 @@ static bool init_media_info(void)
ass_set_fonts(ass_render, NULL, NULL, 1, NULL, 1);
ass_set_hinting(ass_render, ASS_HINTING_LIGHT);
for (i = 0; i < subtitle_streams_num; i++)
for (i = 0; i < (unsigned)subtitle_streams_num; i++)
{
ass_track[i] = ass_new_track(ass);
ass_process_codec_private(ass_track[i], (char*)ass_extra_data[i],
@@ -916,7 +933,8 @@ static bool init_media_info(void)
}
static void set_colorspace(struct SwsContext *sws,
unsigned width, unsigned height, enum AVColorSpace default_color, int in_range)
unsigned width, unsigned height,
enum AVColorSpace default_color, int in_range)
{
const int *coeffs = NULL;
@@ -951,7 +969,8 @@ static void set_colorspace(struct SwsContext *sws,
}
}
static bool decode_video(AVPacket *pkt, AVFrame *frame, AVFrame *conv, struct SwsContext *sws)
static bool decode_video(AVPacket *pkt, AVFrame *frame,
AVFrame *conv, struct SwsContext *sws)
{
int got_ptr = 0;
int ret = avcodec_decode_video2(vctx, frame, &got_ptr, pkt);
@@ -971,7 +990,8 @@ static bool decode_video(AVPacket *pkt, AVFrame *frame, AVFrame *conv, struct Sw
return false;
}
static int16_t *decode_audio(AVCodecContext *ctx, AVPacket *pkt, AVFrame *frame, int16_t *buffer, size_t *buffer_cap,
static int16_t *decode_audio(AVCodecContext *ctx, AVPacket *pkt,
AVFrame *frame, int16_t *buffer, size_t *buffer_cap,
SwrContext *swr)
{
AVPacket pkt_tmp = *pkt;
@@ -1020,7 +1040,9 @@ static int16_t *decode_audio(AVCodecContext *ctx, AVPacket *pkt, AVFrame *frame,
}
}
decode_last_audio_time = pts * av_q2d(fctx->streams[audio_streams[audio_streams_ptr]]->time_base);
decode_last_audio_time = pts * av_q2d(
fctx->streams[audio_streams[audio_streams_ptr]]->time_base);
if (!decode_thread_dead)
fifo_write(audio_decode_fifo, buffer, required_buffer);
@@ -1101,7 +1123,8 @@ static void render_ass_img(AVFrame *conv_frame, ASS_Image *img)
dst_g = (g * src_alpha + dst_g * dst_alpha) >> 8;
dst_b = (b * src_alpha + dst_b * dst_alpha) >> 8;
dst[x] = (0xffu << 24) | (dst_r << 16) | (dst_g << 8) | (dst_b << 0);
dst[x] = (0xffu << 24) | (dst_r << 16) |
(dst_g << 8) | (dst_b << 0);
}
}
}
@@ -1229,7 +1252,7 @@ static void decode_thread(void *data)
decoded_size = frame_size + sizeof(pts);
slock_lock(fifo_lock);
while (!decode_thread_dead
while (!decode_thread_dead && (video_decode_fifo != NULL)
&& fifo_write_avail(video_decode_fifo) < decoded_size)
{
if (!main_sleeping)
@@ -1285,7 +1308,8 @@ static void decode_thread(void *data)
for (i = 0; i < sub.num_rects; i++)
{
if (sub.rects[i]->ass)
ass_process_data(ass_track_active, sub.rects[i]->ass, strlen(sub.rects[i]->ass));
ass_process_data(ass_track_active,
sub.rects[i]->ass, strlen(sub.rects[i]->ass));
}
#endif
@@ -1406,14 +1430,16 @@ static void context_reset(void)
#if !defined(HAVE_OPENGLES)
glGenBuffers(1, &frames[i].pbo);
glBindBuffer(GL_PIXEL_UNPACK_BUFFER, frames[i].pbo);
glBufferData(GL_PIXEL_UNPACK_BUFFER, media.width * media.height * sizeof(uint32_t), NULL, GL_STREAM_DRAW);
glBufferData(GL_PIXEL_UNPACK_BUFFER, media.width
* media.height * sizeof(uint32_t), NULL, GL_STREAM_DRAW);
glBindBuffer(GL_PIXEL_UNPACK_BUFFER, 0);
#endif
}
glGenBuffers(1, &vbo);
glBindBuffer(GL_ARRAY_BUFFER, vbo);
glBufferData(GL_ARRAY_BUFFER, sizeof(vertex_data), vertex_data, GL_STATIC_DRAW);
glBufferData(GL_ARRAY_BUFFER,
sizeof(vertex_data), vertex_data, GL_STATIC_DRAW);
glBindBuffer(GL_ARRAY_BUFFER, 0);
glBindTexture(GL_TEXTURE_2D, 0);
@@ -1569,7 +1595,8 @@ bool CORE_PREFIX(retro_load_game)(const struct retro_game_info *info)
if (video_stream >= 0 || is_glfft)
{
video_decode_fifo = fifo_new(media.width * media.height * sizeof(uint32_t) * 32);
video_decode_fifo = fifo_new(media.width
* media.height * sizeof(uint32_t) * 32);
#ifdef HAVE_OPENGL
use_gl = true;
+735
View File
@@ -0,0 +1,735 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <glsym/glsym.h>
#include <libretro.h>
#include <retro_miscellaneous.h>
#include <filters.h>
#include <math/complex.h>
#define GLM_SWIZZLE
#define GLM_FORCE_RADIANS
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
using namespace glm;
#define GL_DEBUG 0
#if GL_DEBUG
#define GL_CHECK_ERROR() do { \
if (glGetError() != GL_NO_ERROR) \
{ \
log_cb(RETRO_LOG_ERROR, "GL error at line: %d\n", __LINE__); \
abort(); \
} \
} while(0)
#else
#define GL_CHECK_ERROR()
#endif
#ifndef M_HALF_PI
#define M_HALF_PI 1.57079632679489661923132169163975144
#endif
extern retro_log_printf_t log_cb;
struct target
{
GLuint tex;
GLuint fbo;
};
struct Pass
{
struct target target;
GLuint parameter_tex;
};
typedef struct GLFFT
{
GLuint ms_rb_color;
GLuint ms_rb_ds;
GLuint ms_fbo;
Pass *passes;
unsigned passes_size;
GLuint input_tex;
GLuint window_tex;
GLuint prog_real;
GLuint prog_complex;
GLuint prog_resolve;
GLuint prog_blur;
GLuint quad;
GLuint vao;
unsigned output_ptr;
struct target output, resolve, blur;
struct Block
{
GLuint prog;
GLuint vao;
GLuint vbo;
GLuint ibo;
unsigned elems;
} block;
GLuint pbo;
GLshort *sliding;
unsigned sliding_size;
unsigned steps;
unsigned size;
unsigned block_size;
unsigned depth;
} glfft_t;
#include "gl_shaders/fft_heightmap.glsl.vert.h"
#include "gl_shaders/fft_heightmap.glsl.frag.h"
#include "gl_shaders/fft_vertex_program.glsl.vert.h"
#include "gl_shaders/fft_fragment_program_resolve.glsl.frag.h"
#include "gl_shaders/fft_fragment_program_real.glsl.frag.h"
#include "gl_shaders/fft_fragment_program_complex.glsl.frag.h"
#include "gl_shaders/fft_fragment_program_blur.glsl.frag.h"
static GLuint fft_compile_shader(glfft_t *fft, GLenum type, const char *source)
{
GLint status = 0;
GLuint shader = glCreateShader(type);
glShaderSource(shader, 1, (const GLchar**)&source, NULL);
glCompileShader(shader);
glGetShaderiv(shader, GL_COMPILE_STATUS, &status);
if (!status)
{
char log_info[8 * 1024];
GLsizei log_len;
log_cb(RETRO_LOG_ERROR, "Failed to compile.\n");
glGetShaderInfoLog(shader, sizeof(log_info), &log_len, log_info);
log_cb(RETRO_LOG_ERROR, "ERROR: %s\n", log_info);
return 0;
}
return shader;
}
static GLuint fft_compile_program(glfft_t *fft,
const char *vertex_source, const char *fragment_source)
{
GLint status = 0;
GLuint prog = glCreateProgram();
GLuint vert = fft_compile_shader(fft, GL_VERTEX_SHADER, vertex_source);
GLuint frag = fft_compile_shader(fft, GL_FRAGMENT_SHADER, fragment_source);
glAttachShader(prog, vert);
glAttachShader(prog, frag);
glLinkProgram(prog);
glGetProgramiv(prog, GL_LINK_STATUS, &status);
if (!status)
{
char log_info[8 * 1024];
GLsizei log_len;
log_cb(RETRO_LOG_ERROR, "Failed to link.\n");
glGetProgramInfoLog(prog, sizeof(log_info), &log_len, log_info);
log_cb(RETRO_LOG_ERROR, "ERROR: %s\n", log_info);
}
glDeleteShader(vert);
glDeleteShader(frag);
return prog;
}
static void fft_render(glfft_t *fft, GLuint backbuffer, unsigned width, unsigned height)
{
mat4 mvp;
/* Render scene. */
glBindFramebuffer(GL_FRAMEBUFFER, fft->ms_fbo ? fft->ms_fbo : backbuffer);
glViewport(0, 0, width, height);
glClearColor(0.1f, 0.15f, 0.1f, 1.0f);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
vec3 eye(0, 80, -60);
mvp = perspective((float)M_HALF_PI, (float)width / height, 1.0f, 500.0f) *
lookAt(eye, eye + vec3(0.0f, 0.0f, 1.0f), vec3(0.0f, 1.0f, 0.0f));
glUseProgram(fft->block.prog);
glUniformMatrix4fv(glGetUniformLocation(fft->block.prog, "uMVP"),
1, GL_FALSE, value_ptr(mvp));
glUniform2i(glGetUniformLocation(fft->block.prog, "uOffset"),
(-int(fft->block_size) + 1) / 2, fft->output_ptr);
glUniform4f(glGetUniformLocation(fft->block.prog, "uHeightmapParams"),
-(fft->block_size - 1.0f) / 2.0f, 0.0f, 3.0f, 2.0f);
glUniform1f(glGetUniformLocation(fft->block.prog, "uAngleScale"),
M_PI / ((fft->block_size - 1) / 2));
glBindVertexArray(fft->block.vao);
glBindTexture(GL_TEXTURE_2D, fft->blur.tex);
glDrawElements(GL_TRIANGLE_STRIP, fft->block.elems, GL_UNSIGNED_INT, NULL);
glBindVertexArray(0);
glUseProgram(0);
if (fft->ms_fbo)
{
glBindFramebuffer(GL_READ_FRAMEBUFFER, fft->ms_fbo);
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, backbuffer);
glBlitFramebuffer(0, 0, width, height, 0, 0, width, height,
GL_COLOR_BUFFER_BIT, GL_NEAREST);
static const GLenum attachments[] = { GL_COLOR_ATTACHMENT0, GL_DEPTH_STENCIL_ATTACHMENT };
glBindFramebuffer(GL_FRAMEBUFFER, fft->ms_fbo);
glInvalidateFramebuffer(GL_FRAMEBUFFER, 2, attachments);
GL_CHECK_ERROR();
}
glBindFramebuffer(GL_FRAMEBUFFER, 0);
GL_CHECK_ERROR();
}
static void fft_step(glfft_t *fft,
const GLshort *audio_buffer, unsigned frames)
{
unsigned i;
GLshort *buffer = NULL;
GLshort *slide = (GLshort*)&fft->sliding[0];
glEnable(GL_DEPTH_TEST);
glEnable(GL_CULL_FACE);
glBindVertexArray(fft->vao);
glActiveTexture(GL_TEXTURE2);
glBindTexture(GL_TEXTURE_2D, fft->window_tex);
glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_2D, fft->input_tex);
glUseProgram(fft->prog_real);
memmove(slide, slide + frames * 2,
(fft->sliding_size - 2 * frames) * sizeof(GLshort));
memcpy(slide + fft->sliding_size - frames * 2, audio_buffer,
2 * frames * sizeof(GLshort));
/* Upload audio data to GPU. */
glBindBuffer(GL_PIXEL_UNPACK_BUFFER, fft->pbo);
buffer = (GLshort*)(glMapBufferRange(GL_PIXEL_UNPACK_BUFFER, 0,
2 * fft->size * sizeof(GLshort),
GL_MAP_WRITE_BIT | GL_MAP_INVALIDATE_BUFFER_BIT));
if (buffer)
{
memcpy(buffer, slide, fft->sliding_size * sizeof(GLshort));
glUnmapBuffer(GL_PIXEL_UNPACK_BUFFER);
}
glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, fft->size, 1,
GL_RG_INTEGER, GL_SHORT, NULL);
glBindBuffer(GL_PIXEL_UNPACK_BUFFER, 0);
/* Perform FFT of new block. */
glViewport(0, 0, fft->size, 1);
for (i = 0; i < fft->steps; i++)
{
if (i == fft->steps - 1)
{
glBindFramebuffer(GL_FRAMEBUFFER, fft->output.fbo);
glUniform1i(glGetUniformLocation(i == 0
? fft->prog_real : fft->prog_complex, "uViewportOffset"),
fft->output_ptr);
glViewport(0, fft->output_ptr, fft->size, 1);
}
else
{
glUniform1i(glGetUniformLocation(i == 0
? fft->prog_real : fft->prog_complex, "uViewportOffset"), 0);
glBindFramebuffer(GL_FRAMEBUFFER, fft->passes[i].target.fbo);
glClear(GL_COLOR_BUFFER_BIT);
}
glActiveTexture(GL_TEXTURE1);
glBindTexture(GL_TEXTURE_2D, fft->passes[i].parameter_tex);
glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_2D, fft->passes[i].target.tex);
if (i == 0)
glUseProgram(fft->prog_complex);
}
glActiveTexture(GL_TEXTURE0);
/* Resolve new chunk to heightmap. */
glViewport(0, fft->output_ptr, fft->size, 1);
glUseProgram(fft->prog_resolve);
glBindFramebuffer(GL_FRAMEBUFFER, fft->resolve.fbo);
const GLfloat resolve_offset[] = { 0.0f, float(fft->output_ptr) / fft->depth,
1.0f, 1.0f / fft->depth };
glUniform4fv(glGetUniformLocation(fft->prog_resolve, "uOffsetScale"),
1, resolve_offset);
glBindTexture(GL_TEXTURE_2D, fft->output.tex);
glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
/* Re-blur damaged regions of heightmap. */
glUseProgram(fft->prog_blur);
glBindTexture(GL_TEXTURE_2D, fft->resolve.tex);
glBindFramebuffer(GL_FRAMEBUFFER, fft->blur.fbo);
glUniform4fv(glGetUniformLocation(fft->prog_blur, "uOffsetScale"),
1, resolve_offset);
glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
/* Mipmap the heightmap. */
glBindTexture(GL_TEXTURE_2D, fft->blur.tex);
glGenerateMipmap(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, 0);
fft->output_ptr++;
fft->output_ptr &= fft->depth - 1;
glBindVertexArray(0);
glUseProgram(0);
GL_CHECK_ERROR();
}
static inline unsigned log2i(unsigned x)
{
if (x==0) return 0; // shouldn't happen
unsigned res;
for (res = 0; x; x >>= 1)
res++;
return res - 1;
}
static inline unsigned bitinverse(unsigned x, unsigned size)
{
unsigned i;
unsigned size_log2 = log2i(size);
unsigned ret = 0;
for (i = 0; i < size_log2; i++)
ret |= ((x >> i) & 0x1) << (size_log2 - 1 - i);
return ret;
}
static fft_complex_t exp_imag(float phase)
{
fft_complex_t out = { cosf(phase), sinf(phase) };
return out;
}
void fft_build_params(glfft_t *fft, GLuint *buffer,
unsigned step, unsigned size)
{
unsigned i, j;
unsigned step_size = 1 << step;
for (i = 0; i < size; i += step_size << 1)
{
for (j = i; j < i + step_size; j++)
{
int s = j - i;
float phase = -1.0f * (float)s / step_size;
unsigned a = j;
unsigned b = j + step_size;
fft_complex_t twiddle = exp_imag(M_PI * phase);
unsigned read_a = (step == 0) ? bitinverse(a, size) : a;
unsigned read_b = (step == 0) ? bitinverse(b, size) : b;
vec2 tmp = vec2(twiddle.real, twiddle.imag);
buffer[2 * a + 0] = (read_a << 16) | read_b;
buffer[2 * a + 1] = packHalf2x16(tmp);
buffer[2 * b + 0] = (read_a << 16) | read_b;
buffer[2 * b + 1] = packHalf2x16(-tmp);
}
}
}
static void fft_init_quad_vao(glfft_t *fft)
{
static const GLbyte quad_buffer[] = {
-1, -1, 1, -1, -1, 1, 1, 1,
0, 0, 1, 0, 0, 1, 1, 1,
};
glGenBuffers(1, &fft->quad);
glBindBuffer(GL_ARRAY_BUFFER, fft->quad);
glBufferData(GL_ARRAY_BUFFER,
sizeof(quad_buffer), quad_buffer, GL_STATIC_DRAW);
glBindBuffer(GL_ARRAY_BUFFER, 0);
glGenVertexArrays(1, &fft->vao);
glBindVertexArray(fft->vao);
glBindBuffer(GL_ARRAY_BUFFER, fft->quad);
glEnableVertexAttribArray(0);
glEnableVertexAttribArray(1);
glVertexAttribPointer(0, 2, GL_BYTE, GL_FALSE, 0, 0);
glVertexAttribPointer(1, 2, GL_BYTE, GL_FALSE, 0,
reinterpret_cast<const GLvoid*>(uintptr_t(8)));
glBindVertexArray(0);
glBindBuffer(GL_ARRAY_BUFFER, 0);
}
static void fft_init_texture(glfft_t *fft, GLuint *tex, GLenum format,
unsigned width, unsigned height, unsigned levels, GLenum mag, GLenum min)
{
glGenTextures(1, tex);
glBindTexture(GL_TEXTURE_2D, *tex);
glTexStorage2D(GL_TEXTURE_2D, levels, format, width, height);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, mag);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, min);
glBindTexture(GL_TEXTURE_2D, 0);
}
static void fft_init_target(glfft_t *fft, struct target *target, GLenum format,
unsigned width, unsigned height, unsigned levels, GLenum mag, GLenum min)
{
fft_init_texture(fft, &target->tex, format, width, height, levels, mag, min);
glGenFramebuffers(1, &target->fbo);
glBindFramebuffer(GL_FRAMEBUFFER, target->fbo);
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D,
target->tex, 0);
if (format == GL_RGBA8)
{
glClearColor(0, 0, 0, 0);
glClear(GL_COLOR_BUFFER_BIT);
}
else if (format == GL_RG16I)
{
static const GLint v[] = { 0, 0, 0, 0 };
glClearBufferiv(GL_COLOR, 0, v);
}
else
{
static const GLuint v[] = { 0, 0, 0, 0 };
glClearBufferuiv(GL_COLOR, 0, v);
}
glBindFramebuffer(GL_FRAMEBUFFER, 0);
}
#define KAISER_BETA 12.0
static void fft_init(glfft_t *fft)
{
unsigned i;
double window_mod;
GLushort *window;
static const GLfloat unity[] = { 0.0f, 0.0f, 1.0f, 1.0f };
fft->prog_real = fft_compile_program(fft, fft_vertex_program, fft_fragment_program_real);
fft->prog_complex = fft_compile_program(fft, fft_vertex_program, fft_fragment_program_complex);
fft->prog_resolve = fft_compile_program(fft, fft_vertex_program, fft_fragment_program_resolve);
fft->prog_blur = fft_compile_program(fft, fft_vertex_program, fft_fragment_program_blur);
GL_CHECK_ERROR();
glUseProgram(fft->prog_real);
glUniform1i(glGetUniformLocation(fft->prog_real, "sTexture"), 0);
glUniform1i(glGetUniformLocation(fft->prog_real, "sParameterTexture"), 1);
glUniform1i(glGetUniformLocation(fft->prog_real, "sWindow"), 2);
glUniform4fv(glGetUniformLocation(fft->prog_real, "uOffsetScale"), 1, unity);
glUseProgram(fft->prog_complex);
glUniform1i(glGetUniformLocation(fft->prog_complex, "sTexture"), 0);
glUniform1i(glGetUniformLocation(fft->prog_complex, "sParameterTexture"), 1);
glUniform4fv(glGetUniformLocation(fft->prog_complex, "uOffsetScale"), 1, unity);
glUseProgram(fft->prog_resolve);
glUniform1i(glGetUniformLocation(fft->prog_resolve, "sFFT"), 0);
glUniform4fv(glGetUniformLocation(fft->prog_resolve, "uOffsetScale"), 1, unity);
glUseProgram(fft->prog_blur);
glUniform1i(glGetUniformLocation(fft->prog_blur, "sHeight"), 0);
glUniform4fv(glGetUniformLocation(fft->prog_blur, "uOffsetScale"), 1, unity);
GL_CHECK_ERROR();
fft_init_texture(fft, &fft->window_tex, GL_R16UI,
fft->size, 1, 1, GL_NEAREST, GL_NEAREST);
GL_CHECK_ERROR();
window = (GLushort*)calloc(fft->size, sizeof(GLushort));
window_mod = 1.0 / kaiser_window_function(0.0, KAISER_BETA);
for (i = 0; i < fft->size; i++)
{
double phase = (double)(i - int(fft->size) / 2) / (int(fft->size) / 2);
double w = kaiser_window_function(phase, KAISER_BETA);
window[i] = round(0xffff * w * window_mod);
}
glBindTexture(GL_TEXTURE_2D, fft->window_tex);
glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0,
fft->size, 1, GL_RED_INTEGER, GL_UNSIGNED_SHORT, &window[0]);
glBindTexture(GL_TEXTURE_2D, 0);
GL_CHECK_ERROR();
fft_init_texture(fft, &fft->input_tex, GL_RG16I,
fft->size, 1, 1, GL_NEAREST, GL_NEAREST);
fft_init_target(fft, &fft->output, GL_RG32UI,
fft->size, fft->depth, 1, GL_NEAREST, GL_NEAREST);
fft_init_target(fft, &fft->resolve, GL_RGBA8,
fft->size, fft->depth, 1, GL_NEAREST, GL_NEAREST);
fft_init_target(fft, &fft->blur, GL_RGBA8,
fft->size, fft->depth,
log2i(MAX(fft->size, fft->depth)) + 1,
GL_NEAREST, GL_LINEAR_MIPMAP_LINEAR);
GL_CHECK_ERROR();
for (i = 0; i < fft->steps; i++)
{
GLuint *param_buffer = NULL;
fft_init_target(fft, &fft->passes[i].target,
GL_RG32UI, fft->size, 1, 1, GL_NEAREST, GL_NEAREST);
fft_init_texture(fft, &fft->passes[i].parameter_tex,
GL_RG32UI, fft->size, 1, 1, GL_NEAREST, GL_NEAREST);
param_buffer = (GLuint*)calloc(2 * fft->size, sizeof(GLuint));
fft_build_params(fft, &param_buffer[0], i, fft->size);
glBindTexture(GL_TEXTURE_2D, fft->passes[i].parameter_tex);
glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0,
fft->size, 1, GL_RG_INTEGER, GL_UNSIGNED_INT, &param_buffer[0]);
glBindTexture(GL_TEXTURE_2D, 0);
free(param_buffer);
}
GL_CHECK_ERROR();
glGenBuffers(1, &fft->pbo);
glBindBuffer(GL_PIXEL_UNPACK_BUFFER, fft->pbo);
glBufferData(GL_PIXEL_UNPACK_BUFFER,
fft->size * 2 * sizeof(GLshort), 0, GL_DYNAMIC_DRAW);
glBindBuffer(GL_PIXEL_UNPACK_BUFFER, 0);
free(window);
}
static void fft_init_block(glfft_t *fft)
{
unsigned x, y;
GLuint *bp;
GLushort *block_vertices;
GLuint *block_indices;
unsigned block_vertices_size;
unsigned block_indices_size;
int pos = 0;
fft->block.prog = fft_compile_program(fft,
fft_vertex_program_heightmap, fft_fragment_program_heightmap);
glUseProgram(fft->block.prog);
glUniform1i(glGetUniformLocation(fft->block.prog, "sHeight"), 0);
block_vertices_size = 2 * fft->block_size * fft->depth;
block_vertices = (GLushort*)calloc(block_vertices_size, sizeof(GLushort));
for (y = 0; y < fft->depth; y++)
{
for (x = 0; x < fft->block_size; x++)
{
block_vertices[2 * (y * fft->block_size + x) + 0] = x;
block_vertices[2 * (y * fft->block_size + x) + 1] = y;
}
}
glGenBuffers(1, &fft->block.vbo);
glBindBuffer(GL_ARRAY_BUFFER, fft->block.vbo);
glBufferData(GL_ARRAY_BUFFER,
block_vertices_size * sizeof(GLushort),
&block_vertices[0], GL_STATIC_DRAW);
fft->block.elems = (2 * fft->block_size - 1) * (fft->depth - 1) + 1;
block_indices_size = fft->block.elems;
block_indices = (GLuint*)calloc(block_indices_size, sizeof(GLuint));
bp = &block_indices[0];
for (y = 0; y < fft->depth - 1; y++)
{
int x;
int step_odd = -int(fft->block_size) + ((y & 1) ? -1 : 1);
int step_even = fft->block_size;
for (x = 0; x < 2 * int(fft->block_size) - 1; x++)
{
*bp++ = pos;
pos += (x & 1) ? step_odd : step_even;
}
}
*bp++ = pos;
glGenVertexArrays(1, &fft->block.vao);
glBindVertexArray(fft->block.vao);
glGenBuffers(1, &fft->block.ibo);
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, fft->block.ibo);
glBufferData(GL_ELEMENT_ARRAY_BUFFER,
block_indices_size * sizeof(GLuint),
&block_indices[0], GL_STATIC_DRAW);
glEnableVertexAttribArray(0);
glVertexAttribPointer(0, 2, GL_UNSIGNED_SHORT, GL_FALSE, 0, 0);
glBindVertexArray(0);
glBindBuffer(GL_ARRAY_BUFFER, 0);
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);
free(block_vertices);
free(block_indices);
}
static bool fft_context_reset(glfft_t *fft, unsigned fft_steps,
rglgen_proc_address_t proc, unsigned fft_depth)
{
rglgen_resolve_symbols(proc);
fft->steps = fft_steps;
fft->depth = fft_depth;
fft->size = 1 << fft_steps;
fft->block_size = fft->size / 4 + 1;
fft->passes_size = fft_steps;
fft->passes = (Pass*)calloc(fft->passes_size, sizeof(Pass));
if (!fft->passes)
return false;
fft->sliding_size = 2 * fft->size;
fft->sliding = (GLshort*)calloc(fft->sliding_size, sizeof(GLshort));
if (!fft->sliding)
return false;
GL_CHECK_ERROR();
fft_init_quad_vao(fft);
GL_CHECK_ERROR();
fft_init(fft);
GL_CHECK_ERROR();
fft_init_block(fft);
GL_CHECK_ERROR();
return true;
}
/* GLFFT requires either GLES3 or
* desktop GL with ES3_compat (supported by MESA on Linux) extension. */
extern "C" glfft_t *glfft_new(unsigned fft_steps, rglgen_proc_address_t proc)
{
#ifdef HAVE_OPENGLES3
const char *ver = (const char*)(glGetString(GL_VERSION));
if (ver)
{
unsigned major, minor;
if (sscanf(ver, "OpenGL ES %u.%u", &major, &minor) != 2 || major < 3)
return NULL;
}
else
return NULL;
#else
const char *exts = (const char*)(glGetString(GL_EXTENSIONS));
if (!exts || !strstr(exts, "ARB_ES3_compatibility"))
return NULL;
#endif
glfft_t *fft = (glfft_t*)calloc(1, sizeof(*fft));
if (!fft)
return NULL;
if (!fft_context_reset(fft, fft_steps, proc, 256))
goto error;
return fft;
error:
if (fft)
free(fft);
return NULL;
}
extern "C" void glfft_init_multisample(glfft_t *fft,
unsigned width, unsigned height, unsigned samples)
{
if (fft->ms_rb_color)
glDeleteRenderbuffers(1, &fft->ms_rb_color);
fft->ms_rb_color = 0;
if (fft->ms_rb_ds)
glDeleteRenderbuffers(1, &fft->ms_rb_ds);
fft->ms_rb_ds = 0;
if (fft->ms_fbo)
glDeleteFramebuffers(1, &fft->ms_fbo);
fft->ms_fbo = 0;
if (samples > 1)
{
glGenRenderbuffers(1, &fft->ms_rb_color);
glGenRenderbuffers(1, &fft->ms_rb_ds);
glGenFramebuffers (1, &fft->ms_fbo);
glBindRenderbuffer(GL_RENDERBUFFER, fft->ms_rb_color);
glRenderbufferStorageMultisample(GL_RENDERBUFFER, samples,
GL_RGBA8, width, height);
glBindRenderbuffer(GL_RENDERBUFFER, fft->ms_rb_ds);
glRenderbufferStorageMultisample(GL_RENDERBUFFER, samples,
GL_DEPTH24_STENCIL8, width, height);
glBindRenderbuffer(GL_RENDERBUFFER, 0);
glBindFramebuffer(GL_FRAMEBUFFER, fft->ms_fbo);
glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0,
GL_RENDERBUFFER, fft->ms_rb_color);
glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_DEPTH_STENCIL_ATTACHMENT,
GL_RENDERBUFFER, fft->ms_rb_ds);
if (glCheckFramebufferStatus(GL_FRAMEBUFFER) != GL_FRAMEBUFFER_COMPLETE)
glfft_init_multisample(fft, 0, 0, 0);
}
glBindFramebuffer(GL_FRAMEBUFFER, 0);
}
static void fft_context_destroy(glfft_t *fft)
{
glfft_init_multisample(fft, 0, 0, 0);
if (fft->passes)
free(fft->passes);
fft->passes = NULL;
if (fft->sliding)
free(fft->sliding);
fft->sliding = NULL;
}
extern "C" void glfft_free(glfft_t *fft)
{
if (!fft)
return;
fft_context_destroy(fft);
if (fft)
free(fft);
fft = NULL;
}
extern "C" void glfft_step_fft(glfft_t *fft,
const GLshort *buffer, unsigned frames)
{
fft_step(fft, buffer, frames);
}
extern "C" void glfft_render(glfft_t *fft, GLuint backbuffer,
unsigned width, unsigned height)
{
fft_render(fft, backbuffer, width, height);
}
+26
View File
@@ -0,0 +1,26 @@
#ifndef FFT_H__
#define FFT_H__
#include <glsym/glsym.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct glfft glfft_t;
glfft_t *glfft_new(unsigned fft_steps, rglgen_proc_address_t proc);
void glfft_free(glfft_t *fft);
void glfft_init_multisample(glfft_t *fft, unsigned width, unsigned height, unsigned samples);
void glfft_step_fft(glfft_t *fft, const GLshort *buffer, unsigned frames);
void glfft_render(glfft_t *fft, GLuint backbuffer, unsigned width, unsigned height);
#ifdef __cplusplus
}
#endif
#endif
@@ -0,0 +1,28 @@
#include "shaders_common.h"
static const char *fft_fragment_program_blur = GLSL_300(
precision mediump float;
precision highp int;
precision highp usampler2D;
precision highp isampler2D;
in vec2 vTex;
out vec4 FragColor;
uniform sampler2D sHeight;
void main() {
float k = 0.0;
float t;
vec4 res = vec4(0.0);
\n#define kernel(x, y) t = exp(-0.35 * float((x) * (x) + (y) * (y))); k += t; res += t * textureLodOffset(sHeight, vTex, 0.0, ivec2(x, y))\n
kernel(-1, -2);
kernel(-1, -1);
kernel(-1, 0);
kernel( 0, -2);
kernel( 0, -1);
kernel( 0, 0);
kernel( 1, -2);
kernel( 1, -1);
kernel( 1, 0);
FragColor = res / k;
}
);
@@ -0,0 +1,33 @@
#include "shaders_common.h"
static const char *fft_fragment_program_complex = GLSL_300(
precision mediump float;
precision highp int;
precision highp usampler2D;
precision highp isampler2D;
in vec2 vTex;
uniform usampler2D sTexture;
uniform usampler2D sParameterTexture;
uniform int uViewportOffset;
out uvec2 FragColor;
vec2 compMul(vec2 a, vec2 b) { return vec2(a.x * b.x - a.y * b.y, a.x * b.y + a.y * b.x); }
void main() {
uvec2 params = texture(sParameterTexture, vec2(vTex.x, 0.5)).rg;
uvec2 coord = uvec2((params.x >> 16u) & 0xffffu, params.x & 0xffffu);
int ycoord = int(gl_FragCoord.y) - uViewportOffset;
vec2 twiddle = unpackHalf2x16(params.y);
uvec2 x = texelFetch(sTexture, ivec2(int(coord.x), ycoord), 0).rg;
uvec2 y = texelFetch(sTexture, ivec2(int(coord.y), ycoord), 0).rg;
vec4 a = vec4(unpackHalf2x16(x.x), unpackHalf2x16(x.y));
vec4 b = vec4(unpackHalf2x16(y.x), unpackHalf2x16(y.y));
b.xy = compMul(b.xy, twiddle);
b.zw = compMul(b.zw, twiddle);
vec4 res = a + b;
FragColor = uvec2(packHalf2x16(res.xy), packHalf2x16(res.zw));
}
);
@@ -0,0 +1,40 @@
#include "shaders_common.h"
static const char *fft_fragment_program_real = GLSL_300(
precision mediump float;
precision highp int;
precision highp usampler2D;
precision highp isampler2D;
in vec2 vTex;
uniform isampler2D sTexture;
uniform usampler2D sParameterTexture;
uniform usampler2D sWindow;
uniform int uViewportOffset;
out uvec2 FragColor;
vec2 compMul(vec2 a, vec2 b) { return vec2(a.x * b.x - a.y * b.y, a.x * b.y + a.y * b.x); }
void main() {
uvec2 params = texture(sParameterTexture, vec2(vTex.x, 0.5)).rg;
uvec2 coord = uvec2((params.x >> 16u) & 0xffffu, params.x & 0xffffu);
int ycoord = int(gl_FragCoord.y) - uViewportOffset;
vec2 twiddle = unpackHalf2x16(params.y);
float window_a = float(texelFetch(sWindow, ivec2(coord.x, 0), 0).r) / float(0x10000);
float window_b = float(texelFetch(sWindow, ivec2(coord.y, 0), 0).r) / float(0x10000);
vec2 a = window_a * vec2(texelFetch(sTexture, ivec2(int(coord.x), ycoord), 0).rg) / vec2(0x8000);
vec2 a_l = vec2(a.x, 0.0);
vec2 a_r = vec2(a.y, 0.0);
vec2 b = window_b * vec2(texelFetch(sTexture, ivec2(int(coord.y), ycoord), 0).rg) / vec2(0x8000);
vec2 b_l = vec2(b.x, 0.0);
vec2 b_r = vec2(b.y, 0.0);
b_l = compMul(b_l, twiddle);
b_r = compMul(b_r, twiddle);
vec2 res_l = a_l + b_l;
vec2 res_r = a_r + b_r;
FragColor = uvec2(packHalf2x16(res_l), packHalf2x16(res_r));
}
);
@@ -0,0 +1,30 @@
#include "shaders_common.h"
static const char *fft_fragment_program_resolve = GLSL_300(
precision mediump float;
precision highp int;
precision highp usampler2D;
precision highp isampler2D;
in vec2 vTex;
out vec4 FragColor;
uniform usampler2D sFFT;
vec4 get_heights(highp uvec2 h) {
vec2 l = unpackHalf2x16(h.x);
vec2 r = unpackHalf2x16(h.y);
vec2 channels[4] = vec2[4](
l, 0.5 * (l + r), r, 0.5 * (l - r));
vec4 amps;
for (int i = 0; i < 4; i++)
amps[i] = dot(channels[i], channels[i]);
return 9.0 * log(amps + 0.0001) - 22.0;
}
void main() {
uvec2 h = textureLod(sFFT, vTex, 0.0).rg;
vec4 height = get_heights(h);
height = (height + 40.0) / 80.0;
FragColor = height;
}
);
@@ -0,0 +1,18 @@
#include "shaders_common.h"
static const char *fft_fragment_program_heightmap = GLSL_300(
precision mediump float;
out vec4 FragColor;
in vec3 vWorldPos;
in vec3 vHeight;
vec3 colormap(vec3 height) {
return 1.0 / (1.0 + exp(-0.08 * height));
}
void main() {
vec3 color = mix(vec3(1.0, 0.7, 0.7) * colormap(vHeight), vec3(0.1, 0.15, 0.1), clamp(vWorldPos.z / 400.0, 0.0, 1.0));
color = mix(color, vec3(0.1, 0.15, 0.1), clamp(1.0 - vWorldPos.z / 2.0, 0.0, 1.0));
FragColor = vec4(color, 1.0);
}
);
@@ -0,0 +1,43 @@
#include "shaders_common.h"
static const char *fft_vertex_program_heightmap = GLSL_300(
layout(location = 0) in vec2 aVertex;
uniform sampler2D sHeight;
uniform mat4 uMVP;
uniform ivec2 uOffset;
uniform vec4 uHeightmapParams;
uniform float uAngleScale;
out vec3 vWorldPos;
out vec3 vHeight;
void main() {
vec2 tex_coord = vec2(aVertex.x + float(uOffset.x) + 0.5, -aVertex.y + float(uOffset.y) + 0.5) / vec2(textureSize(sHeight, 0));
vec3 world_pos = vec3(aVertex.x, 0.0, aVertex.y);
world_pos.xz += uHeightmapParams.xy;
float angle = world_pos.x * uAngleScale;
world_pos.xz *= uHeightmapParams.zw;
float lod = log2(world_pos.z + 1.0) - 6.0;
vec4 heights = textureLod(sHeight, tex_coord, lod);
float cangle = cos(angle);
float sangle = sin(angle);
int c = int(-sign(world_pos.x) + 1.0);
float height = mix(heights[c], heights[1], abs(angle) / 3.141592653);
height = height * 80.0 - 40.0;
vec3 up = vec3(-sangle, cangle, 0.0);
float base_y = 80.0 - 80.0 * cangle;
float base_x = 80.0 * sangle;
world_pos.xy = vec2(base_x, base_y);
world_pos += up * height;
vWorldPos = world_pos;
vHeight = vec3(height, heights.yw * 80.0 - 40.0);
gl_Position = uMVP * vec4(world_pos, 1.0);
}
);
@@ -0,0 +1,13 @@
#include "shaders_common.h"
static const char *fft_vertex_program = GLSL_300(
precision mediump float;
layout(location = 0) in vec2 aVertex;
layout(location = 1) in vec2 aTexCoord;
uniform vec4 uOffsetScale;
out vec2 vTex;
void main() {
vTex = uOffsetScale.xy + aTexCoord * uOffsetScale.zw;
gl_Position = vec4(aVertex, 0.0, 1.0);
}
);
@@ -0,0 +1,14 @@
#ifndef _SHADERS_COMMON
#define _SHADERS_COMMON
#if defined(HAVE_OPENGLES)
#define CG(src) "" #src
#define GLSL(src) "precision mediump float;\n" #src
#define GLSL_300(src) "#version 300 es\n" #src
#else
#define CG(src) "" #src
#define GLSL(src) "" #src
#define GLSL_300(src) "#version 300 es\n" #src
#endif
#endif
-1
View File
@@ -1 +0,0 @@
#include "../../libretro.h"
Loaded 100 of 1071 files, more files were not shown because too many files have changed in this diff. Show more