Commit Graph

2264 Commits

Author SHA1 Message Date
twinaphex 67c010394d Remove netplay_discovery.h - hopefully fixes other build issues 2021-11-05 19:12:55 +01:00
twinaphex 121174c9af (Discord) Remove stray discord_is_inited global - put it in
discord_state_t instead
2021-11-05 13:45:00 +01:00
twinaphex d3fd72ba63 Fix header include - should have been relative 2021-11-05 00:09:45 +01:00
Jamiras 088aa7dcb9
add github action for c89 build (#13186)
* add retroarch.yml

* fix c89 errors

* attempt to add dependencies

* update comments
2021-11-05 00:05:13 +01:00
twinaphex aaad65538c Move rarch_patch_blocked to runloop_state, and get rid of
RARCH_CTL_IS_PATCH_BLOCKED
2021-10-30 11:15:45 +02:00
twinaphex 5477e34815 Move stray globals subsystem_data and subsystem_current_count to
runloop_state
2021-10-29 17:41:31 +02:00
jdgleaver c67c7c944d
Initialise 'Explore' menu on a background thread (#13162) 2021-10-27 17:51:22 +02:00
twinaphex 9b4636ff62 Fixes --disable-menu 2021-10-15 14:32:07 +02:00
twinaphex 40aa7dad10 Move code to menu_driver.c and rename retroarch_ function to runloop_
function
2021-10-15 02:14:43 +02:00
jdgleaver 40925baacd Enable SRAM for contentless cores 2021-10-14 13:59:23 +01:00
Autechre e7f182811a
Split up audio code into new file audio/audio_driver.c (#13097)
* Split up audio code into new file audio/audio_driver.c

* Fix build issues #1

* Small cleanup

* Fix typo
2021-10-11 18:01:37 +02:00
twinaphex 6a4a5ae27c Put scaler_ctx back in screenshot_state 2021-10-02 04:19:46 +02:00
twinaphex 49fbed2423 Get rid of input_mouse_grabbed - move retroarch types to
retroarch_types.h
2021-09-30 23:22:50 +02:00
twinaphex 5ba8843354 Move dispwidget_get_ptr over to gfx_widgets.c 2021-09-30 04:40:15 +02:00
twinaphex 0e9b2179af move scaler object out of screenshot_task_state 2021-09-30 02:19:16 +02:00
twinaphex e886e908d5 Create consistent naming conventions - use retroarch_ instead
of rarch_ for some functions for all functions coming from retroarch.h
2021-09-28 12:56:10 +02:00
Nathan Strong fb86ca6e33 Fix the snprintf warnings for everyone this time
== DETAILS
So, basically this back-and-forth is because we used fixed-size
data types (i.e. `uint32_t`) which maps to different primitive data
types on different platforms. So `uint32_t` might be a `long` on some
platforms (e.g. Wii U), while it's just a plain integer on others (PC).
And the format specifier works off primitive data type, not data type
size.

So, to resolve this, we:

- keep `%lx` as the format specifier
- cast the parameter to printf to unsigned long

This is better than the alternatives that could cause problems trying to
cast a long down to an int.
2021-09-25 15:08:34 -07:00
Nathan Strong 9b2d4236ad WIIU: Clean up a bunch of compiler warnings
== DETAILS
These changes fall into a few broad categories:

1. Explicitly undefine things we want to re-define due to conflicts with
   the version of devkitpro we're using
2. Clean up hex format specifiers to use `%lx` or `%lX` when working with
   long integers
3. Move variables inside the ifdef they're used in to squelch "unused variable"
   messages
4. Add parenthesis to make Wii U shader declarations stop complaining

And then there's a weird "misleading indent" warning that I fixed by just
rewriting a block of code to use a switch statement instead of if-then-else.

These changes work fine on Wii U, but we'll need to keep an eye on CI/CD to see
if other platform builds break.
2021-09-25 13:25:39 -07:00
twinaphex 83ce4259a0 Have only one getter for runloop_state 2021-09-21 19:08:26 +02:00
twinaphex f21641d898 Get rid of another 'getter' function 2021-09-21 18:30:56 +02:00
twinaphex 7c8c53fb2d Get rid of menu_driver_get_ptr - we are going to be using only one
getter for each component state instead of several getters
2021-09-21 07:14:27 +02:00
Michael Burgardt d8db234df0
Concatinate some previously truncated strings for easier translation (#12120) 2021-09-16 19:00:14 +02:00
jdgleaver 6da778b934 (Playlist Manager) Add 'Refresh Playlist' option 2021-09-09 16:18:26 +01:00
bulzipke 8018be5c9b
Fix ram states to file when core deinit (#12956)
* Fix ram states to file when core deinit

* Fix unterminated state_path
Call CMD_EVENT_RAM_STATE_TO_FILE when CMD_EVENT_UNLOAD_CORE too
2021-09-08 18:01:07 +02:00
bulzipke 8adc24ecbc
(3DS) Add bottom screen menu (#12470)
* (3DS) Add bottom screen menu
 -> User can save/load state on botom screen with thumbnail.
 -> Call a save_state_to_file() when RAM state has data to write a disk.
 -> If the bottom screen needs updating, swap the bottom framebuffers.

Add: SAVE/LODE STATE TO RAM
 -> This is useful for devices with slow I/O
 -> 3DS bottom save state use CMD_EVENT_SAVE_STATE_TO_RAM
 -> 3DS bottom load state use CMD_EVENT_LOAD_STATE when RAM state has no data
 -> 3DS bottom load state use CMD_EVENT_LOAD_STATE_FROM_RAM when RAM sate has data

* Rewrite path_get_state to retroarch_get_current_savestate_path

* Fix unterminated state_path
2021-09-03 18:14:03 +02:00
twinaphex d07e0da412 Improve HAVE_NETWORKING and HAVE_NETPLAYDISCOVERY ifdefs; remove
unused netplay lan scan rooms function
2021-08-12 16:44:07 +02:00
twinaphex 13a2d2419f (PSL1GHT) Fix function prototype for 'button' pad driver
(Task save) Fix warning in platform port
2021-08-09 20:25:27 +02:00
Jamiras 5ac432026a add helper function for accessing connection method 2021-07-27 21:02:14 -06:00
Jamiras c9ca0489ed allow concurrent POST requests to same URL 2021-07-23 22:04:42 -06:00
Ash Logan a35323ace9 (task_http.c) Use 100% as maximum, not minimum
With previous logic, any normal percentage would get MAX'd to 100% 
(max(70, 100) == 100). Correct math to use here is min
2021-07-18 14:47:25 +10:00
Mark W. Kidd d4fb27a7a9 implement natt fix from void() 2021-07-08 22:52:19 -04:00
Mark W. Kidd b17dd28ff2 consolidate and comment input_remapping.h 2021-07-06 16:13:43 -04:00
jdgleaver f7f007519c (Playlist) Optimise scanning of large rom sets 2021-06-29 14:50:19 +01:00
jdgleaver 55c855267e Add API extension for setting 'need_fullpath' based on content file extension and to request persistent frontend content data buffers 2021-06-01 15:28:39 +01:00
twinaphex 24389bbcd5 Small cleanups to task_content.c 2021-05-21 16:30:02 +02:00
twinaphex 2e50b57643 task_content_disc.c - header include cleanups 2021-05-21 14:10:44 +02:00
jdgleaver 334a43a7c5 Prevent unnecessary extraction (to disk) of compressed content files + task_content.c clean-ups 2021-05-20 17:08:51 +01:00
twinaphex 8291b18771 Small cleanup to cheevos content loading part 2021-05-19 16:05:42 +02:00
twinaphex 181824eb00 (Tasks/content) Split up CDROM code into tasks/task_content_disc.c 2021-05-19 15:53:38 +02:00
Autechre 84ab14cb83
Merge pull request #12281 from eadmaster/multi_patch
added multi-softpatching support + OSD messages for patches (#9947)
2021-04-30 16:00:43 +02:00
eadmaster 019130298a added multi-softpatching support + OSD messages for patches (#9947)
fixed Travis error
2021-04-30 14:12:47 +02:00
jdgleaver f4511f6fa4 (core_info) Performance optimisations + code clean-ups/refactors 2021-04-26 14:30:31 +01:00
twinaphex d07043fe26 Reduce size of local char variables 2021-04-11 19:28:59 +02:00
twinaphex 2f0f724813 Use more path_basename_nocompression where we don't have to deal with
archive files
2021-04-11 18:46:50 +02:00
twinaphex 544a17926b Use path_basename_nocompression where we are sure we are not
dealing with a filename with a compressed archive hash
2021-04-11 17:44:41 +02:00
twinaphex ed6dd6d6d1 Fix get_thumbnail_paths 2021-03-29 17:42:32 +02:00
twinaphex cc8160d044 task_pl_thumbnail_download.c - put char string of 8192 length
on heap for all platforms
2021-03-29 09:28:26 +02:00
Autechre ba7900a3fb
Merge pull request #12173 from crystalct/master
Some PSL1GHT fixes
2021-03-29 09:26:24 +02:00
CrystalCT b9ff6cb1d9 Some PSL1GHT fixes 2021-03-29 09:01:03 +02:00
twinaphex b5d4c5b041 Silence -Wsizeof-pointer-memaccess warnings pointed out here -
https://travis-ci.org/github/libretro/RetroArch/jobs/764003625
2021-03-22 23:43:11 +01:00
twinaphex 55ba377153 (task_database.c) Don't call path_contains_compressed_file multiple
times
2021-03-22 20:14:58 +01:00
twinaphex f22b077887 (task_database.c) Optimizations:
- strlen was being called on path for each loop iteration, when
path is not subject to change - do it once outside
- String copying was being performed even when the string would
equal a string not subject to change
2021-03-22 19:24:14 +01:00
twinaphex 81e768435b CXX_BUILD buildfix 2021-03-22 15:01:57 +01:00
twinaphex 6cc51fa5f5 task_load_handler - small cleanups 2021-03-17 10:40:47 +01:00
twinaphex 7e2113b405 (task_save.c) Allocate the string on heap instead of putting it on stack 2021-03-17 10:12:04 +01:00
Autechre be7dd98939
Merge pull request #12167 from crystalct/master
Add some PSL1GHT ifdefs
2021-03-17 09:53:57 +01:00
CrystalCT 9ac61f9cc5 Add some PSL1GHT ifdefs 2021-03-17 08:46:02 +01:00
Autechre e62aabea95
Merge pull request #12157 from Jamiras/task_http_cleanup
have http tasks clean up after themselves
2021-03-16 09:06:58 +01:00
Jamiras 501fe45a9f have http tasks clean up after themselves 2021-03-15 19:42:25 -06:00
Jamiras ba1d48fb6a ensure hardcore remains disabled through load process 2021-02-28 13:07:24 -07:00
Jamiras 1e39de800c
fix undo load state (#12062) 2021-02-21 22:50:27 +01:00
Jamiras 2280d126f3 address feedback 2021-02-18 07:44:52 -07:00
Jamiras 2d841715cb include achievement runtime state in save states 2021-02-17 19:44:39 -07:00
twinaphex 68027c606e Silence some warnings 2021-02-09 16:43:40 +01:00
twinaphex da17588f0c CXX_BUILD build fixes 2021-02-08 09:35:57 +01:00
sonninnos 90485b5586 Savestate logging cleanup 2021-02-03 13:29:32 +02:00
Jamiras 015576b2ba
improve error handling for achievement unlocks (#11916) 2021-01-21 04:07:48 +01:00
Autechre 47784c66f0
MSVC Buildfix - (#11913)
* Declare variables at the top of a function in C code
2021-01-21 02:59:14 +01:00
twinaphex 357b7d68f6 (libretro-common) Rename rhash to lrc_hash
(rcheevos) Rename rhash to rc_hash
2020-12-28 19:55:54 +01:00
twinaphex 870707dbe8 Remove obsolete __CELLOS_LV2__ references - use PSL1GHT instead 2020-12-19 15:32:26 +01:00
David Guillen Fandos 8b88f705b8 Fix minor issues and a memleak 2020-12-10 19:24:34 +01:00
David Guillen Fandos ed7b3aa415 Add a proper WiFi menu, with Enable/Disable & Disconnect options
This also allows WiFi passwords to be remembered. The underlying
tool (connman) allows to store passswords (that's why it auto connects
whenever you boot a Lakka device), so we expose this so that the user
does not have to re-input the pass when connecting to a saved wifi.

Option to forget a password to come in a future PR, for now a password
is automatically forgotten if the Wifi connect operation fails (we assume
it fails due to password).

Changes the WiFi API to enable these features of course!
2020-12-09 20:20:48 +01:00
twinaphex 9ee1e33e09 Only attempt to call dir_check_defaults once per runtime session
when calling the frontend environment get callback - we want to
look at the 'default' directories, and then if they don't yet exist,
auto-create them so we can store files in them.
2020-11-19 07:10:22 +01:00
twinaphex c8f92d2247 Revert "(UWP/Small stack size platforms) UWP is short on stack size, these"
This reverts commit 0a3306a7b4.
2020-11-18 16:48:31 +01:00
twinaphex 0a3306a7b4 (UWP/Small stack size platforms) UWP is short on stack size, these
big local char array variables were causing crashes - put them on
heap
2020-11-17 07:17:32 +01:00
jdgleaver 54ce950591 Fix database scans 2020-11-09 14:31:53 +00:00
twinaphex e58cb34970 Remove ifdef and make this the default for now - and add TODO/FIXME note 2020-11-08 18:31:12 +01:00
unknown be6d1841d5 fix segmentation fault on PS3 when scan directory 2020-11-08 16:06:00 +01:00
unknown 26559d635e fix segmentation faulf on PS3 when Load State 2020-11-07 01:42:58 +01:00
twinaphex 44b7234756 Move cheat_manager and state_manager to root folder 2020-10-15 05:29:20 +02:00
Tony Jansson 6918b4b5cb Savestate logging cleanup 2020-10-15 03:54:53 +03:00
twinaphex 81fc3a1361 Cleanups 2020-10-10 18:10:22 +02:00
twinaphex cb45f08db8 Cleanups 2020-10-10 18:02:02 +02:00
twinaphex e16dd186b7 Cleanups 2020-10-10 17:58:32 +02:00
twinaphex be47a72af5 Cleanups 2020-10-10 17:55:06 +02:00
twinaphex c744baeb89 Add ctype variants to stdstring and use it in RA 2020-09-27 22:15:32 +02:00
twinaphex 8ff4134a76 Cleanup 2020-09-20 00:17:11 +02:00
jdgleaver 8a5ebbf24d Add option to scale overlays automatically (with aspect ratio correction) 2020-09-17 17:23:07 +01:00
Justin Weiss fb9aa961b7 [3DS] Increase file buffer size and savestate chunk size 2020-09-09 18:29:47 -07:00
jdgleaver b8ea4fd54e Overlay configuration improvements 2020-09-08 13:37:51 +01:00
twinaphex 400df12c1e Start using error_enum 2020-09-03 04:10:37 +02:00
Autechre b7fff53d16
Merge pull request #11272 from jdgleaver/play-feature-delivery-switch
(Android/Play Store Builds) Add option to switch all installed cores to Play Store versions
2020-09-03 01:55:39 +02:00
twinaphex e09f1d65b5 Cleanups 2020-09-03 00:44:22 +02:00
twinaphex e2bd3d75bc Cleanup 2020-09-03 00:38:19 +02:00
jdgleaver bd80f02f11 (Android/Play Store Builds) Add option to switch all installed cores to Play Store versions 2020-09-02 17:13:03 +01:00
Autechre 6fe1f97fc8
Merge pull request #11255 from jdgleaver/play-feature-delivery
(Android/Play Store) Add frontend support for core installation via Play Feature Delivery
2020-08-29 04:31:20 +02:00
twinaphex fa63ada1d3 Cleanup 2020-08-29 02:52:55 +02:00
twinaphex c2565cf87f Cleanups 2020-08-29 02:42:13 +02:00
twinaphex cae5328294 (task_autodetect_blissbox) Cleanups 2020-08-29 02:37:05 +02:00
jdgleaver 4799d2d955 (Android/Play Store) Add frontend support for core installation via Play Feature Delivery 2020-08-28 16:30:54 +01:00
twinaphex 3f19af45cd Put back early return 2020-08-27 17:29:39 +02:00
twinaphex 8b1338dbb2 (task_autodetect.c) Cleanups 2020-08-27 16:36:34 +02:00
twinaphex 5e60556f97 Use config_get_entry instead of config_get_array to prevent
unnecessary string copying
2020-08-27 16:28:19 +02:00
Autechre df245d4917
Merge pull request #11239 from jdgleaver/overlay-gamepad-hide
Add option to hide overlays when a gamepad is connected (Note: Restricted functionality on Android)
2020-08-26 20:23:47 +02:00
twinaphex 143224e09a (task_database_cue) Don't use malloc 2020-08-26 19:46:13 +02:00
twinaphex fe5307c4ac Use string_split_noalloc instead of string_split 2020-08-26 12:54:51 +02:00
jdgleaver cc2e098dab Add option to hide overlays when a gamepad is connected (Note: Restricted functionality on Android) 2020-08-25 11:12:37 +01:00
twinaphex 27b7b3dcfe Cleanup 2020-08-24 14:35:25 +02:00
twinaphex cd6e1cf3fa (libretro-common) string_list - add string_list_initialize
and string_list_deinitialize - takes a pointer to initialize
and deinitialize a string list, but importantly does not
implicitly allocate and deallocate the string list pointer
itself. This way, string lists can be put on the stack instead
of always implicitly being put on heap - the struct itself is
small enough to fit on stack
2020-08-24 00:43:55 +02:00
Jamiras 2f69d2d4ed eliminate exposed variables for tracking hardcore 2020-08-22 12:18:12 -06:00
twinaphex 4ec216dc0b Get rid of file_path_str 2020-08-22 01:06:10 +02:00
Nargash b8990d601a Add configuration options to sort save files, save states, and screenshots into folders named after the content directory folder. 2020-08-20 19:29:00 -05:00
twinaphex 624a70f062 More strings being moved from heap to stack 2020-08-18 14:47:57 +02:00
twinaphex 216190b826 Clean up more string variables on heap - move to stack 2020-08-18 14:26:15 +02:00
twinaphex ad7db2e2b8 Move path variables off heap size; prevent potential memory
fragmentation
2020-08-18 12:44:14 +02:00
twinaphex fe28f17eeb Cleanup 2020-08-18 10:57:42 +02:00
twinaphex d29e0a9969 (Task content) Don't put string variables on heap 2020-08-18 10:56:54 +02:00
twinaphex a8646a2610 Reorder structs, alignment 2020-08-15 00:44:35 +02:00
twinaphex e399a2f78e reorder structs, alignment 2020-08-15 00:35:15 +02:00
twinaphex 87c0fb6323 Struct reordering 2020-08-14 18:58:09 +02:00
twinaphex 1aceac6edb Struct reorders 2020-08-14 18:51:50 +02:00
twinaphex 8a3ef513a3 Struct reordering 2020-08-14 18:43:11 +02:00
twinaphex b6228729b6 More struct alignment 2020-08-14 17:11:18 +02:00
jdgleaver e76f5a212a (core_updater_list) Replace static entries array with dynamic array via RBUF library 2020-08-14 12:33:49 +01:00
jdgleaver b19eb64329 (m3u_file) Replace static entries array with dynamic array via RBUF library 2020-08-13 17:25:45 +01:00
twinaphex d3b234f404 Buildfix 2020-08-11 09:03:59 +02:00
twinaphex ac083e69ba Cleanups 2020-08-11 06:46:45 +02:00
jdgleaver 535d73cf37 Ensure correct directory is used when saving autoconfig profiles 2020-08-03 13:10:00 +01:00
twinaphex 4ee45304b0 More warning fixes 2020-08-01 18:14:48 +02:00
twinaphex f162875583 (PSP scanning) Add more PSP serials 2020-07-29 15:41:05 +02:00
twinaphex 784e1187e1 (PSP scanning) Regression fix - should scan games with serial ULU again 2020-07-29 15:29:51 +02:00
francescotintori 9744fcb76a Adds base content directory support in playlists. If playlist base content directory does not match configuration parameter 'rgui_browser_directory', all entries paths are automatically fixed to match parameter 'rgui_browser_directory'.
Functionality is enabled if new parameter 'playlist_autofix_paths' is enabled.
2020-07-27 20:59:56 +02:00
twinaphex d72b118a2d Make char array big enough 2020-07-23 05:21:32 +02:00
jdgleaver 8e2901d23a Minor optimisations 2020-07-20 13:24:18 +01:00
jdgleaver 9b1edc5eee Input autoconfig fixes/improvements 2020-07-20 12:34:29 +01:00
twinaphex 6be4adffdf Silence warning with --disable-menu 2020-07-20 02:04:43 +02:00
twinaphex 36a76d1248 Take out my own implementation in favor of Ryunam's 2020-07-20 00:50:40 +02:00
Autechre 8861416b32
Merge pull request #11046 from Ryunam/screenshot-notification
Add options to control visibility, duration and flashing effect of Screenshot Notifications
2020-07-20 00:27:02 +02:00
Ryunam 5014f90e4d Add options to customize Screenshot notifications 2020-07-19 23:42:16 +02:00
twinaphex ccd9b8ead4 (Widgets) onscreen Notifications -> Add setting to enable/disable 'take
screenshot' widget individually
2020-07-19 23:26:14 +02:00
jdgleaver 75b3b5350c Add 'Notification Visibility' menu 2020-07-16 16:32:01 +01:00
twinaphex 324eb4f098 (UWP) Buildfix 2020-07-16 11:49:15 +02:00
jdgleaver 84a71ea133 Rewrite 'task_autodetect.c': Ensure thread safety + clean-ups/rationalisation 2020-07-14 17:46:58 +01:00
Autechre 84ca79fcc1
Merge pull request #11006 from Jamiras/save_task_wait
only wait for save task to complete
2020-07-12 19:14:04 +02:00
twinaphex 5cdda30d5a Do away with HAVE_MENU ifdef 2020-07-12 15:48:21 +02:00
twinaphex 6248b1f30a (task_content.c) Cut down on some code duplication 2020-07-12 15:45:44 +02:00
twinaphex 2f8f783d5c Small cleanup in content_load 2020-07-11 16:35:12 +02:00
twinaphex 2dd5ea66a1 Simplify content_file_init_subsystem 2020-07-11 16:24:10 +02:00
twinaphex 40cf0e13e7 (Load content) Don't try to log every single argument by default 2020-07-11 16:11:52 +02:00
twinaphex 8436b7fc6a Cleanup command_evnt_cmd_exec 2020-07-11 16:00:42 +02:00
Jamiras 9aa42c9d5e only wait for save task to complete 2020-07-10 20:18:03 -06:00
jdgleaver 506aa0a36c Add optional widget-based 'load content' launch feedback animation 2020-07-09 13:05:28 +01:00
twinaphex 2bdec2d0b3 Move content_state global state to rarch_state 2020-07-08 11:48:33 +02:00
Autechre abfd0ed030
Merge pull request #10959 from jdgleaver/static-core-load
(Static Platforms) Add option to not restart RetroArch when launching content with the currently loaded core
2020-07-07 11:45:18 +02:00
twinaphex 6e59d52184 Cleanups/comments 2020-07-07 05:58:07 +02:00
jdgleaver e87b8311c8 (Static Platforms) Add option to not restart RetroArch when launching content with the currently loaded core 2020-07-03 17:12:23 +01:00
twinaphex 7862166ed2 Add back HAVE_SCREENSHOTS define from SSNES days 2020-07-01 17:47:13 +02:00
twinaphex 223d76680a Add HAVE_CHEATS ifdef 2020-06-30 19:35:55 +02:00
twinaphex 2c62a10d6c - Fix codepaths for compiling without HAVE_RWAV
- Add back HAVE_BSV_MOVIE
2020-06-30 18:08:49 +02:00
twinaphex b77dd9cfe4 Add HAVE_PATCH ifdef; add patch switch support to qb 2020-06-30 15:54:31 +02:00
twinaphex fded8ab357 Fix issues pointed out by static code analysis 2020-06-29 19:15:07 +02:00
twinaphex b34b29a22f Replace calloc with malloc 2020-06-29 05:18:54 +02:00
Autechre 10ddb274bc
Merge pull request #10866 from parport0/master
Add a bluetooth driver
2020-06-27 16:46:11 +02:00
twinaphex 408f40f413 Cut down on some callocs 2020-06-27 16:36:08 +02:00
Autechre 5f607f5809
Merge pull request #10922 from jdgleaver/playlist-config
Refactor playlist struct configuration
2020-06-26 20:35:39 +02:00
twinaphex 1ae20ea17c Style nits - turn macro names into upper-case - some while style nits 2020-06-26 20:00:19 +02:00
jdgleaver 5aeb479a31 DISABLE_NETWORKING buildfix 2020-06-26 18:09:08 +01:00
jdgleaver 0fcfb3deda Refactor playlist struct configuration 2020-06-26 15:40:19 +01:00
jdgleaver b6364407fd Optimise parsing of configuration files 2020-06-25 15:15:08 +01:00
twinaphex de36ff20fb Create string_ends_with_size 2020-06-25 14:38:06 +02:00
twinaphex 601a73fa8b Use string_starts_with_size where possible - avoids the strlen 2020-06-25 12:51:04 +02:00
twinaphex 1c5276749a Turn calloc into malloc 2020-06-24 19:35:07 +02:00
twinaphex f5940ed188 Use malloc instead of calloc where possible 2020-06-24 19:27:02 +02:00
parport0 23c08ad9b0 Add bluetoothctl bluetooth driver 2020-06-24 12:53:27 +03:00
Jamiras 6e7eeb1d8f prevent NULL reference exception when scanning some directories 2020-06-21 22:35:35 -06:00
jdgleaver 42537a67e1 Fix display of core-generated messages when load content fails 2020-06-19 12:22:37 +01:00
jdgleaver 80f36e16d0 Add option to selectively 'lock' (prevent modification of) installed cores 2020-06-18 17:36:33 +01:00
jdgleaver 2782b87267 Add option to automatically backup cores when updating 2020-06-16 11:12:22 +01:00
twinaphex b74b8b6a6c Move launched_from_cli to global state 2020-06-13 08:19:49 +02:00
twinaphex 6690790dae Fix --disable-menu 2020-06-12 22:24:39 +02:00
jdgleaver 6f51ef5966 (Playlist management tasks) Fix potential heap-use-after-free errors 2020-06-12 17:40:24 +01:00
jdgleaver 1cdd3c32c0 (Manual Content Scanner) Add option to disable recursive scanning 2020-06-12 10:00:38 +01:00
parport0 a4590acde9 Add options for moving the on-screen overlay 2020-06-11 15:39:23 +03:00
twinaphex 30bfca0d71 (task database) Optimize extension_to_file_type 2020-06-11 02:53:31 +02:00
twinaphex a2184bcd07 (task database) optimize detect_psp_game 2020-06-11 02:39:07 +02:00
twinaphex d714520c64 (Autodetect) Cleanups 2020-06-11 02:29:32 +02:00
twinaphex 4f3059c608 Cleanups 2020-06-10 16:33:44 +02:00
twinaphex 8eee7b3bb9 (Task database) Cleanups 2020-06-10 16:24:52 +02:00
twinaphex c31bfb4dc8 (task_pl_thumbnail_download) Simplifications 2020-06-08 21:20:07 +02:00
twinaphex a88bf59b27 Update log messages 2020-06-08 20:31:08 +02:00
twinaphex f64da5cb1e Update more log messages 2020-06-08 19:11:43 +02:00
twinaphex aed8b7943d Cleanup log messages 2020-06-08 18:58:18 +02:00
twinaphex c2bc40bbc3 Update SRAM log messages 2020-06-08 17:57:40 +02:00
twinaphex ce95dcaf79 (task_pl_thumbnail_download) Some string_is__equal optimizations 2020-06-08 07:31:58 +02:00
twinaphex 876419294d (gfx widgets) Pass more state around 2020-06-08 02:54:01 +02:00
twinaphex 98b847cad9 Fix some memory leaks and fallthrough errors picked up on by
Clang static code analyzer
2020-06-07 16:15:35 +02:00
twinaphex aae94efcfb Cleanup 2020-06-06 22:46:05 +02:00
jdgleaver 445921ac5d Core info search optimisations + improved core selection logic + clean-ups 2020-06-06 13:59:28 +01:00
twinaphex c74d145167 Hose this out of HAVE_NETWORKING ifdef 2020-06-04 23:41:13 +02:00
Autechre 30a4610b12
Merge pull request #10788 from jdgleaver/core-backup
Add option to backup/restore installed cores
2020-06-04 16:30:55 +02:00
twinaphex 9fda2bdebd Add TODO/FIXME comments 2020-06-04 14:09:45 +02:00
jdgleaver 0a33e562f4 Add option to backup/restore installed cores 2020-06-04 12:20:58 +01:00
twinaphex 6083450d4e Ensure save states are correctly flushed to disk when quitting RetroArch (fixes broken save states when exiting RetroArch - without first closing content - with 'Auto Save State' enabled) 2020-06-01 17:39:52 +02:00
twinaphex 00167caf54 Use localized strings 2020-05-29 12:54:09 +02:00
twinaphex 9f9710beb6 Fix --disable-threads 2020-05-29 11:16:38 +02:00
twinaphex 6cc47f8ee0 task_pl_thumbnail_download - replace many subsequent strlcat calls
with one snprintf
2020-05-29 10:30:56 +02:00
twinaphex a50fd86f3e Add global state warnings 2020-05-29 06:11:07 +02:00
twinaphex 3af84d73e9 Move menu_content_environment_get to retroarch.c 2020-05-29 05:28:29 +02:00
jdgleaver 044bd03a13 More core updater improvements 2020-05-28 17:48:18 +01:00
twinaphex 421bcb07d3 (task_audio_mixer.c) Optimize further 2020-05-22 22:00:25 +02:00
twinaphex eaba575c9e Replace strstrs where possible 2020-05-22 21:11:35 +02:00
twinaphex 31674f9246 Use string_ends_with and string_starts_with 2020-05-22 20:57:48 +02:00
twinaphex 9f4b3b0fc6 Start using string_ends_with 2020-05-22 20:07:21 +02:00
jdgleaver d24498bdf1 Image file type detection fixes/optimisations 2020-05-22 16:57:37 +01:00
jdgleaver 955e25fc39 (On Demand Thumbnails) Fix heap-use-after-free error 2020-05-22 11:07:34 +01:00
twinaphex 6dc758a080 Move cheevos-new to cheevos/ 2020-05-21 23:23:01 +02:00
twinaphex 03ea12d334 Move discord files to network/ 2020-05-20 15:27:27 +02:00
Jamiras 6946f878ef disable hardcore when cheats are enabled 2020-05-16 08:01:24 -06:00
jdgleaver 3a3c4f60bf (task_screenshot) Fix heap-use-after-free error when widgets are disabled 2020-04-30 11:25:53 +01:00
Autechre 89c405b196
Merge pull request #10487 from jdgleaver/playlist-compression
Add optional playlist compression
2020-04-23 13:30:58 +02:00
jdgleaver fa9290cf1e Add optional playlist compression 2020-04-21 16:44:26 +01:00
Vladimir Serbinenko 1fcdddf579 Remove manual MSB_FIRST definitions and switch to retro_endianness.h 2020-04-21 04:16:55 +02:00
jdgleaver 0d1fd657ab Add optional save (SRAM) file compression 2020-04-20 12:48:40 +01:00
jdgleaver 233456df47 Add optional save state compression 2020-04-15 15:48:41 +01:00
jdgleaver 223cae66c1 (Playlist Management) Add optional per-playlist alphabetical sorting 2020-04-10 17:07:49 +01:00
Autechre ff7f56e996
Merge pull request #10314 from jdgleaver/m3u-scan
(Manual content scanner/playlist cleaner) Prevent redundant playlist entries when handling M3U content
2020-03-24 18:15:24 +01:00
jdgleaver fb7b1ec1a0 Use correct port index in input device configured/disconnected notifications 2020-03-24 11:18:54 +00:00
jdgleaver e24274a314 (Manual content scanner/playlist cleaner) Prevent redundant playlist entries when handling M3U content 2020-03-20 14:26:08 +00:00
twinaphex 7986561598 Rename menu widgets to display widgets 2020-03-13 03:58:33 +01:00
Rob Loach 7403b3de8a
(Database) Add support for scanning PSP Korean
This adds support for scanning PlayStation Portable Korean region.

Found by @pkos, and fixes #10268
2020-03-12 21:19:32 -04:00
natinusala 375621394c gfx_widgets: move volume into its own file 2020-03-12 09:31:05 +01:00
twinaphex 7fb7d4e74c Buildfix 2020-03-12 08:05:44 +01:00
twinaphex 649aee49ba (task_content.c) Cleanups 2020-03-12 07:29:04 +01:00
twinaphex 67ea016c09 (task_content.c) cleanups 2020-03-12 07:14:44 +01:00
twinaphex 38135c505b Rearrange struct members based on size 2020-03-12 06:59:07 +01:00
twinaphex f13a4b10ee (task_content.c) Move global variables to struct 2020-03-12 06:45:17 +01:00
Rob Loach 84eb05c917
database: Add scanning Korea and Asia discs
This change adds support for scanning Korean and Asian media discs to task_database_cue.c.

Found by @pkos, and fixes #10241 .
2020-03-09 22:46:30 -04:00
twinaphex 9ae4031d13 Cleanups 2020-03-07 19:14:45 +01:00
jdgleaver 7873b5f044 (QT) Populate 'db_name' and 'crc32' fields when adding entries to content history 2020-03-06 14:00:04 +00:00
twinaphex 32e4aea068 Start making the other code safe that is dependent on menu driver
ident checking
2020-03-04 20:47:39 +01:00
twinaphex 0ef1b342e4 settings Cleanups 2020-03-02 20:10:24 +01:00
twinaphex cc50cefd30 Cleanups 2020-03-01 21:58:09 +01:00
twinaphex 8ce4ed7164 Cleanups 2020-02-29 12:55:33 +01:00
jdgleaver 5128237228 Core updater tasks: Prevent hang when fetching core list if HTTP transfer fails 2020-02-28 11:57:13 +00:00
twinaphex a4c19457ce Found one instance where userdata was not implicitly set to NULL 2020-02-21 20:48:11 +01:00
twinaphex 7c7d0f596a HAVE_MENU_WIDGETS now decoupled from HAVE_MENU 2020-02-17 21:28:42 +01:00
twinaphex b00bf17153 Move menu_widgets to gfx/ and call it gfx_widgets 2020-02-17 01:54:07 +01:00
twinaphex b229f267e4 Rename menu_widgets to gfx_widgets 2020-02-17 01:43:40 +01:00
twinaphex 1cea12bf57 Cleanups 2020-02-16 20:03:57 +01:00
twinaphex f74225721d menu_thumbnail and menu_thumbnail_path now decoupled from menu
system
2020-02-16 16:38:17 +01:00
Jamiras 4b8f3ec5b5 default rich presence on; better handling of special characters 2020-02-14 20:12:49 -07:00
twinaphex 369348ebaf (Managers) Get rid of settings_t dependencies 2020-02-14 14:24:38 +01:00
twinaphex de604a79ab dir_list_new_special - no more dependency on settings_t 2020-02-14 12:12:59 +01:00
twinaphex 8627d638e1 Cleanups 2020-02-04 06:05:00 +01:00
twinaphex cd20966fc8 Remove more settings_t dependencies 2020-02-03 08:00:08 +01:00
twinaphex 2cb6416572 Cleanup 2020-02-03 07:39:14 +01:00
twinaphex 3fd40c03bf (tasks/task_core_updater.c) get Rid of some settings dependencies 2020-02-03 07:37:05 +01:00
twinaphex 5bb084c32b Cleanups 2020-02-02 03:00:51 +01:00
twinaphex 8eca1a0459 Refactor this 2020-02-02 02:16:19 +01:00
twinaphex 64c515bac4 Turn while (true) into for (;;) for easier MSVC backwards compatibility 2020-02-01 04:15:22 +01:00
twinaphex ff6d79b2cc Get rid of more RARCH_CTL_ enums 2020-02-01 03:32:24 +01:00
twinaphex 96018412c0 Cleanups 2020-02-01 03:27:58 +01:00
twinaphex f785e4b045 Replace while (1) with for (;;) - avoids MSVC warnings 2020-01-30 16:15:52 +01:00
twinaphex d198bef37b task_decompress.c - get rid of logging
task_autodetect_blissbox.c - get rid of logging
2020-01-25 17:22:24 +01:00
twinaphex cfcce71392 - Add HAVE_BLISSBOX
- Do not use logging functions inside internal task functions - should
always be done outside at end handler function
2020-01-25 17:17:53 +01:00
Jamiras a96672c0fc improve accuracy of progress for smaller payloads; prevent divide by zero for very small payloads 2020-01-22 17:42:55 -07:00
twinaphex d4a1f2ef85 Cleanups 2020-01-20 05:06:51 +01:00
twinaphex 60faeffde0 (task_patch.c) Cleanups 2020-01-20 04:44:45 +01:00
twinaphex 481f31fe8f Turn task_patch.c into separately compiled file 2020-01-20 04:31:32 +01:00
twinaphex 7748ac207c Split up blissbox code into separate file
tasks/task_autodetect_blissbox.c
2020-01-19 06:40:07 +01:00
twinaphex fe9022afe0 More CXX_BUILD fixes 2020-01-18 05:48:19 +01:00
Jamiras 92d572285e add missing header 2020-01-17 20:36:28 -07:00
Jamiras 7325147d83 add task_push_http_transfer_file 2020-01-17 19:48:40 -07:00
jdgleaver e7733abc40 (Playlist Management) Add 'Clean Playlist' option 2020-01-15 18:00:51 +00:00
jdgleaver 495ad41741 Thumbnail downloader clean-ups 2020-01-10 11:08:36 +00:00
jdgleaver d2e2c289a6 Display number of cores updated when updating installed cores 2020-01-07 14:59:46 +00:00
twinaphex 278dc75285 (tasks) Fix samples 2020-01-04 12:07:58 +01:00
twinaphex 9c6c10da22 (Playlist) Get rid of settings_t dependency 2020-01-04 12:04:00 +01:00
twinaphex 758a6c76ae Reduce dependence on settings_t struct 2020-01-02 17:52:37 +01:00
twinaphex 05d71ebb67 Start reducing dependency on settings struct 2020-01-02 17:41:52 +01:00
jdgleaver 695749f155 (Core Updater) Only download when new core is available + add option to update all installed cores 2019-12-23 17:34:44 +00:00
jdgleaver 9b012e907a (Manual Content Scanner) Enable automatic naming of arcade content via DAT files 2019-12-04 12:46:04 +00:00
jdgleaver 3d52d7a8f6 (Manual Content Scanner) Add option to scan inside archives 2019-12-02 11:49:41 +00:00
jdgleaver 170397456c Add manual content scanner 2019-11-29 17:14:46 +00:00
Jamiras 1f97d31f2a pause hardcore if core doesn't support achievements 2019-11-27 07:38:41 -07:00
Jamiras 67e9fba9d7 generate User-Agent for retroachievement API calls 2019-11-02 21:52:30 -06:00
jdgleaver c356969c3a (GLUI) Add initial thumbnail support 2019-10-31 17:25:55 +00:00
Twinaphex 7bed40d17b
Merge pull request #9547 from Rinnegatamante/videodrivers
Graceful switch between video drivers.
2019-10-12 14:21:33 +02:00
Rinnegatamante eed65a64b2 Removing no more required video context capabilities check at content_load time. 2019-10-04 19:25:05 +02:00
jdgleaver 1df3e20bdd Add option to automatically rotate overlays 2019-10-04 12:15:57 +01:00
twinaphex b94b9e2adb Go back to plain strlcpy/strlcat - probably best to look at
opportunities to reduce these calls vs. replacing them with
unsafe macros
2019-09-23 00:19:01 +02:00
twinaphex 3b057d9605 Start using STRLCAT_CONST_INCR and STRLCPY_CONST 2019-09-20 23:33:17 +02:00
twinaphex ec4bfd7827 Silence some warnings - statement unreachable etc. 2019-09-20 06:17:40 +02:00
twinaphex db624a7c99 Start cleaning up the rather messy manual assignment 2019-09-20 02:03:26 +02:00
twinaphex ab515daa0c Try to get rid of file_path_str 2019-09-18 18:12:57 +02:00
twinaphex 698387e762 (task_screenshot.c) Cleanups - don't use snprintf unless necessary 2019-09-18 02:31:02 +02:00
twinaphex 8fa6230426 Cleanups 2019-09-18 02:16:47 +02:00
twinaphex 7d58bb9799 Avoid more snprintf usage 2019-09-17 06:34:00 +02:00
twinaphex 65aa939296 task_push_http_transfer_generic - rewrite snprintf usage 2019-09-17 06:10:15 +02:00
twinaphex d01ae6929d Don't use strlcat for basic concatenation of characters
except when absolutely necessary
2019-09-17 02:00:04 +02:00
brenodantas10 0ab26a1371 Soft-Patch any IPS size (put declarations at beginning) 2019-09-01 18:44:21 -03:00
brenodantas10 49032ae2f2 Soft-Patch any IPS size 2019-09-01 16:01:48 -03:00
brenodantas10 33c681c0c7 Fix IPS Patch, still without re-allocation 2019-08-28 01:52:26 -03:00
Breno Dantas Mendonça be493daf72
Update task_patch.c
Fix IPS Patch, still without reallocation
2019-08-28 01:39:15 -03:00
brenodantas10 a099812f6e (bps/ups)_apply_patch - Re-allocation target_data variable for target patch size (can now apply bigger patches without extra-bytes on memory) 2019-08-24 00:06:34 -03:00
twinaphex 0264cd815a (HTTP/on-demand thumbnails) Mute error output when task is set to mute 2019-08-23 16:52:30 +02:00
twinaphex 40ad1319c4 Buildfix 2019-08-22 23:31:33 +02:00
jdgleaver 75ae05d287 (menu_thumbnail_path) API clean-up + tiny bug fix 2019-08-16 15:49:57 +01:00
twinaphex c69c972942 (Menu) Cleanups 2019-08-16 15:17:33 +02:00
twinaphex 6c671faed6 Start preparing for menu_widgets_ready to be moved to retroarch.c 2019-08-15 14:20:51 +02:00
twinaphex 20846796cd Cut down on some menu_widgets_ready calls 2019-08-15 13:12:15 +02:00
Twinaphex 1772233e9f
Merge pull request #9288 from asavah/fix-double-free
fix double free()
2019-08-13 02:47:08 +02:00
Brad Parker 3432f3b852 cdrom: initialize all buffers used for drive paths, make sure to null-terminate filled paths in all cases 2019-08-12 20:42:40 -04:00
root 54978459bf fix double free() 2019-08-13 00:18:30 +03:00
twinaphex ab293b9900 Add HAVE_THREADS ifdefs 2019-08-11 12:53:21 +02:00
twinaphex f5a8a934ac Cleanups 2019-08-11 11:14:45 +02:00
Brad Parker 7479245875 opengl: loop through highest available versions to find a working one, only do hwapi check on glx/wgl for now 2019-08-05 10:46:17 -04:00
Tatsuya79 924a898e1d
typo 2019-08-05 01:24:50 +02:00
twinaphex c82693037f Cleanups 2019-08-02 21:15:54 +02:00
bparker06 56ef7eb229
cue tokens are case-insensitive 2019-08-01 19:16:18 -04:00
Brad Parker f3faecdb27 scanner: skip archive files with no CRC instead of looping forever 2019-07-31 12:41:49 -04:00
jdgleaver 9617856c5c Remove favourites init/deinit from command event, and replace with seperate functions in retroarch.h/.c 2019-07-31 11:32:19 +01:00
jdgleaver 5220dc9084 Add independent 'favourites' playlist size setting 2019-07-30 17:13:04 +01:00
Twinaphex 52ef1af14e
Merge pull request #9137 from LazyBumHorse/realpath
replace realpath() by custom code which does not resolve symlinks
2019-07-24 22:20:38 +02:00
Brad Parker 61ab9249fc add "required hw api" to core info files, block content loading if core is incompatible with current graphics API/version 2019-07-23 22:44:45 -04:00
twinaphex ba79947e51 This should prevent flushing of stack issues 2019-07-22 22:40:34 +02:00
twinaphex e30a0631d9 Change to C comment 2019-07-22 22:07:22 +02:00
LazyBumHorse 6285c05948 add resolve_symlinks parameter to path_resolve_realpath() and cleanup playlist_resolve_path() 2019-07-22 13:44:35 +02:00
orbea e13ec54dc6 Fix --disable-overlay. 2019-07-21 10:26:42 -07:00
Brad Parker 41b3adc8a4 cdrom: always request one sector at a time 2019-07-21 12:06:10 -04:00
orbea 2aa9c3e72e Correctly fixes --disable-menu.
Broken in d2893d991c
2019-07-21 00:05:59 -07:00
twinaphex cd90760b7b Buildfix for non-HAVE_MENU targets 2019-07-21 01:13:24 +02:00
twinaphex b6b22a9a32 More shader refactors - make sure we can compile entirely
without shader support if HAVE_CG, HAVE_GLSL, HAVE_SLANG
and HAVE_HLSL are all not defined
2019-07-21 00:34:07 +02:00
twinaphex d905986a52 Rename functions - change rarch_ prefix to retroarch_ 2019-07-20 12:43:43 +02:00
twinaphex c2c7c106a1 Add conf->path for config_file_new_from_path_to_string 2019-07-20 00:39:55 +02:00
twinaphex 41a2fabb4e Create config_file_new_from_path_to_string 2019-07-18 12:03:50 +02:00
Yoshi Sugawara 8862e8de9f [iOS] show quickmenu after loading content from playlist (#9118) 2019-07-17 17:08:23 -10:00
twinaphex 35a3d4ba73 (task_overlay) Use config_file_from_string 2019-07-16 19:32:27 +02:00
twinaphex 319e708738 core_info_list_iterate - use config_file_from_string 2019-07-16 19:01:43 +02:00
twinaphex f73e4e9af8 (Autoconfig) Try to avoid implicit fgets calls which are slow (inside
config_file_new and filestream_getline) - instead, read the entire
file into a memory buffer once and then pass it to
config_file_new_from_string - went from 14000 ticks to 9000 ticks
on an NVME M2 SSD, so big gains
2019-07-16 18:35:44 +02:00
twinaphex 0257e01bee Refactor input_autoconfigure_connect - don't return
value - set input device name upon failure implicitly
2019-07-16 15:28:22 +02:00
twinaphex 195b016293 (Autoconfig task) Store 'best config' so that we don't have to
call config_file_new again once we have queried all the autoconfig
profiles
2019-07-16 09:55:35 +02:00
twinaphex d80b85b158 Cleanups 2019-07-14 18:52:51 +02:00
twinaphex 9cc055bf93 Not necessary for content_ctx to be passed either 2019-07-14 18:26:18 +02:00
twinaphex 58417e56b7 Update task_push_to_history_list 2019-07-14 18:23:46 +02:00
twinaphex 484b2bc944 Split up task_load_content into two - one does the actual file
loading, the other simply pushes an entry to the history playlist
2019-07-14 18:21:46 +02:00
twinaphex 8a70f3f4cb Cleanup 2019-07-14 15:35:49 +02:00
twinaphex 288523765a Fix LTGM errors - 'wrong type of arguments to formatting function' 2019-07-14 13:22:59 +02:00
twinaphex 31f142ef9c (task_powerstate.c) Fix 'local variable state hides a global variable
with the same name'
2019-07-14 13:11:11 +02:00
twinaphex b2bf822f13 Add HAVE_AUDIOMIXER switch 2019-07-11 11:51:06 +02:00