270 Commits

Author SHA1 Message Date
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