summaryrefslogtreecommitdiffstats
path: root/src/frontend/mame/language.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-10-22 13:13:17 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-10-22 13:13:17 +0200
commitddb290d5f615019c33c42b8d94e5a5254cabcf33 (patch)
treea70f688b0df3acd19da7b1151e5902e3c6af3fa5 /src/frontend/mame/language.cpp
parent333bff8de64dfaeb98134000412796b4fdef970b (diff)
NOTICE (TYPE NAME CONSOLIDATION)
Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8 also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
Diffstat (limited to 'src/frontend/mame/language.cpp')
-rw-r--r--src/frontend/mame/language.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/frontend/mame/language.cpp b/src/frontend/mame/language.cpp
index 5c9686a646e..93d8e410c4a 100644
--- a/src/frontend/mame/language.cpp
+++ b/src/frontend/mame/language.cpp
@@ -22,14 +22,14 @@ const char *lang_translate(const char *word)
return g_translation[word].c_str();
}
-const UINT32 MO_MAGIC = 0x950412de;
-const UINT32 MO_MAGIC_REVERSED = 0xde120495;
+const uint32_t MO_MAGIC = 0x950412de;
+const uint32_t MO_MAGIC_REVERSED = 0xde120495;
-inline UINT32 endianchange(UINT32 value) {
- UINT32 b0 = (value >> 0) & 0xff;
- UINT32 b1 = (value >> 8) & 0xff;
- UINT32 b2 = (value >> 16) & 0xff;
- UINT32 b3 = (value >> 24) & 0xff;
+inline uint32_t endianchange(uint32_t value) {
+ uint32_t b0 = (value >> 0) & 0xff;
+ uint32_t b1 = (value >> 8) & 0xff;
+ uint32_t b2 = (value >> 16) & 0xff;
+ uint32_t b3 = (value >> 24) & 0xff;
return (b0 << 24) | (b1 << 16) | (b2 << 8) | b3;
}
@@ -44,8 +44,8 @@ void load_translation(emu_options &m_options)
strreplace(name, ")", "");
if (file.open(name.c_str(), PATH_SEPARATOR "strings.mo") == osd_file::error::NONE)
{
- UINT64 size = file.size();
- UINT32 *buffer = global_alloc_array(UINT32, size / 4 + 1);
+ uint64_t size = file.size();
+ uint32_t *buffer = global_alloc_array(uint32_t, size / 4 + 1);
file.read(buffer, size);
file.close();
@@ -62,9 +62,9 @@ void load_translation(emu_options &m_options)
}
}
- UINT32 number_of_strings = buffer[2];
- UINT32 original_table_offset = buffer[3] >> 2;
- UINT32 translation_table_offset = buffer[4] >> 2;
+ uint32_t number_of_strings = buffer[2];
+ uint32_t original_table_offset = buffer[3] >> 2;
+ uint32_t translation_table_offset = buffer[4] >> 2;
const char *data = reinterpret_cast<const char*>(buffer);