Commit Graph

25 Commits

Author SHA1 Message Date
LibretroAdmin 91aa8034b1 Style nits/conventions 2025-02-09 16:43:51 +01:00
libretroadmin 60e0dd839a iC comments 2024-07-20 17:54:44 +02:00
Eric Warmenhoven 4220e5683d
Do CRC checks on PSP/PSP(PSN) content scan (#15623) 2024-01-01 21:57:44 -08: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
twinaphex 5166eebcaf for loop cleanups - use space after 'for' 2020-08-19 03:06:22 +02:00
twinaphex cd9ca691ca (libretro-common) Update copyright 2020-01-31 15:43:42 +01:00
twinaphex 91d56bf43f (PS3) Buildfix 2019-04-21 01:39:10 +02:00
Twinaphex d6dfa240c8 Some cleanups 2019-04-08 19:36:44 +02:00
twinaphex e5b9ca5187 Silence code warnings 2018-10-21 05:43:23 +02:00
Nathan Strong dc18196844 get rid of TODO 2018-10-18 16:44:30 -07:00
Nathan Strong d03c0be71d Rewrite file hasher to limit amount hashed
== DETAILS
Since the content file could potentially be huge, hashing the
whole thing at runtime may take a really long time. Plus, it
was loading the whole file into RAM at once.

Now, we only load 1MB at a time and hash up to the first 64MB.

== TESTING
I don't have any large content files to test it with, but I
tested it with a small one and confirmed that the hash was
correct.
2018-10-18 16:38:02 -07:00
Nathan Strong edacf67e75 Capture CRC content for deferred-loading cores
== DETAILS

Fixes a bug where content CRC32 is not calculated when content loading
is done by the core instead of libretro. This impacts the ability to
do accurate content matching on netplay.

This notably affects MAME, but is by no means limited to MAME.

Change summary:
- adds a method to the crc32 implementation that calculates crc32 for
  a file (as opposed to an in-memory buffer)
- fix a minor bug that would print the "core will load its own content"
  right before attempting to load compressed content
- in the actual "core will load its own content" path, calculate the CRC32
  and log it before returning

== TESTING
Tested locally on OSX:
- loaded content
- started netplay
- confirmed CRC showing in netplay data
- verified CRC32 against external crc32 tool
2018-10-18 11:26:45 -07:00
twinaphex 768ebbfdb5 Merge commit 'ce9ce1d35387ef8144e53bf071396fa075bfb6c5' as 'libretro-common' 2018-05-12 17:56:34 +02:00
twinaphex 0548349991 Remove libretro-common 2018-05-12 17:56:14 +02:00
twinaphex be7eb4de1c Update libretro-common 2018-04-16 08:57:17 +02:00
Brad Parker ac949a14bf msvc2003 buildfixes 2017-09-07 02:02:43 -04:00
twinaphex 64bb848daf Update headers (pt. 2 - libretro-common) 2017-01-22 13:58:20 +01:00
twinaphex 4a39d98bbd Nit 2016-09-18 19:06:22 +02:00
Alcaro b7526e9c61 Kill spaghetticode, no reason to re-roll an unrolled loop like that. 2016-09-18 19:05:06 +02:00
twinaphex 7da0c4fa46 Avoid these macros 2016-09-18 19:00:39 +02:00
twinaphex 64ea2256e5 Add undef preprocessor statements 2016-09-18 18:58:35 +02:00
twinaphex b432842b37 Uniquely name static variable 2016-09-18 18:57:18 +02:00
Alcaro 5d2c0ba04f buh, stupid headers 2016-09-18 18:21:43 +02:00
Alcaro 62ecce7644 Fix weird types and other legacy leftovers 2016-09-18 18:09:16 +02:00
twinaphex 91f7efc62d Add encoding_crc32 2016-09-18 17:22:12 +02:00