diff options
author | 2022-06-25 04:57:24 +1000 | |
---|---|---|
committer | 2022-06-25 04:57:24 +1000 | |
commit | 923ef2c25db75ccb6a6d747304fc9c79ef454a46 (patch) | |
tree | 1a53bc7898adc2a7015a5a9e208c5df8cb024023 /plugins/data/data_gameinit.lua | |
parent | 2f453da00cab66472bde7bc40ca22ce7f4b89e74 (diff) |
-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.
Diffstat (limited to 'plugins/data/data_gameinit.lua')
-rw-r--r-- | plugins/data/data_gameinit.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/data/data_gameinit.lua b/plugins/data/data_gameinit.lua index 31e659325c4..f6856629bb8 100644 --- a/plugins/data/data_gameinit.lua +++ b/plugins/data/data_gameinit.lua @@ -1,19 +1,19 @@ local dat = {} -local ver, info -local datread = require("data/load_dat") -datread, ver = datread.open("gameinit.dat", "# .-GAMEINIT.DAT") +local ver, info +local datread = require('data/load_dat') +datread, ver = datread.open('gameinit.dat', '# .-GAMEINIT.DAT') function dat.check(set, softlist) if softlist or not datread then return nil end local status - status, info = pcall(datread, "mame", "info", set) + status, info = pcall(datread, 'mame', 'info', set) if not status or not info then return nil end - return _p("plugin-data", "Gameinit") + return _p('plugin-data', 'Gameinit') end function dat.get() |