Commit Graph

16 Commits

Author SHA1 Message Date
Vas Crabb ab6a4f1b94 plugins/data: Use local sqlite3 library variable. 2023-03-13 05:51:22 +11:00
npwoods 13910382a5
osd/modules/file: Don't magically substitute environment variables when opening files. (#9859)
* util/options.cpp: Added option types for single and multiple paths.
* util/options.cpp: Substitute environment variables in values from defaults and INI files.
* ui/dirmenu.cpp: Removed hard-coded list of multi-path options.
* plugins: Don't substitute environment variables in path options.
2022-12-17 06:03:59 +11:00
Vas Crabb 923ef2c25d -plugins.data: Reworked the code substantialy.
* Use the plugin data folder for storing the cache.  The history folder
  may be read-only or shared with different configurations.
* Don't create the cache database or surrounding folder if there's
  nothing to store in it.
* Actually use prepared queries multiple times rather than always
  destroying them after a single use.
* Added proper error checking for most database operations.
* Improved query performance by avoiding outer joins and table scans.

-bus/nubus: Made the Macintosh Display Cards map the blue channel to
 white with monochrome monitors.  Also added logging for PLL
 configuration to help debug how CRTC and RAMDAC clocks work in the
 future.
2022-06-25 04:57:24 +10:00
Vas Crabb d775a2731d plugins: Moved the timecode recording functionality to a plugin. 2021-11-02 15:31:03 +11:00
Vas Crabb fab84e8d2b Mostly revert "Create console history file in homepath (#8026)"
The change to make the console plugin work is preserved.

This reverts commit 25137717c9.
2021-05-07 02:14:05 +10:00
Szunti 25137717c9
Create console history file in homepath (#8026)
* Fix console history path, homepath is a core option

* Create missing directories recursively in lua plugins.

* Add lfs to global environment in a less magical way.

require normally doesn't bind the name globally just returns the
module, mame sets a preloader that does bind lfs globally, but
maybe it's less surprising to do it explicitly
2021-05-03 20:40:10 -04:00
Vas Crabb 9e36b6a6d9 More Lua interface cleanup - it's simpler with cleaner underlyng APIs.
Made the sound manager mute controls readable, and got rid of system
enable since it just controls system mute anyway.  This was causing
confusion: phantom2 was trying to use both independentlyt casuing the
mute bit to be ignored.

THe Lua interface changes are mostly changing methods to properties,
some renames to make things clearer, and some additional properties for
better control over snapshots.
2020-12-27 01:32:37 +11:00
AJR e70d4ebb34 plugins: Replace environment variable substitution function with core version 2020-12-08 09:44:32 -05:00
Vas Crabb ac79c90607 srcclean (nw) 2018-04-22 09:24:13 +10:00
cracyc 71f9ff71d1 plugins/data: require returns true if package returns nil (nw) 2018-03-29 15:00:47 -05:00
cracyc 31be84ea40 plugins/data: give up if the database can't be created (nw) 2018-03-20 21:54:22 -05:00
cracyc 380bff2202 plugins/data: don't pollute the namespace and use emu.print_error (nw) 2018-01-14 08:39:37 -06:00
firewave 7da4d2dfc6 plugins/data: added reporting of database errors (nw) 2018-01-14 12:09:06 +01:00
Oliver Stöneberg f911ab2869 plugins/data: fixed table lookup (nw) 2018-01-13 19:37:04 -06:00
cracyc e94b4d2bac plugins/data: fix spelling (nw) 2018-01-12 16:27:14 -06:00
cracyc 83adc109e7 plugins/data: add marp scores [Carl] 2017-07-30 21:33:23 -05:00