mirror of
https://github.com/holub/mame
synced 2025-06-30 07:58:56 +03:00
Miscellaneous fixes:
* docs: Added option for Wayland support to compiling guide. * docs: Clarified behaviour of memory region read/write methods. * Fixed some editing errors in Turkish UI translation. * Added some parentheses on ternary conditional operators for clarity.
This commit is contained in:
parent
4d56a31755
commit
fccbed7657
@ -567,6 +567,9 @@ NO_USE_PORTAUDIO
|
|||||||
NO_USE_PULSEAUDIO
|
NO_USE_PULSEAUDIO
|
||||||
Set to **1** to disable building the PulseAudio sound output module on
|
Set to **1** to disable building the PulseAudio sound output module on
|
||||||
Linux.
|
Linux.
|
||||||
|
USE_WAYLAND
|
||||||
|
Set to **1** to include support for bgfx video output with the Wayland
|
||||||
|
display server.
|
||||||
USE_TAPTUN
|
USE_TAPTUN
|
||||||
Set to **1** to include the tap/tun network module, or set to **0** to
|
Set to **1** to include the tap/tun network module, or set to **0** to
|
||||||
disable building the tap/tun network module. The tap/tun network module is
|
disable building the tap/tun network module. The tap/tun network module is
|
||||||
|
@ -421,16 +421,20 @@ Methods
|
|||||||
|
|
||||||
region:read_i{8,16,32,64}(offs)
|
region:read_i{8,16,32,64}(offs)
|
||||||
Reads a signed integer value of the size in bits from the specified offset
|
Reads a signed integer value of the size in bits from the specified offset
|
||||||
in the memory region.
|
in the memory region. The offset is specified in bytes. Reading beyond the
|
||||||
|
end of the memory region returns zero.
|
||||||
region:read_u{8,16,32,64}(offs)
|
region:read_u{8,16,32,64}(offs)
|
||||||
Reads an unsigned integer value of the size in bits from the specified
|
Reads an unsigned integer value of the size in bits from the specified
|
||||||
offset in the memory region.
|
offset in the memory region. The offset is specified in bytes. Reading
|
||||||
|
beyond the end of the memory region returns zero.
|
||||||
region:write_i{8,16,32,64}(offs, val)
|
region:write_i{8,16,32,64}(offs, val)
|
||||||
Writes a signed integer value of the size in bits to the specified offset in
|
Writes a signed integer value of the size in bits to the specified offset in
|
||||||
the memory region.
|
the memory region. The offset is specified in bytes. Attempting to write
|
||||||
|
beyond the end of the memory region has no effect.
|
||||||
region:write_u{8,16,32,64}(offs, val)
|
region:write_u{8,16,32,64}(offs, val)
|
||||||
Writes an unsigned integer value of the size in bits to the specified offset
|
Writes an unsigned integer value of the size in bits to the specified offset
|
||||||
in the memory region.
|
in the memory region. The offset is specified in bytes. Attempting to
|
||||||
|
write beyond the end of the memory region has no effect.
|
||||||
|
|
||||||
Properties
|
Properties
|
||||||
~~~~~~~~~~
|
~~~~~~~~~~
|
||||||
|
@ -1560,7 +1560,6 @@ msgid ""
|
|||||||
"Uptime: %1$d:%2$02d:%3$02d\n"
|
"Uptime: %1$d:%2$02d:%3$02d\n"
|
||||||
"\n"
|
"\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
msgid ""
|
|
||||||
"Çalışma zamanı: %1$d:%2$02d:%3$02d\n"
|
"Çalışma zamanı: %1$d:%2$02d:%3$02d\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
|
||||||
@ -1570,7 +1569,6 @@ msgid ""
|
|||||||
"Uptime: %1$d:%2$02d\n"
|
"Uptime: %1$d:%2$02d\n"
|
||||||
"\n"
|
"\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
msgid ""
|
|
||||||
"Çalışma zamanı: %1$d:%2$02d\n"
|
"Çalışma zamanı: %1$d:%2$02d\n"
|
||||||
"\n"
|
"\n"
|
||||||
|
|
||||||
@ -3440,7 +3438,7 @@ msgstr "LAN\tKusurlu\n"
|
|||||||
|
|
||||||
#: src/frontend/mame/ui/selmenu.cpp:3060
|
#: src/frontend/mame/ui/selmenu.cpp:3060
|
||||||
msgid "WAN\tUnimplemented\n"
|
msgid "WAN\tUnimplemented\n"
|
||||||
msgstr "WAN\tUygulanmadı\in"
|
msgstr "WAN\tUygulanmadı\n"
|
||||||
|
|
||||||
#: src/frontend/mame/ui/selmenu.cpp:3062
|
#: src/frontend/mame/ui/selmenu.cpp:3062
|
||||||
msgid "WAN\tImperfect\n"
|
msgid "WAN\tImperfect\n"
|
||||||
|
@ -26,7 +26,7 @@ T region_read(memory_region ®ion, offs_t address)
|
|||||||
const offs_t lowmask = region.bytewidth() - 1;
|
const offs_t lowmask = region.bytewidth() - 1;
|
||||||
for (int i = 0; i < sizeof(T); i++)
|
for (int i = 0; i < sizeof(T); i++)
|
||||||
{
|
{
|
||||||
int addr = region.endianness() == ENDIANNESS_LITTLE ? address + sizeof(T) - 1 - i : address + i;
|
int addr = (region.endianness() == ENDIANNESS_LITTLE) ? (address + sizeof(T) - 1 - i) : (address + i);
|
||||||
if (addr < region.bytes())
|
if (addr < region.bytes())
|
||||||
{
|
{
|
||||||
if constexpr (sizeof(T) > 1)
|
if constexpr (sizeof(T) > 1)
|
||||||
@ -52,7 +52,7 @@ void region_write(memory_region ®ion, offs_t address, T val)
|
|||||||
const offs_t lowmask = region.bytewidth() - 1;
|
const offs_t lowmask = region.bytewidth() - 1;
|
||||||
for (int i = 0; i < sizeof(T); i++)
|
for (int i = 0; i < sizeof(T); i++)
|
||||||
{
|
{
|
||||||
int addr = region.endianness() == ENDIANNESS_BIG ? address + sizeof(T) - 1 - i : address + i;
|
int addr = (region.endianness() == ENDIANNESS_BIG) ? (address + sizeof(T) - 1 - i) : (address + i);
|
||||||
if (addr < region.bytes())
|
if (addr < region.bytes())
|
||||||
{
|
{
|
||||||
if (region.endianness() == ENDIANNESS_BIG)
|
if (region.endianness() == ENDIANNESS_BIG)
|
||||||
|
Loading…
Reference in New Issue
Block a user