LibretroAdmin
44cb5be2ef
(task_content.c) Cut down on code duplication
2022-10-25 16:32:16 +02:00
sonninnos
03c901dfb8
Playlist + database changes: ( #14531 )
...
- Cleanup 'entry_slot'
- Fallback label + logging
2022-10-18 21:32:54 +02:00
LibretroAdmin
a153738bbd
Create retroarch_get_flags and use it
2022-10-12 13:27:54 +02:00
LibretroAdmin
41de5ec80b
Cleanups for runloop_state grabbing
2022-10-10 20:32:46 +02:00
LibretroAdmin
076a1a398c
(Runloop) Turn some boolean variables into flags
2022-10-10 04:37:17 +02:00
LibretroAdmin
479e3b23d9
Turn content_get_status into content_get_flags
2022-10-09 20:32:39 +02:00
LibretroAdmin
d5a6c4f150
(content) use flags for content_state
...
(xaudio2) Use flags
2022-10-09 10:20:43 +02:00
LibretroAdmin
fcbd72dbf3
Use flags pt4 ( #14497 )
...
* * Use flags for rarch_state
* Get rid of ^M linebreaks in retroarch_types.h
* Buildfixes for consoles
* (audio driver) use flags instead of bools
* (video) Use flags instead of bools
* Rewrite input driver state bools into flags
2022-10-08 10:39:15 +02:00
LibretroAdmin
30eb0edcf8
Use flags for some structs instead of tons of bools - less state/variables to bookkeep,
...
less memory used
2022-10-06 06:53:13 +02:00
sonninnos
4806105a2c
Logging cleanups ( #14393 )
2022-09-06 18:48:58 +02:00
LibretroAdmin
003cea5d42
Fix some 'implicit conversion loses precision' warnings
2022-09-01 15:15:48 +02:00
LibretroAdmin
575e331fd1
If we already know the length of the string, use strldup instead.
...
Avoids the internal strlen call inside strdup, and strdup is a deprecated
function starting from MSVC2005 anyways.
NOTE: Do NOT pass STRLEN_CONST as n parameter to strldup, it needs to
be at least +1 character higher than the strlen return value of the same
string
2022-08-25 16:31:54 +02:00
LibretroAdmin
5bb3fbab93
Fix mistake in prior commit - should be concatenated to string
2022-08-25 15:17:31 +02:00
LibretroAdmin
6caa139700
(cheevos.c) Fix some function prototypes for C
...
Rewrite some snprintfs as strlcpy/strlcat/manual assignment - only
use snprintf if we actually need the formatting
2022-08-25 15:08:02 +02:00
LibretroAdmin
6126a86259
Try to avoid sprintf/strcat/strcpy calls as much as possible in
...
RetroArch codebase
2022-08-24 13:49:05 +02:00
LibretroAdmin
c04201927b
Don't make libretrodb dependent on errno anymore ( #14340 )
...
* Don't make libretrodb dependent on errno anymore
2022-08-23 19:36:52 +02:00
LibretroAdmin
b2634ea588
* Create fill_pathname_join_special - and specify fill_pathname_join
...
as deprecated.
* Use fill_pathname_join_special in the vast majority of cases where
we can ensure out_path is a new empty string
* Get rid of some extension concatenation with strlcat where encountered
* Some general cleanups with NULL termination of strings that get immediately
passed to strlcpy/strlcpy-adjacent functions
2022-08-04 14:19:38 +02:00
LibretroAdmin
f79875536a
(libretro-common) Move file_crc32 out of encoding_crc32.c - we don't want file I/O
...
code in encodings/encoding_crc32.c
2022-08-01 14:04:01 +02:00
libretroadmin
69a2d124c0
Don't do NULL termination on string if we pass it off to strlcpy
...
and/or a file_path function that uses strlcpy under the hood
2022-07-24 05:39:51 +02:00
LibretroAdmin
29774f5b7a
Small opts ( #14186 )
...
* (joypad_connection) Small optimizations -
* Turn functions static where possible
* Hose strlen call out of loop
* (input_driver.c) General cleanups:
* Some small code/style nits
task_screenshot.c:
* Move widget callback function for screenshots to task_screenshot.c
(file_path.c):
* Turn get_pathname_num_slashes into static function
* path_linked_list_free - always returns true, so get rid of return value
* path_linked_list_new - fix function signature
* path_get_archive_delim - do not NULL-terminate string, already done by strlcpy later on
General:
* Slight optimizations - use int/size_t for loop counter variable instead of unsigned
* Take advantage of fact that strlcpy already NULL-terminates, so don't do this explicitly
outside if we're just going to end up calling strlcpy/fill_pathname_join on it anyway
2022-07-19 10:01:33 +02:00
libretroadmin
adf9994828
Deprecate fill_pathname_base_noext
2022-07-11 20:13:44 +02:00
libretroadmin
05fb6fd9a3
task_push_load_content_playlist_from_menu - cleanup error_string
2022-07-09 18:43:44 +02:00
libretroadmin
3b2b4ea49d
(task_content.c) Cleanups - remove error_string where not used
2022-07-09 18:41:18 +02:00
libretroadmin
a9b074fa0a
Rewrite content_file_list_init - check return value first before assigning it
2022-07-09 13:32:38 +02:00
libretroadmin
274ce86d89
content_file_list_init - size < 1 will never happen, checked outside
...
before calling the function
2022-07-09 13:24:01 +02:00
libretroadmin
4d3587a2e8
Cleanups in task_content.c -
...
split up some code between HAVE_MENU and whatnot
2022-07-09 02:07:34 +02:00
libretroadmin
fbd37f8926
Consistency in variable naming conventions - rename temp_path to tmp_path
...
for uniformity with rest of code
2022-07-05 19:06:38 +02:00
libretroadmin
cd36af1d24
Use NAME_MAX_LENGTH for some char array variables that have a fixed
...
width of 256
2022-07-03 13:59:23 +02:00
libretroadmin
9c34a83aa7
task_push_load_contentless_from_menu - prevent warning when
...
compiling without HAVE_DYNAMIC defined
2022-06-10 14:40:06 +02:00
Cthulhu-throwaway
796bc15837
C89 buildfix ( #13923 )
...
* C89 buildfix
* More buildfixes
2022-05-10 07:37:33 +02:00
jdgleaver
1e7265e7aa
Static Platforms: Populate all history list metadata when launching content from playlists ( #13822 )
2022-04-04 16:33:44 +02:00
Mats
4a1a1e2fa7
(steam) Introduce Steam Rich Presence ( #13798 )
2022-04-02 08:07:40 +01:00
twinaphex
9bcee062ff
Cleanups/warnings
2022-03-07 19:32:01 +01:00
twinaphex
460f5e745d
Silence some MSVC 2019 code analysis warnings
2022-03-05 14:39:56 +01:00
jdgleaver
9b0cb0fc92
Add 'Standalone Cores' menu ( #13655 )
2022-02-22 19:23:48 +01:00
tunip3
fb6bf6023a
Move roms copied to localstate to a dedicated dir and clear on start up [XBOX/UWP] ( #13392 )
...
* make roms copy to a specific cache dir in the localstate folder when its copied
* auto delete vfs cache dir on start up
Co-authored-by: Tunip3 <tunip3@users.noreply.github.com>
2021-12-22 12:55:33 +01:00
tunip3
6c123dd078
Mitigate need for vfs cores on ntfs drives [UWP/XBOX] ( #13368 )
...
* make check for standard io by access rather than the just assuming based on path string
* add code to auto permissions so files can be accessed by non vfs cores
(no exfat or fat32 support yet)
* remove commit from macro because apparently it causes issues
Co-authored-by: Tunip3 <tunip3@users.noreply.github.com>
2021-12-17 13:46:04 +01:00
Tilman M. Jaeschke
682bbab233
[New Feature] Load save states from command-line or playlist ( #13354 )
...
* load save states from command-line or playlist
* load save states from command-line or playlist
* removed some brackets
2021-12-14 14:08:06 +01:00
tunip3
62528a483f
Fix roms over 4gb (approx) failing to load, improve copy times, fix scanning for playlists [UWP/XBOX] ( #13348 )
...
* Fix scanning for playlists
* Fix issues where games over 4gb (approx) would fail to load and also speed up loading times
2021-12-12 17:29:57 +01:00
Tony
09880e92d2
Logging cleanups ( #13320 )
2021-12-04 14:21:12 +01:00
twinaphex
bc6433e0f9
Move menu_content_environment_get to task_content.c
2021-11-23 17:10:52 +01:00
twinaphex
86f899c844
Revert "Shorten character arrays that are passed to fill_pathname_base_noext"
...
This reverts commit 318108ac82
.
2021-11-10 08:22:19 +01:00
twinaphex
318108ac82
Shorten character arrays that are passed to fill_pathname_base_noext
2021-11-10 00:09:33 +01:00
twinaphex
f671ce4f8c
Move global->name to runloop_st
2021-11-09 06:03:00 +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
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
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
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
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
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
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
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
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
twinaphex
e16dd186b7
Cleanups
2020-10-10 17:58:32 +02:00
twinaphex
400df12c1e
Start using error_enum
2020-09-03 04:10:37 +02:00
twinaphex
e09f1d65b5
Cleanups
2020-09-03 00:44:22 +02:00
twinaphex
e2bd3d75bc
Cleanup
2020-09-03 00:38:19 +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
216190b826
Clean up more string variables on heap - move to stack
2020-08-18 14:26:15 +02:00
twinaphex
d29e0a9969
(Task content) Don't put string variables on heap
2020-08-18 10:56:54 +02:00
twinaphex
8a3ef513a3
Struct reordering
2020-08-14 18:43:11 +02:00
twinaphex
6be4adffdf
Silence warning with --disable-menu
2020-07-20 02:04:43 +02:00
twinaphex
324eb4f098
(UWP) Buildfix
2020-07-16 11:49:15 +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
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
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
b77dd9cfe4
Add HAVE_PATCH ifdef; add patch switch support to qb
2020-06-30 15:54:31 +02:00
jdgleaver
0fcfb3deda
Refactor playlist struct configuration
2020-06-26 15:40:19 +01:00
twinaphex
1c5276749a
Turn calloc into malloc
2020-06-24 19:35:07 +02:00
jdgleaver
42537a67e1
Fix display of core-generated messages when load content fails
2020-06-19 12:22:37 +01:00
twinaphex
b74b8b6a6c
Move launched_from_cli to global state
2020-06-13 08:19:49 +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
jdgleaver
445921ac5d
Core info search optimisations + improved core selection logic + clean-ups
2020-06-06 13:59:28 +01:00
twinaphex
9fda2bdebd
Add TODO/FIXME comments
2020-06-04 14:09:45 +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
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
fa9290cf1e
Add optional playlist compression
2020-04-21 16:44:26 +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