Commit Graph

62 Commits

Author SHA1 Message Date
Eric Warmenhoven 4220e5683d
Do CRC checks on PSP/PSP(PSN) content scan (#15623) 2024-01-01 21:57:44 -08:00
libretroadmin 7ebab640d7 Cleanups/style nits 2023-02-23 13:15:14 +01: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
LibretroAdmin 107c69ab9e (libretro-common) More documentation refinement 2022-08-01 11:03:58 +02:00
libretroadmin 0e85113eb3 (libretro-common) Style nits/cleanups 2022-07-10 18:13:49 +02:00
Cthulhu-throwaway 77e202fbf7 Base64 cleanup
Base64 header cleanup.
2021-12-20 14:54:41 +01:00
twinaphex 11719badcb Simplify mb_to_mb_string_alloc 2020-08-29 05:21:48 +02:00
twinaphex 5166eebcaf for loop cleanups - use space after 'for' 2020-08-19 03:06:22 +02:00
twinaphex 1ae20ea17c Style nits - turn macro names into upper-case - some while style nits 2020-06-26 20:00:19 +02:00
twinaphex cd9ca691ca (libretro-common) Update copyright 2020-01-31 15:43:42 +01:00
Barry Rowe 8745333892 OCR Translation feature finaliziation. (#8738) 2019-05-11 07:15:39 +02:00
twinaphex 5c3d340e01 (UTF) Small optimizations 2019-04-27 00:46:26 +02: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
twinaphex 956f869974 (360) Fix Salamander build 2018-01-03 12:14:08 +01:00
twinaphex 1932513edb Update libretro-common 2017-12-15 00:31:37 +01:00
gblues 6904101c44 Clean up trailing whitespace
== DETAILS

Really simple code cleanup, because my editor flags trailing whitespaces
and it's pretty annoying.
2017-12-12 00:24:18 -08:00
Brad Parker 812a99e5ca utf: fallback to ANSI codepage on windows if UTF8 conversion isn't available 2017-12-09 14:35:58 -05:00
Brad Parker 3318cd969b win95: fallback to strdup when MultiByteToWideChar fails (it only works with MSLU) 2017-12-09 14:26:46 -05:00
twinaphex e5d4e2ac0a Silence a lot of warnings 2017-11-06 19:13:54 +01:00
Twinaphex 5136ec2df0 Updates 2017-11-06 05:37:32 +01:00
bparker06 b0f8a570b5 encoding_utf: Fix coverity warnings, extra error checking 2017-10-19 17:24:35 -04:00
Brad Parker 1b1d5c468d win32: use unicode functions for file IO if supported 2017-10-15 17:41:34 -04:00
Brad Parker ac3b7bc4cc windows.h already includes stringapiset for us 2017-10-15 10:16:19 -04:00
Twinaphex e86e237ed7 Merge pull request #5552 from bparker06/win32_file_encoding
win32: support local multibyte encoding for file paths
2017-10-15 13:07:18 +02:00
Brad Parker 338723bc31 fix some null pointer accesses with empty strings 2017-10-15 00:39:55 -04:00
Brad Parker a7c8cc88e5 win32: support local multibyte encoding for file paths 2017-10-14 23:13:24 -04:00
twinaphex 0800047258 (Xbox) Buildfixes 2017-09-12 23:44:05 +02:00
Brad Parker ac949a14bf msvc2003 buildfixes 2017-09-07 02:02:43 -04:00
aliaspider 9b1e66d302 correct the mask used on the first byte in utf8_walk. fixes #4892 2017-05-11 17:41:27 +01:00
twinaphex 64bb848daf Update headers (pt. 2 - libretro-common) 2017-01-22 13:58:20 +01:00
twinaphex 4fb6808321 libretro-common is MIT and we don't want individual copyright
per authors here; RetroArch is GPL and it's fine there
2016-10-27 19:52:58 +02:00
Brad Parker d1d5584d18 update copyright 2016-10-27 11:47:10 -04:00
twinaphex 13cf804a70 Fix signed/unsigned mismatch warnings 2016-09-30 08:23:24 +02: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
twinaphex 870182cd88 Turn into static function 2016-09-18 16:55:56 +02:00