libretroadmin
253be8e682
Cleanup function
2023-01-05 19:44:12 +01:00
reallibretroadmin
d36bd9e677
Silence some warnings found in Xcode
2023-01-05 09:27:45 +01:00
libretroadmin
7f0dfe797d
(GL3) Comment out this variable that is not used
2023-01-05 09:18:43 +01:00
Eric Warmenhoven
f07a720a31
On Metal OSX build, with GL cores, fix fullscreening redisplay
2023-01-05 09:04:47 +01:00
Eric Warmenhoven
860ffb2b6a
Fix for fullscreen GL driver in Metal OSX build
...
After calling enterFullScreenMode on the GL view, it becomes the "key"
window, meaning it gets all of the input. This is problematic as that
view doesn't forward the input on to the input driver.
2023-01-05 01:21:15 +01:00
libretroadmin
0c42e339e1
Silence some warnings that popup in Xcode
2023-01-04 18:42:35 +01:00
Eric Warmenhoven
5f06c5487d
Include GL video driver on Metal OSX builds
2023-01-04 12:16:39 +01:00
retroNUC
f2f7e2f8ee
Fixed gfx scissoring on D3D drivers ( #14793 )
...
Zero width/height is valid, just means that it won't draw anything between those begin/end calls
2023-01-02 10:44:09 +01:00
retroNUC
d24cdbfb15
Allow repositioning of RetroAchievement notifications ( #14777 )
...
* Allow repositioning of achievement notifications
* PS4/ORBIS build fix
Would have thought cheevos-related notification code was wrapped in HAVE_CHEEVOS, but guess not.
2022-12-30 16:55:38 +01:00
libretroadmin
27611288c0
Rename retroarch_get_current_savestate_path and retroarch_get_entry_state_path
...
to runloop_{function_name}
2022-12-29 02:13:31 +01:00
libretroadmin
e82b75c769
Fix more C89_BUILD issues
2022-12-22 23:10:15 +01:00
libretroadmin
7eedfc8673
No C++ comments in C files
2022-12-22 23:06:48 +01:00
LibretroAdmin
097a7d7fc5
- C89 buildfixes ( #14758 )
...
- Don't declare static function prototypes in headers
2022-12-22 22:14:50 +01:00
LibretroAdmin
f836328c56
Append Preset ( #14737 ) ( #14757 )
...
WIP version of Append and Prepend preset, Includes UI for Standard Retroarch, but not the QT UI companion
Co-authored-by: HyperspaceMadness <remimcgill@hotmail.com>
2022-12-22 21:36:32 +01:00
sonninnos
05c3c0a552
Automatic Frame Delay improvements ( #14754 )
2022-12-22 18:58:26 +01:00
zoltanvb
02ba825c88
Enable localization of video rotation, orientation, aspect ratio options. ( #14744 )
2022-12-19 21:36:06 +01:00
MajorPainTheCactus
5d306acd90
Fixed some shaders not appearing with the d3d12 driver - this reintroduces a validation error though but it seems to work as in not crash and is the old RA behaviour. Guess we need a different way of fixing the validation issue. ( #14729 )
2022-12-13 23:19:28 +01:00
libretroadmin
04f510d503
Cleanup header includes
2022-12-05 15:10:19 +01:00
libretroadmin
daa4c19d18
Style nits/minor cleanups
2022-12-05 14:24:49 +01:00
libretroadmin
fd59309fcd
Cleanups
2022-12-05 14:03:21 +01:00
libretroadmin
30ea7da063
Cut down on header includes
2022-12-05 13:44:20 +01:00
libretroadmin
91b77cf14a
(Vulkan) Cleanups - use int for loop counter variables, don't do
...
some assignments that are already done directly after
2022-12-04 15:29:48 +01:00
libretroadmin
fbfbb81133
(sdl_dingux) Put conditional around access of 'frame' pointer
2022-12-04 15:07:16 +01:00
andymcca
513370f715
(sdl rs_90) Replicate black screen fix #12521 ( #14695 )
...
Add the fix from PR #12521 to the RS90 driver
2022-12-04 15:06:00 +01:00
sonninnos
9e503a6106
Build warning fix win32 ( #14692 )
2022-12-02 17:47:07 +01:00
LibretroAdmin
c75af6194b
Extended IME and Korean OSK ( #14676 )
2022-11-29 04:45:55 +01:00
libretroadmin
b0f337e95e
Style nits:
...
* C comments
* Single line blocks don't need brackets
2022-11-27 10:23:12 +01:00
MajorPainTheCactus
7ebd8e190a
Fixes for d3d12 and d3d11 drivers when using shaders with TATE mode arcades etc ( #14678 )
...
Added support for break on errors in d3d12 (development aid)
Added support for DRED (device remove extended data) in d3d12 (development aid)
Made d3d12 viewport and scissors to behave more like vulkan drivers (or be more correct)
Fixed validation error on start up due to buffers not being setup correctly for one frame
2022-11-27 10:20:34 +01:00
libretroadmin
82ca2a8267
(sdl_gfx.c) Style nits
2022-11-26 21:06:55 +01:00
andymcca
083b14b85c
(sdl gfx) Replicate #12521 / Fix no menu on start ( #14677 )
...
#12521 fixes blank screens on the sdl_dingux driver, so just replicating that change here on the standard sdl_gfx driver. Also, fix a problem where the menu will never show up in this driver, because you cannot blit to a surface in SDL while it is locked (i.e. after issuing an SDL_LockSurface command.
2022-11-26 21:05:30 +01:00
andymcca
8368c2daad
Add 256x192 snn upscale function (Fuse core) ( #14667 )
...
Added snn function to upscale Fuse (ZX Spectrum) core borderless output to 320x240
2022-11-24 19:54:24 +01:00
libretroadmin
e108fefc41
Remove video_driver_set_video_cache_context_ack - replace with single line
2022-11-23 20:55:05 +01:00
libretroadmin
0cf1d86a3a
(input_driver.c) Turn bunch of functions static that are never accessed outside
...
* Turn some variable / parameter names like 'joypad_driver_name' into 'joypad_drv_name'
so they are less likely to conflict with symbol names
2022-11-23 19:14:24 +01:00
libretroadmin
5351aeaa4e
(DRM Go2) fix to prior commit - not sure why this was missing
2022-11-22 17:11:11 +01:00
libretroadmin
623b925256
Implement get_video_size for DRM Go2
2022-11-22 17:09:51 +01:00
libretroadmin
6b71214ed7
Silence some signed/unsigned mismatch warnings
2022-11-21 19:34:43 +01:00
libretroadmin
6a098d37ac
Use HAVE_DYLIB instead of HAVE_DYNAMIC when loading shared libraries
2022-11-21 05:37:35 +01:00
libretroadmin
3b38ea195f
Use HAVE_DYLIB for loading dynamic libraries instead of HAVE_DYNAMIC
2022-11-21 05:23:43 +01:00
sonninnos
3377fd55ab
Driver + hotkey list reorder ( #14646 )
...
* Reorder driver menu and lists
* Reorder hotkey list
2022-11-20 07:26:34 +01:00
libretroadmin
8976a179df
(video_thread_wrapper) For threaded/audio video wrapper we will use
...
bools instead of flags
2022-11-18 20:42:47 +01:00
libretroadmin
9e0c0865cd
Use HAVE_DYLIB more
2022-11-16 17:09:53 +01:00
libretroadmin
63153620a7
There can be builds that are statically built against a libretro core
...
but still have dylib support
2022-11-16 16:51:53 +01:00
sonninnos
3b921ffbfa
Fix shader toggle and add hotkey + sublabel ( #14628 )
2022-11-15 22:14:09 +01:00
libretroadmin
e24d62715e
(font_renderer) Cleanups
2022-11-15 16:03:01 +01:00
libretroadmin
527d1557ce
(Fonts) Cleanups
2022-11-15 16:00:21 +01:00
libretroadmin
d5a268a2ac
* Fix signed/unsigned mismatches
...
* Fix missing IPAddr on MSVC2017 UWP - use ULONG instead since this is
just a typedef
2022-11-15 00:24:26 +01:00
sonninnos
6d34ef46f4
Prevent video filter init if game is not running ( #14593 )
2022-11-06 10:16:20 +01:00
Michael Burgardt
b89692c532
Add Hungarian language option ( #14585 )
2022-11-04 19:52:39 +01:00
Hans-Kristian Arntzen
498835a1f7
Vulkan: Fix HDR inverse tonemapping. ( #14587 )
...
Only skip tonemapper if HDR10 is explicitly enabled by last shader pass.
Otherwise, we are simply just inheriting the bit-depth of the swapchain.
2022-11-04 00:50:19 +01:00
sonninnos
69060796bb
Improve widget appearance with missing assets ( #14588 )
2022-11-04 00:15:31 +01:00
LibretroAdmin
bba1fdca30
(D3D12) Use flags instead of boolean variables
2022-11-03 01:31:15 +01:00
LibretroAdmin
7aa8c6bb11
(D3D10) Turn boolean variables into flags
2022-11-02 23:19:41 +01:00
LibretroAdmin
56ad3fa091
(Vk struct) Turn boolean variables into flags
2022-11-02 21:34:00 +01:00
LibretroAdmin
15048027e7
(D3D11) Turn booleans into flags
2022-11-02 08:31:40 +01:00
LibretroAdmin
c4d2788c08
Rollback extended character PR - caused too many issues
...
and caused crashes - contributor can submit a new improved PR -
would also prefer increased readability
2022-11-02 06:23:46 +01:00
LibretroAdmin
5d4c6a9564
Some small opts to two conditionals
2022-10-30 23:21:43 +01:00
LibretroAdmin
724acc4eb9
(Vulkan) Use flags for vulkan_ctx_data
2022-10-30 23:07:07 +01:00
LibretroAdmin
0159c2f70f
gfx_ctx_vulkan_data - use flags instead of booleans
2022-10-30 22:03:36 +01:00
LibretroAdmin
a94c4c72c2
Use size_t as type for returned value of strlen instead of int
2022-10-29 19:40:48 +02:00
LibretroAdmin
b4a2216049
(Context drivers) Cleanups; use flags instead of booleans etc.
2022-10-29 19:36:50 +02:00
LibretroAdmin
9b21848f4c
(Cocoa GL CTX) Turn booleans into flags
2022-10-29 19:25:47 +02:00
LibretroAdmin
55daddf286
* Fix C++ comments - turn them into C comments for C files
...
* Some other additional style nits along the way
2022-10-29 19:05:39 +02:00
Kangmo-Ahn
3a744b7dae
Extended character ime ( #14559 )
...
* Update Makefile
* Update win32_common.c
* Update input_driver.c
* Update gfx_thumbnail_path.c
2022-10-29 19:01:30 +02:00
LibretroAdmin
f6866fe6ce
Buildfix for Linux
2022-10-28 22:33:28 +02:00
LibretroAdmin
174b01f7d9
Remove unnecessary video_driver_is_cache_context
2022-10-28 19:36:56 +02:00
LibretroAdmin
2ec2f4719f
(video_thread_wrapper) Use flags instead of bools
2022-10-28 19:21:09 +02:00
LibretroAdmin
c7eee86fd5
Turn core boolean variables into flags
2022-10-27 00:29:24 +02:00
LibretroAdmin
c0d6d6e750
Create video_driver_get_st_flags
2022-10-26 22:35:04 +02:00
LibretroAdmin
e8f4268e6e
Addendum for previous commit - buildfixes for PS4 and C89 (cg)
2022-10-26 21:29:35 +02:00
LibretroAdmin
d0b3c1742d
(Video) use flags for FBO passes, GL2 renderchain, etc
2022-10-26 21:21:21 +02:00
LibretroAdmin
18639cca6e
(Win32) Create g_win32_flags - reduce amount of global booleans kept
...
around for state
2022-10-26 17:31:42 +02:00
LibretroAdmin
18ea6fa81e
Turn more boolean variables into flags for runloop
...
- Get rid of RARCH_CTL_IS_INITED, use runloop_get_flags instead
2022-10-24 18:16:00 +02:00
hunterk
a90a79fa95
revert offending function
...
fixes https://github.com/libretro/RetroArch/issues/14528
2022-10-20 06:29:04 +02:00
Colin Kinloch
8bbc4a90f3
(Wayland) Set correct app ID ( #14521 )
...
Signed-off-by: Colin Kinloch <colin.kinloch@collabora.com>
Signed-off-by: Colin Kinloch <colin.kinloch@collabora.com>
Co-authored-by: Colin Kinloch <colin.kinloch@collabora.com>
2022-10-17 00:06:27 +02:00
sonninnos
bbd6c0ae9a
Add delay to savestate notifications ( #14514 )
2022-10-15 11:29:07 +02:00
Giovanni Cascione
18b3997a15
mali_fbdev: change bools to flags ( #14508 )
2022-10-12 12:12:16 +02:00
LibretroAdmin
41de5ec80b
Cleanups for runloop_state grabbing
2022-10-10 20:32:46 +02:00
LibretroAdmin
da68e73f94
Get rid of some RARCH_CTL_ commands
2022-10-10 20:14:54 +02:00
LibretroAdmin
cc3a339011
(Runloop) Use more flags
2022-10-10 19:54:54 +02:00
LibretroAdmin
2371e5cbd2
(Runloop) Turn more bools into flags
2022-10-10 18:53:55 +02:00
LibretroAdmin
d100e73780
Use more runloop flags
2022-10-10 08:59:27 +02:00
LibretroAdmin
076a1a398c
(Runloop) Turn some boolean variables into flags
2022-10-10 04:37:17 +02:00
LibretroAdmin
2cddea21f8
* Cleanups
...
* Less pointer grabbing (dispwidget_get_ptr)
2022-10-09 22:53:39 +02:00
LibretroAdmin
d3384fd89d
Fix parameter names omitted
2022-10-09 10:25:35 +02:00
LibretroAdmin
d5a6c4f150
(content) use flags for content_state
...
(xaudio2) Use flags
2022-10-09 10:20:43 +02:00
LibretroAdmin
d506210fbe
(menu_driver.c) Use flags instead of bools ( #14500 )
...
* (menu_driver.c) Use flags instead of bools
2022-10-08 22:52:18 +02:00
Giovanni Cascione
fd2a026f96
mali_fbdev: add conditional support for gles3 ( #14494 )
2022-10-08 19:05:26 +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
f40d157571
Use flags pt3 ( #14491 )
...
* (Vulkan) Use flags for vulkan_emulated_mailbox
* Use flags for vk_texture
* dispgfx_widget - use flags instead of bools
* (Autoconfig) Use flags
2022-10-07 11:08:17 +02:00
GABO1423
df8571b3ca
(UWP) Build Fix ( #14489 )
2022-10-07 02:56:07 +02:00
LibretroAdmin
83c1e502ba
(display servers) Use flags instead of bools
2022-10-07 02:40:19 +02:00
LibretroAdmin
91119d038f
(gfx_display/gfx_animation) Use flags instead of bools ( #14488 )
...
* (gfx_display/gfx_animation) Use flags instead of bools
* (task_save) Use flags instead of bools
2022-10-07 00:10:32 +02:00
LibretroAdmin
951b98fe1b
Bools to flags ( #14486 )
...
* (D3D11) Use flags instead of bools
* (RPNG) Use flags
* Simplify rpng_is_valid
* (rpng_is_valid) Prevent potential NULL pointer dereference
(D3D11) Some whitespacing changes/code nits
* (task_pl_thumbnail_download.c) Simplify some code
2022-10-06 19:26:38 +02:00
LibretroAdmin
0bdc761adb
Buildfix for previous commit
2022-10-06 09:32:26 +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
8e9d19568c
Unload screenshot widget texture early ( #14482 )
2022-10-06 00:06:41 +02:00
sonninnos
3a0d8cbc50
(Vulkan) Fix screenshot widget crash when ticker animating ( #14475 )
2022-10-05 02:09:56 +02:00
sonninnos
4fe477ee39
Avoid 'video_gpu_screenshot' with savestates ( #14464 )
2022-10-03 15:13:01 +02:00
LibretroAdmin
7df0157af5
Fix #14460 - ./configure --enable-network_video option fails to build
2022-10-02 22:33:09 +02:00
reallibretroadmin
0033224c25
Fix some implicit conversion signedness warnings
2022-10-02 03:22:34 +02:00
libretroadmin
13ac88c9df
(Metal common) Cleanups
2022-10-01 21:41:32 +02:00
LibretroAdmin
86dccbf1d6
Buildfix
2022-10-01 18:47:41 +02:00
LibretroAdmin
ace21d28f7
Fix C++ comments
2022-10-01 17:56:16 +02:00
yesfish
c1309a34c2
Fix video_layout fbo ( #14418 )
2022-09-18 01:16:05 +02:00
LibretroAdmin
c1709f2218
(gfx_widget_load_content_animation) Get rid of strlen
2022-09-13 09:14:43 +02:00
LibretroAdmin
c5d70d49e5
(gfx_widgets_progress_message) Cut down on another strlen
2022-09-13 03:58:54 +02:00
LibretroAdmin
5e8987839e
(gfx_widgets) Cut down on strlens
2022-09-13 03:57:05 +02:00
LibretroAdmin
75757d7d02
Remove unused DXGI inline functions
2022-09-11 23:15:25 +02:00
MrHuu
1c31efaa91
(3DS) Only enable internal counter with CONSOLE_LOG defined ( #14388 )
2022-09-05 20:31:23 +02:00
LibretroAdmin
7ae555a51d
(X11/Xinerama) Style nits; slightly optimize x11_get_metrics
2022-09-05 19:44:15 +02:00
LibretroAdmin
ddeef350bd
(X11) Simplify HAVE_XF86VM code ifdefs some more
...
(CodeQL) Take out for now while it fails to build
2022-09-05 18:36:45 +02:00
LibretroAdmin
77f3e20e3c
(CodeQL) Only use 'cpp' language
...
(X11) Use HAVE_XF86VM for XFree86-VidMode X extension library
2022-09-05 18:26:08 +02:00
LibretroAdmin
84868ab21f
(Setting) Windowed scale should be an integer instead of float
2022-09-05 04:03:04 +02:00
sonninnos
c4c55077a1
Allow On-Demand Thumbnails in Explore menu ( #14385 )
2022-09-05 00:01:38 +02:00
MrHuu
835bbc6f68
(3DS) Set bottom_asset directory default ( #14376 )
...
- Fix default value while generating retroarch.cfg
- Update 'Asset not found' error message
2022-09-03 20:40:01 +02:00
LibretroAdmin
8f14143859
Don't do implicit memsets for struct timespec - always has only
...
a tv_sec and tv_nsec member field which always get set
2022-09-02 23:47:58 +02:00
LibretroAdmin
55391ac29f
Plug some more implication conversion of return value of strlen
2022-09-02 01:22:12 +02:00
LibretroAdmin
0ffdd14940
Change msg_len of font driver to size_t - avoids all the type
...
casting/conversion
2022-09-02 01:10:28 +02:00
LibretroAdmin
003cea5d42
Fix some 'implicit conversion loses precision' warnings
2022-09-01 15:15:48 +02:00
LibretroAdmin
60030e373e
Reduce snprintfs + assorted cleanups ( #14369 )
...
* Reduce snprintf and/or use them only for concatenating the
string formatting of numbers/values
* Reduce snprintfs
* Use snprintf for concatenation at parts
* * We don't need to NULL-terminate strings that get passed to strlcpy/strlcat
and friends
* Use snprintf for concatenation in certain instances
* Do away with some string intermediary copies where we can avoid it
* Fix warning unused variable
* * Reduce snprintf calls
* Rewrite snprintf calls into strlcpy where possible
* Use snprintf for concatenation when necessary
* Do away with some string intermediary copies in task_translation.c
* run_translation_service - make switch slightly smaller
2022-09-01 04:17:07 +02:00
Themaister
a058c78fd0
Attempt to fix validation errors with HDR swapchain.
...
Always use final render pass type equal to swapchain format. Use more
direct logic to expose if filter chain emits HDR10 color space or not.
2022-08-31 21:59:25 +02:00
Themaister
3a25b53175
Fix more validation errors.
2022-08-31 21:03:07 +02:00
Themaister
f508a6a87f
Fix some potential validation errors in HDR code.
2022-08-31 19:57:54 +02:00
Themaister
f9eda02a74
Fix leak of HDR UBO buffer.
2022-08-31 19:46:11 +02:00
Themaister
d6413f2a43
Automatically mark buffer/images/memory with names.
2022-08-31 19:46:11 +02:00
Themaister
d9088dd2a9
Add helpers to mark object names automatically.
...
Can be trivially extended as required.
2022-08-31 19:45:33 +02:00
Themaister
6038d503c2
Move over to VK_EXT_debug_utils.
...
Debug marker is deprecated years ago.
2022-08-31 19:45:21 +02:00
sonninnos
a96c5f77c8
(Ozone/XMB/RGUI) Explore menu thumbnails ( #14365 )
2022-08-31 14:42:10 +02:00
LibretroAdmin
56f66f68e2
Fix memory usage being shown alone
2022-08-29 21:58:36 +02:00
LibretroAdmin
8e949c516e
(video_driver_frame) Do away with a lot of string intermediary copies
...
for formatting the status text
2022-08-29 13:29:11 +02:00
LibretroAdmin
22a12c9861
vulkan_context_init_device - simplify some string concatenation
2022-08-29 12:09:40 +02:00
LibretroAdmin
e6fd2c9cdb
(Win32) Do optimization for Windows where we only update the title
...
when the previous title differs from the current title
(X11) Have to roll back the previous title optimization/less calls to XChangeProperty,
because the title is lost upon toggling between fullscreen/windowed and is no longer
set
2022-08-27 16:16:24 +02:00
LibretroAdmin
938d7c1fc4
(X11) Optimize x11_update_title - it was previously calling XChangeProperty
...
at regular intervals even when the title output for the window title had not
changed at all, now we compare it properly against the last set title, and
only if it has changed will we make the call to XChangeProperty. Also, do
away with strlen(title) calculation and use return value of
video_driver_get_window_title instead
2022-08-27 16:03:38 +02:00
LibretroAdmin
0c7408ee16
(EGL) Buildfix
2022-08-27 15:43:16 +02:00
LibretroAdmin
bbf93812a5
(EGL) Turn some EGL functions static
2022-08-27 15:35:08 +02:00
LibretroAdmin
25b76fdb54
input_keyboard_osk_event_append and others: don't call strlen
...
implicitly, always leave it up to caller
font_driver_get_message_width - try to avoid scenario where 'len'
is 0
2022-08-27 15:13:56 +02:00
LibretroAdmin
f34f4d060c
(video_shader_get_type_from_ext) remove strlen call
2022-08-27 14:29:37 +02:00
LibretroAdmin
19c72a413f
(gfx_thumbnail_path.c) Cache localized string
...
(menu_displaylist.c) Some optimizations:
* Make sure val_d is never bigger than 16, it should just
contain a number. 16 is more than plenty (and probably too big even)
* Hose val_d out of loops if its value never changes inside the loop
* Attempt to avoid calling msg_hash_to_str inside loops unnecessarily
2022-08-27 13:20:29 +02:00
LibretroAdmin
61e24132bf
(task_save.c) Simplification in control flow
...
(snprintf) Try to reduce or simplify snprintf calls, only tend to
use it for processing integers/numbers and avoid it for regular
string concatenation (NOTE: we try to be a bit safer about it to
address earlier cited criticism, although we don't consider concatenating
3 or 4 characters at the end to be insecure)
(msg_hash_to_str) Try to avoid duplicate calls to the same localized
string when we can just cache the results once instead locally
2022-08-27 07:55:02 +02:00
LibretroAdmin
a47ccd81ed
(video_shader_parse.c) Don't keep recreating formatted_num unnecessarily
...
when we already have it
2022-08-26 16:37:24 +02:00
LibretroAdmin
205b9f862f
(CTR) Buildfix/ fix typo
2022-08-26 11:49:27 +02:00
LibretroAdmin
29caa95f7e
(platform_unix.c) Use safer 'fill_pathname_join_special' for assembling
...
file path names instead of snprintf
(ctr_gfx.c) Use strlcpy instead of snprintf where possible
(ctr_gfx.c) Use snprintf instead of sprintf where possible
(ctr_gfx.c) Some general style nits
2022-08-26 10:43:42 +02:00
LibretroAdmin
1b181185c2
Simplify override_shader_values - entry variable never used
2022-08-25 08:51:55 +02:00
LibretroAdmin
88187e7ef2
* Start getting rid of strncpy
...
* steam.c - cleanups:
* Use string_to_lower from libretro-common/stdstring.c instead of
its own version
* Some stylistic changes
* Rewrite strncpy calls into strlcpy/strlcat/manual assignment
* Make it C89 compliant
* Some unused variables
2022-08-25 06:51:39 +02:00
LibretroAdmin
da13fb0f48
Don't include errno.h in files that don't justify its use
2022-08-25 05:19:30 +02:00
Cthulhu-throwaway
e45958b25a
(Network) Get rid of the timeout_enable parameter for socket_connect ( #14351 )
2022-08-25 04:40:19 +02:00
LibretroAdmin
d969facdb4
C89_BUILD buildfix
2022-08-23 19:23:53 +02:00
LibretroAdmin
c22c69e792
(gfx_animation.c) Simplify build_line_ticker_string
2022-08-23 18:26:49 +02:00
LibretroAdmin
e769436876
(word wrap functions in stdstring.c) Avoid implicit strlens, caller
...
should pass the 'length' to the function instead
2022-08-23 17:06:01 +02:00
Jamiras
85c44f9245
more thread-awareness in task callbacks ( #14337 )
...
* more thread-awareness in task callbacks
2022-08-23 15:11:11 +02:00
LibretroAdmin
6f738d4fbd
Gradually get rid of strcpy_literal
...
Reasons:
1 - Just a macro for strcpy
1.2 - doesn't have a return type unlike strlcpy, can't be used
for string concatenation
1.3 - unsafe compared to strlcpy
Do either manual string assignment per character or strlcpy, no
inbetween by resorting to strcpy
2022-08-23 15:04:47 +02:00
LibretroAdmin
e87db6f0a2
utf8cpy already does NULL termination
2022-08-23 07:52:03 +02:00
LibretroAdmin
f5e5a1b201
strlcpy already does NULL termination
2022-08-22 12:22:54 +02:00
LibretroAdmin
23b06dca69
(video_shader_parse) reduce amount of snprintfs - create
...
formatted number once then keep appending it to strings
2022-08-20 17:56:19 +02:00
MrHuu
46bafd6e46
(3DS) Add bottom menu options ( #14323 )
2022-08-17 08:23:07 +02:00
Giovanni Cascione
093432d6c4
mali_fbdev: fix assertion failed on video threaded switch ( #14316 )
...
* mali_fbdev: fix assertion failed on video thread switch
* mali_fbdev: added fallback to get refresh rate currently set
2022-08-16 22:13:43 +02:00
LibretroAdmin
59866ddac6
(video_shader_parse.c) Safer code
2022-08-12 22:09:33 +02:00
hunterk
b793169638
add credits to Cyber for their NTSC presets ( #14315 )
2022-08-12 07:31:46 +02:00
LibretroAdmin
a6e210e9db
Get rid of some strlcats
2022-08-08 22:41:32 +02:00
LibretroAdmin
a9157f975e
String cleanups ( #14304 )
...
(retroarch.c) retroarch_get_capabilities - get rid of strlcat
party in RARCH_CAPABILITIES_CPU, do simple manual assignment for
concatenation instead and NULL terminate at the end
(menu_displaylist.c) Do something about some of the unnecessarily huge
local strings of PATH_MAX_LENGTH size (can be as large as 8192)
(menu_displaylist.c) Replace some trivial strlcats / snprintfs
(D3D10/D3D11/D3D12) Strings don't need to be initialized -
strlcpy already null-terminates - get rid of some constants
2022-08-08 19:11:15 +02:00
LibretroAdmin
ba8cc5f381
Cut down on some of the strlcats
2022-08-07 00:28:13 +02:00
LibretroAdmin
94ed25be56
Cleanups ( #14296 )
...
- (database_info.c) Optimizations for database_info_build_query_enum() -
it would call strlcat at the very least 3 times, normally more than that.
Every strlcat call is at least one or more strlens. Reduce it all down
to manual string concatenation and one strlcat
- (database_info_build_query_enum) - always NULL terminates string so no need for NULL termination done by callee
* (menu_displaylist) use smaller strings for basename paths, remove one unnecessary string
in menu_displaylist.c function
- (disk_index_file.c) Avoid another trivial string concatenation by doing
it manually after fill_pathname_join_special
- (fill_pathname_join_delim) since fill_pathname_join_delim() now has a return value, use it for
string concatenation
- (platform_unix) - Use BUFSIZ as size for a buffer in system_property_get
- some other trivial strlcat usage replacements
2022-08-06 18:04:40 +02:00
Tatsuya79
72b4cf914e
Rename video filters ( #14293 )
2022-08-06 13:05:01 +02:00
LibretroAdmin
5739c537a2
Some CXX_BUILD fixes
2022-08-05 17:40:06 +02:00
LibretroAdmin
72a7b3ce07
(X11) Turn these two functions static
2022-08-05 02:00:09 +02:00
LibretroAdmin
67c23aec0e
(Wayland) Stub out unused variables for now
...
(menu_contentless_cores) Fix mistake - needed to set len to return
value of fill_pathname_join_special
(configuration.c) Fix some unused variable warnings on Linux
2022-08-04 16:19:50 +02:00
CyberLabSystems
993aaee716
Adding CyberLab custom Blargg NTSC Filter Presets ( #14231 )
...
CyberLab custom Blargg NTSC Filter Presets offer improved dedithering with less scrolling, shimmering and other artifacts than current core included Blargg NTSC Filter implementations.
They also work properly with several cores that would otherwise result in a squished image if using the Blargg NTSC SNES filters currently available in the Video Filters folder.
2022-08-04 15:44:47 +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
88bc26da4e
Replace some more trivial strlcat calls
2022-08-04 04:05:27 +02:00
LibretroAdmin
e7f3432e48
Replace some trivial strlcat usage - use return value of preceding
...
strlcpy then simply append the extension to it at this location
2022-08-04 03:45:09 +02:00
LibretroAdmin
32314eddaf
(video_crt_switch.c) Get rid of unnecessary strlen
2022-08-04 00:10:19 +02:00
LibretroAdmin
ec4c15e8e4
(gfx_widget_load_content_animation) Cleanups - one strlen instead of two,
...
NULL termination of some strings is not necessary since it gets passed to
strlcpy and/or fill_pathname_join anyway
2022-08-04 00:00:21 +02:00
LibretroAdmin
819337d5d4
video_shader_get_type_from_ext - get rid of unnecessary strlen
2022-08-03 23:35:16 +02:00
LibretroAdmin
6dd52d9bb1
Get rid of more boilerplate code in file_path_special.c
2022-08-02 18:05:51 +02:00
LibretroAdmin
7a993a5951
Count amount of characters window title has so that we can ( #14274 )
...
return the value when calling video_driver_get_window_title -
this is so we can prevent strlen calls in x11_common.c
2022-08-02 17:00:33 +02:00
LibretroAdmin
3c7fa43f29
(Windows/Linux) Fix windows title regressions
2022-08-02 16:35:50 +02:00
LibretroAdmin
9d66e2d5e1
General cleanups -
...
* struct was erroneously named 'catagory' - changed to 'category'
* Removed some strlcpys that were just setting the string to a fixed constant value
* Random nits
2022-08-01 21:31:45 +02:00
LibretroAdmin
f472e4d0de
(gfx_widgets) Call fill_pathname_application_special outside of hot functions
...
(gfx widgets) Pre-assemble and store paths that are not subject to change
2022-08-01 02:07:36 +02:00
LibretroAdmin
fdd5940951
(Font driver) render_msg function was sometimes doing two strlen
...
calculations instead of just one. NOTE/TODO/FIXME - see opportunity
to optimize this further
2022-07-31 12:59:50 +02:00
Cthulhu-throwaway
9b10579a54
(Network) Fix getaddrinfo_retro ( #14261 )
2022-07-31 11:22:28 +02:00
kikmon
afd463be16
added make clean between Release and Debug build ( #14262 )
...
Co-authored-by: papa <papa>
2022-07-31 11:22:04 +02:00
LibretroAdmin
592f9384b0
Silence code analysis warnings by Xcode - unused variables - nothing
...
done with value set - etc
2022-07-29 08:29:43 +02:00
libretroadmin
88c2ae9ddf
No null termination for strings passed to strlcpy/srlcat
2022-07-26 13:23:28 +02:00
libretroadmin
8ac1a36259
Don't do NULL termination on strings when passing to strlcpy and/or
...
a file_path function that calls strlcpy under the hood
2022-07-26 07:01:10 +02:00
libretroadmin
cedbcb10c6
Take out some more unnecessary NULL string termination
2022-07-25 14:12:54 +02:00
libretroadmin
a6a4b845a4
Some string simplifications - don't NULL terminate if we pass
...
string to strlcpy and/or a file_path function using strlcpy under
the hood - don't do strlcpy for trivial setting of 2/3 char strings
2022-07-25 04:39:08 +02:00
libretroadmin
30d38d108a
Cleanups :
...
* Don't NULL terminate string if we pass to strlcpy and/or a file_path
function that uses strlcpy under the hood
* General cleanups in gfx_animation.c
2022-07-23 00:35:57 +02:00
sonninnos
1245cbc63b
Widget color+position adjustments ( #14195 )
2022-07-22 02:36:49 +02:00
libretroadmin
4b5c7856e6
Remove some more explicit NULL-termination when we're calling a
...
string function that calls strlcpy under the hood
2022-07-19 20:43:12 +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
8f37c2e3c2
Don't call config_set_bool, call config_set_string directly
2022-07-18 01:59:32 +02:00
libretroadmin
f990fa86fa
(Freetype) Prevent potential free issue on WiiU - play it safe for
...
now until further clarified what is going on
2022-07-15 19:28:21 +02:00
libretroadmin
5e13851a7a
(Freetype) Fix severe memory leaks that happened after using FT_New_Memory_Face -
...
according to documentation note - 'You must not deallocate memory before calling
FT_Done_Face' - so store a pointer to the font data and then free it after calling
FT_Done_Face
2022-07-15 18:57:02 +02:00
libretroadmin
4b1766cf61
Silence more -Wdocumentation warnings
2022-07-15 01:12:04 +02:00
libretroadmin
37bb66ef6e
(Freetype) Fix warnings 'local variable hides a parameter of the same name'
2022-07-12 22:37:17 +02:00
libretroadmin
c4fb055fdb
Cleanups:
...
* Combine early return and assignment lines
* use path_basename_nocompression when possible
* Move variables to proper scope
2022-07-12 20:44:00 +02:00
libretroadmin
f7194e167f
use path_basename_nocompression where it is safe to do so
2022-07-12 19:14:12 +02:00
libretroadmin
b7926605f4
Remove fill_short_pathname_representation
2022-07-11 21:40:09 +02:00
libretroadmin
adf9994828
Deprecate fill_pathname_base_noext
2022-07-11 20:13:44 +02:00
libretroadmin
99ac1af9d2
(video_shader_parse)
...
* Return value of function was never used, so remove it
* Move variables to proper scope
* Miscellaneous cleanups
2022-07-11 14:00:35 +02:00