Commit Graph

20 Commits

Author SHA1 Message Date
jdgleaver
c37f540b72 Core Info Cache Improvements
- Core info cache can now be enabled/disabled on all platforms via a new `Settings > Core > Cache Core Info Files` option
- Core info cache file has been renamed from `.cache` to `core_info.cache` (i.e. it is no longer a 'hidden' file on Unix platforms, so can be deleted easily)
- The core info cache file is now compressed (rzip) to further reduce disk IO
- The presence of a `core_info.refresh` file in the core info directory will force a one-time refresh of the info cache. This file is generated automatically when toggling on the `Cache Core Info Files` option, and we will also add it to core info file packaging such that updating info files (either manually or via the online updater) will force a refresh
- The core info cache no longer contains 'core is locked' and 'firmware missing' data fields; these are 'dynamic' properties that must be determined at runtime
- The 'core is locked' status is now determined on core info intialisation by parsing the core directory listing, rather than by performing indivdual 'lock file exists' checks. This minimises file IO, and greatly improves performance on devices with slow storage
- While parsing the core info cache file, we now avoid unnecessary `strdup()`s when adding entries to the resultant cache list
- Memory leaks (potential and real) have been fixed, and safety checks added
- Build errors have been fixed
2021-05-06 15:00:55 +01:00
schellingb
ba1ed2da4b New faster json parser/writer library rjson
Replace existing libraries jsonsax_full and jsonsax with it
2020-10-12 03:02:20 +09:00
twinaphex
772ed15d88 Remove file_path_str from Salamander 2020-08-22 13:42:57 +02:00
twinaphex
df8f93e9d5 Split up VFS file_path code into separate file 2020-01-09 15:44:48 +01:00
twinaphex
278dc75285 (tasks) Fix samples 2020-01-04 12:07:58 +01:00
Brad Parker
6154371692 use threads for command-line scanner if available 2019-05-21 22:53:36 -04:00
Brad Parker
f9a8c617ce add pthread for command-line scanner when platform is not windows 2019-05-21 22:41:17 -04:00
twinaphex
6c1310ca06 (database task standalone) Add HAVE_THREADS 2019-05-22 04:28:11 +02:00
Brad Parker
388a931f95 improve Makefile for standalone scanner 2019-05-21 18:33:07 -04:00
twinaphex
98b7a21c42 (task database standalone) Add 7zip and zlib support 2019-05-22 00:18:25 +02:00
twinaphex
1a1418ccfb (Samples) tasks/database - should work again 2019-05-21 22:38:50 +02:00
orbea
28ff4b391a Clean up white space. 2019-02-03 16:00:50 -08:00
twinaphex
5697a24946 (samples/tasks/database) Define -DHAVE_COMPRESSION 2018-04-10 05:28:58 +02:00
twinaphex
25ab35b7d0 (samples/tasks/database) Add hardcoded extensions for OSX 2018-04-10 05:26:47 +02:00
twinaphex
639152e291 Hardcode exts for now - we assume this standalone program will
only be used on Windows/OSX/Linux systems for now
2018-04-10 05:20:19 +02:00
twinaphex
c24179dc63 Scanning should now work in standalone program 2018-04-10 05:16:33 +02:00
twinaphex
d66b8fa882 Start implementing main function 2018-04-10 04:53:12 +02:00
twinaphex
00cc4ca7aa (samples) Gets close to linking now 2018-04-10 03:53:46 +02:00
twinaphex
7ccecc80c1 Update samples/tasks/database 2018-04-10 02:43:35 +02:00
twinaphex
908de15e7b Start adding samples - not done yet 2018-04-09 22:12:59 +02:00