libretroadmin
6b21ad6f53
(libretro-db) Simplifications/cleanups
2023-02-19 05:27:43 +01:00
libretroadmin
66ad277dc1
(libretro-db) Simplifications
2023-02-19 05:18:41 +01:00
libretroadmin
e65f273065
(libretro-db) Style/code nits
2023-02-19 04:54:47 +01:00
libretroadmin
91b7445bda
(libretro-db) Cleanups
2023-02-18 18:13:52 +01:00
libretroadmin
2d48cbaec6
(libretro-db) Cleanups/style nits
2023-02-18 18:04:55 +01:00
libretroadmin
6624126885
(MSVC) silence warnings
2023-02-18 17:04:23 +01:00
libretroadmin
b04a926170
(libretro-db) Further cleanups
2023-02-17 17:49:36 +01:00
libretroadmin
1dcf3b328a
(libretro-db) Cleanups
2023-02-17 16:43:00 +01:00
LibretroAdmin
a1f5a03551
(libretrodb) Replace strncpy
2022-08-25 08:32:02 +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
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
TheRetroPirate
28145abde9
forgot to include the changes for the c_converter to include the metadata in the rdb files
2022-03-15 05:51:20 +01:00
sonninnos
ca311246b1
C89 buildfix
2021-08-24 22:32:47 +03:00
Autechre
e5dc368e20
Merge pull request #12735 from schellingb/rmsgpack_fixwrapintwrite
...
libretro-db fix writing of numerical values
2021-08-04 15:08:14 +02:00
Bernhard Schelling
9956ff041e
Fix libretro-db loading on big endian platforms
...
Wrong casting did read garbage data for numerical values on big endian platforms.
Numerical values are used for array/map lengths so this could easily cause random crashes during parsing but also later while using the data.
Use union to avoid strict aliasing warnings.
2021-08-04 01:20:25 +09:00
Bernhard Schelling
2d1a657ba8
libretro-db fix writing of numerical values
...
Correctly write map lengths between 16 and 65535 to just 2 bytes and not 4.
Fix writing of numerical values between -31 and -1.
Fix writing of numerical values less than 256 on big endian platforms.
2021-08-04 01:15:21 +09:00
Rob Loach
d279246db3
libretro-db: hash.c is now lrc_hash.c
...
🤷
2021-03-12 11:47:42 -05:00
Daniel De Matteis
1ece33337c
(Mac) More warning fixes
2021-01-26 21:21:51 +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
783bcb7a61
Avoid printf/puts
2020-09-28 03:17:21 +02:00
twinaphex
c744baeb89
Add ctype variants to stdstring and use it in RA
2020-09-27 22:15:32 +02:00
twinaphex
f1432db433
Cleanup
2020-09-27 20:44:31 +02:00
twinaphex
e9e25aae7d
res.val.bool_ was being set a second time to 0 unnecessarily
2020-09-27 20:41:02 +02:00
twinaphex
edf8fd99c7
(libretro-db) query.c - get rid of strlen call in query_peek
2020-09-27 20:38:08 +02:00
twinaphex
b829c7c1f8
(libretro-db) Cleanups - get rid of some goto labels, simplify one
...
conditional
2020-09-27 20:21:54 +02:00
twinaphex
5668a1da78
Turn this into global constant
2020-09-20 22:47:38 +02:00
twinaphex
1296fc4745
use strlcpy_literal for string literal copies
2020-09-19 23:28:01 +02:00
twinaphex
5166eebcaf
for loop cleanups - use space after 'for'
2020-08-19 03:06:22 +02:00
twinaphex
f934aaa78d
Reordre structs, alignment
2020-08-15 18:42:27 +02:00
twinaphex
67913127ef
Some struct reordering
2020-08-14 14:35:43 +02:00
Twinaphex
faa468d87f
Get rid of unused variables
2020-08-04 04:07:42 +02:00
twinaphex
77cf0ad524
(libretro-db) Small cleanups
2020-08-03 17:13:54 +02:00
twinaphex
1f0529a275
(libz) Silence some warnings - use INT64_C/UINT64_C
2020-07-29 04:41:13 +02:00
twinaphex
a3c1d4ac98
(query.c) Cleanups
2020-07-05 04:21:27 +02:00
twinaphex
c1634914d6
(libretro-db) Cleanup
2020-07-05 02:52:56 +02:00
twinaphex
69b457a427
(libretro-db) Pass tmp_error_buff around to other functions
2020-07-05 02:50:46 +02:00
twinaphex
5e3b353987
(libretro-db) Avoid callocs when possible
2020-06-26 20:24:05 +02:00
Rob Loach
705cfe9e82
Fix rtime in db-converter compilation
2020-06-20 17:15:07 -04:00
twinaphex
685948368e
(libretro-db) Should fix buffer overflow - should fix Database
...
Information and Scan folder/File with GCC 10
2020-06-14 18:03:00 +02:00
twinaphex
110339c1cc
(libretro-db) Add TODO/FIXME notes
2020-06-05 18:13:25 +02:00
Rob Loach
16aac7bfac
libretro-db: Fix stdstring undefined in c_converter
2020-05-27 18:34:47 -04:00
gordon-fish
71c12aab32
Fix to correctly set header.metadata_offset
...
This fix will correctly set ``header.metadata_offset`` in ``libretrodb_create`` instead of always setting it to zero.
The main problem was using ``filestream_seek`` when ``filestream_tell`` should be used to get the actual offset.
See issue #10140
2020-02-28 07:46:07 -08:00
twinaphex
8627d638e1
Cleanups
2020-02-04 06:05:00 +01:00
twinaphex
f785e4b045
Replace while (1) with for (;;) - avoids MSVC warnings
2020-01-30 16:15:52 +01:00
twinaphex
df8f93e9d5
Split up VFS file_path code into separate file
2020-01-09 15:44:48 +01:00
ZornTaov
450feb46cc
Update libretro-db/README.md
...
Looking through libretro-db/query.c I discovered the b prefix to strings that turns the string into binary, this is useful for searching up hexadecimal hashes. This information was not described in the documentation, so I've added it before the Names only search to group with the other find commands, though it will work with get-names as well.
2019-07-18 14:02:17 -07:00
Rob Loach
03d0462fa4
libretrodb: Update the whitespace
2019-06-25 01:24:46 -04:00
Rob Loach
1015c0cd08
docs: Fix libretro-db docs
...
The correct git URL is https://github.com/libretro/libretro-super.git
2019-06-23 16:57:47 -04:00
twinaphex
3e72c502a8
strlen optimizations :
...
- use STRLEN_CONST for constant strings, translates to sizeof
which should be computed at compile-time
- found some places where we are needlessly calling strlen two
times instead of just once
2019-04-27 04:21:10 +02:00
orbea
28ff4b391a
Clean up white space.
2019-02-03 16:00:50 -08:00