mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
Added uismall.bdc and way to load it for those that wish to use it still (nw)
This commit is contained in:
parent
593803fb48
commit
7cd40eb58d
3 changed files with 20 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -31,6 +31,7 @@
|
|||
!/makefile
|
||||
!/mame.doxygen
|
||||
!/*.md
|
||||
!/*.bdc
|
||||
!/LICENSE
|
||||
/.idea
|
||||
regtests/chdman/temp
|
||||
|
|
|
@ -133,6 +133,24 @@ render_font::render_font(render_manager &manager, const char *filename)
|
|||
// if this is an OSD font, we're done
|
||||
if (filename != nullptr)
|
||||
{
|
||||
// attempt to open the cached version of the font
|
||||
{
|
||||
emu_file cachefile(manager.machine().options().font_path(), OPEN_FLAG_READ);
|
||||
osd_file::error filerr = cachefile.open(filename);
|
||||
if (filerr == osd_file::error::NONE)
|
||||
{
|
||||
// if we have a cached version, load it
|
||||
bool result = load_cached(cachefile, 0);
|
||||
|
||||
// if that worked, we're done
|
||||
if (result)
|
||||
{
|
||||
render_font_command_glyph();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
m_osdfont = manager.machine().osd().font_alloc();
|
||||
if (m_osdfont)
|
||||
{
|
||||
|
|
BIN
uismall.bdc
Normal file
BIN
uismall.bdc
Normal file
Binary file not shown.
Loading…
Reference in a new issue