Commit Graph

25 Commits

Author SHA1 Message Date
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
751c2806bf Re-generated translations for I/O port names.
Trying to collect messages from everything at once hits some limit in
xgettext and causes messages to be lost no, so I've split it up by the
second-level source directories.

For some reason xgettext thinks overloaded Lua functions are blasphemy,
so that has to be worked around, too.
2021-10-11 15:02:55 +11:00
Vas Crabb
38082ccbee
Overdue internal UI enhancements (#8674)
* frontend: Added support for message context to localisations.
* frontend: Added string_view versions of the message lookup functions.
* frontend: Added a few more folder options to the internal UI.
* emu/softlist.cpp: Use more appropriate containers.
* Switched to Python 3 by default - this will become a requirement.
* Updated msgfmt.py for message context support.
* frontend: Show all software item info in the internal UI.
* frontend: Search alternate titles in software selection menu.
* 3rdparty/utf8proc: Updated to v2.6.1 (has several fixes).
* frontend: Added software filters for common info fields.
* frontend: Allow UI manager to hold onto persistent session data.
* frontend: Cache software lists for eight machines.
* frontend: Added support for loading localised system names.
* frontend: Add UI for selecting localised system names.
2021-10-09 12:16:17 +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
cracyc
9c4d1457da plugins: add emu.plugin table to contain plugin exported interfaces 2020-09-13 10:00:54 -05:00
cracyc
a0a658a111 fix various things. checkpointed the alphatpc16, will credit before next release (nw) 2020-02-11 17:04:36 -06:00
npwoods
d4cb1ba742 LUA boot.lua file now handles multiple paths (delimited by semicolons)
on -pluginspath
2019-07-25 13:19:43 -04:00
npwoods
aac4e79d4b Refactored MAME's plugin system 2019-07-24 07:21:06 -04:00
cracyc
7e75ba4bfa luaengine: translation support [Carl] 2017-09-04 10:12:21 +10:00
Vas Crabb
f5356a62de srcclean on lua plugins, too 2016-08-30 15:53:27 +10:00
cracyc
0184946dd8 boot.lua: only load plugins in plugin path (nw) 2016-07-24 14:44:38 -05:00
cracyc
fa6bd37265 plugins/cheatfind: add operand size to simple cheat and write cheats from cheatfind into simple file (nw) 2016-07-14 14:57:47 -05:00
cracyc
72a499b54a plugin path expansion (nw) 2016-07-09 15:11:30 -05:00
cracyc
0522e44d2f boot.lua: make pluginspath apply here too (nw) 2016-05-26 17:24:56 -05:00
Miodrag Milanovic
3fc8cfd679 fix lua issue (nw) 2016-04-23 17:08:59 +02:00
Miodrag Milanovic
fc48cb17f3 added print_verbose, print_info, print_debug and print_error to lua, and used it instead of print (nw) 2016-04-16 18:01:48 +02:00
Miodrag Milanovic
f329db261f Populate plugins structures and start marked plugins (nw) 2016-03-25 08:42:30 +01:00
Miodrag Milanovic
ef86ee6cec added hiscore plugin (disabled for now) (nw) 2016-03-22 16:19:15 +01:00
Miodrag Milanovic
fafeeb095a put license for plugins (nw) 2016-03-05 11:18:08 +01:00
Miodrag Milanovic
2d8aa85227 fix lua script on boot (nw) 2016-03-05 07:56:50 +01:00
Miodrag Milanovic
686ba42466 Added plugin info json files and made system automatically load available plugins and start them if flagged so (nw) 2016-02-14 19:48:44 +01:00
Miodrag Milanovic
ccae0382bb Added plugins and boot.lua as startup script [Miodrag Milanovic] 2016-02-14 10:58:18 +01:00