-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RPI4 accelerated video settings.txt DKStart5 plugin now increments levels when practising single boards
- Loading branch information
Showing
33 changed files
with
4,381 additions
and
258 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ distributions. | |
|
||
|
||
MAME | ||
Copyright (c) 1997-2021 MAMEdev and contributors | ||
Copyright (c) 1997-2022 MAMEdev and contributors | ||
|
||
This program is free software; you can redistribute it and/or modify it | ||
under the terms of the GNU General Public License version 2, as provided | ||
|
@@ -238,7 +238,7 @@ can include it to GNU GPL or GNU LGPL code. | |
|
||
|
||
AsmJit - a lightweight library for machine code generation. | ||
Copyright (c) 2008-2020 The AsmJit Authors | ||
Copyright (c) 2008-2021 The AsmJit Authors | ||
|
||
Nano SVG - Simple stupid SVG parser | ||
Copyright (c) 2013-14 Mikko Mononen [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// license:BSD-3-Clause | ||
// copyright-holders:Vas Crabb | ||
/*************************************************************************** | ||
language.cpp | ||
Multi-language support. | ||
***************************************************************************/ | ||
|
||
#include "emu.h" | ||
#include "language.h" | ||
|
||
#include "emuopts.h" | ||
#include "fileio.h" | ||
|
||
#include "corestr.h" | ||
|
||
#include <string> | ||
|
||
|
||
void load_translation(emu_options &m_options) | ||
{ | ||
util::unload_translation(); | ||
|
||
std::string name = m_options.language(); | ||
if (name.empty()) | ||
return; | ||
|
||
strreplace(name, " ", "_"); | ||
strreplace(name, "(", ""); | ||
strreplace(name, ")", ""); | ||
emu_file file(m_options.language_path(), OPEN_FLAG_READ); | ||
if (file.open(name + PATH_SEPARATOR "strings.mo")) | ||
{ | ||
/* 10yard - suppress the translation error display | ||
osd_printf_error("Error opening translation file %s\n", name); | ||
return; | ||
*/ | ||
} | ||
|
||
osd_printf_verbose("Loading translation file %s\n", file.fullpath()); | ||
util::load_translation(file); | ||
} |
Oops, something went wrong.