twinaphex
f454665be2
Optimize config_file_exists
2020-08-25 18:10:32 +02:00
twinaphex
2c0fb6ff6c
config_file_parse_line - put sub_conf on stack
2020-08-25 17:54:22 +02:00
twinaphex
6a88b3f20e
Cleanup strlen_size
2020-08-25 17:24:03 +02:00
Autechre
ed6f32fd80
Merge pull request #11240 from jdgleaver/string_list-safety
...
(string_list) Add checks to prevent undefined behaviour
2020-08-25 16:59:22 +02:00
jdgleaver
179e77c8b0
(string_list_join_concat) Prevent undefined behaviour if input string buffer is unterminated
2020-08-25 15:54:18 +01:00
twinaphex
79c8a94857
(config_file.c) config_set_string - simplify
2020-08-25 15:50:26 +02:00
twinaphex
7771dbd594
Rename config_file_new_internal to config_file_load_internal
2020-08-25 15:36:26 +02:00
twinaphex
cd0a27680a
(config_file.c) Cleanup
2020-08-25 15:34:11 +02:00
twinaphex
5a69e6e75c
Simplify config_file.c code
2020-08-25 15:29:45 +02:00
twinaphex
ce185d8be6
(DSP IIR) Prevent '-Wmaybe-uninitialized' warnings
2020-08-25 13:21:22 +02:00
twinaphex
b7b96fb142
(config_file) Cleanups
2020-08-25 12:39:28 +02:00
twinaphex
f18af41876
Cut down on add_sub_conf
2020-08-25 12:29:08 +02:00
twinaphex
1e5ccb7319
Create config_file_get_realpath
2020-08-25 12:20:09 +02:00
twinaphex
74a3e5be8a
Simplify is_path_accessible_using_standard_io
2020-08-24 23:41:10 +02:00
twinaphex
42a3d433dc
Restore this code
2020-08-24 23:25:57 +02:00
twinaphex
ceca44b233
Cleanup config_initialize_internal
2020-08-24 23:09:55 +02:00
twinaphex
88f01c51a7
(config_file) Cleanups
2020-08-24 22:57:08 +02:00
twinaphex
b681b2af49
config_set_string: simplify
2020-08-24 21:25:55 +02:00
twinaphex
a954118faf
(config_file) Cleanups
2020-08-24 21:16:25 +02:00
twinaphex
4f29bef56e
(config_file) Cleanups
2020-08-24 21:11:41 +02:00
twinaphex
150e96144a
Cleanup
2020-08-24 20:40:49 +02:00
twinaphex
dd13e6b044
(config_file.c) Use snprintf
2020-08-24 19:39:41 +02:00
twinaphex
24910b6999
(config_file) Simplify config_sort_compare_func
2020-08-24 19:29:24 +02:00
twinaphex
8a479e6006
Create dir_list_initialize/dir_list_deinitialize
2020-08-24 18:56:25 +02:00
twinaphex
cde5d37eb2
Put this behind RPNG_TEST
2020-08-24 18:17:47 +02:00
twinaphex
91cfcd1b83
Improve string_list_deinitialize
2020-08-24 15:11:38 +02:00
twinaphex
2452769a80
Cleanup
2020-08-24 14:20:46 +02:00
twinaphex
64f8a5990c
Create fifo_initialize/fifo_deinitialize
2020-08-24 12:17:33 +02:00
twinaphex
9caf3080b1
Cleanup
2020-08-24 12:06:56 +02:00
twinaphex
71708f8ddd
(libretro-common) Add msg_queue_initialize/msg_queue_deinitialize
2020-08-24 12:04:56 +02:00
twinaphex
7a6b9fd1b2
(Ozone) Horizontal list - put on stack - it's already on heap-allocated
...
struct as is
2020-08-24 10:22:32 +02:00
twinaphex
93fa9a0194
Add file_list_deinitialize - does everything that file_list_free
...
does except for freeing the passed struct pointer
2020-08-24 01:45:45 +02:00
twinaphex
0a69d14b11
Reimplement slang_preprocess_parse_parameters
2020-08-24 00:54:24 +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
Alcaro
e4022ab416
libretro.h: Fix contradictory comment
...
retro_get_system_info() says it can be called even before retro_init(), which means retro_deinit() doesn't need to be called at all. Mentioning deinit() in the struct definition is misleading and incorrect.
2020-08-23 18:29:12 +02:00
Twinaphex
a175af4e6a
Cleanup some unused variables
2020-08-22 18:04:34 +02:00
twinaphex
503131de66
(RPNG) Cleanups
2020-08-22 17:37:34 +02:00
twinaphex
f4432acd06
(RPGN) Cleanups to IHDR code
2020-08-22 17:34:13 +02:00
twinaphex
73ed02b5f6
(RPNG) Cleanup read_chunk_header
2020-08-22 17:18:32 +02:00
twinaphex
d6f22a7a4c
(RPNG) Simplify png_process_ihdr
2020-08-22 16:28:50 +02:00
twinaphex
c7cf9d6df7
(RPNG) Simplify rpng_start
2020-08-22 16:11:54 +02:00
twinaphex
5cc4d0da0f
(RPNG) Make sure we don't use stdio/fprintf unless DEBUG is defined
2020-08-22 16:07:03 +02:00
twinaphex
deafd70934
(RPNG) More simplifications - get rid of png_chunk struct, just pass
...
uint32_t around to function
2020-08-22 15:37:21 +02:00
twinaphex
91345fe867
(RPNG) read_chunk_header - simplify code some more
2020-08-22 15:34:32 +02:00
twinaphex
8b5b472a2d
Optimize read_chunk_header
2020-08-22 14:24:11 +02:00
twinaphex
2e6b87d156
Simplify rpng.c - read_chunk
2020-08-22 14:20:50 +02:00
twinaphex
99873ccd8a
Reorder structs, alignment
2020-08-21 09:57:11 +02:00
twinaphex
5a8da81d07
Simplify string_set
2020-08-20 19:12:38 +02:00
twinaphex
cb0a193eea
Fix RPNG build failure
2020-08-19 18:20:55 +02:00
twinaphex
dff52d8688
Revert "(audio conversion) Optimize array accesses"
...
This reverts commit 8613ece7f55ba7528e9ebc9b30791a40f5c431be.
2020-08-19 18:18:02 +02:00