mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 15:18:45 +00:00
clang-format
This commit is contained in:
parent
142e42c5bd
commit
be039a97e2
2 changed files with 2 additions and 3 deletions
|
@ -39,8 +39,8 @@ static bool IsValidOption(OrbisImeDialogOption option, OrbisImeType type) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool IsMemZero(const void* ptr, size_t size) {
|
static bool IsMemZero(const void* ptr, size_t size) {
|
||||||
return std::all_of(static_cast<const u8*>(ptr), static_cast<const u8*>(ptr) + size, [](u8 c)
|
return std::all_of(static_cast<const u8*>(ptr), static_cast<const u8*>(ptr) + size,
|
||||||
{ return c == 0; });
|
[](u8 c) { return c == 0; });
|
||||||
}
|
}
|
||||||
|
|
||||||
Error PS4_SYSV_ABI sceImeDialogAbort() {
|
Error PS4_SYSV_ABI sceImeDialogAbort() {
|
||||||
|
|
|
@ -256,7 +256,6 @@ bool ImeDialogState::ConvertUTF8ToOrbis(const char* utf8_text, std::size_t utf8_
|
||||||
std::size_t result = iconv(utf8_to_orbis, (char**)&utf8_text_ptr, &utf8_text_len_bytes,
|
std::size_t result = iconv(utf8_to_orbis, (char**)&utf8_text_ptr, &utf8_text_len_bytes,
|
||||||
(char**)&orbis_text_ptr, &orbis_text_len_bytes);
|
(char**)&orbis_text_ptr, &orbis_text_len_bytes);
|
||||||
|
|
||||||
|
|
||||||
return result != (std::size_t)-1;
|
return result != (std::size_t)-1;
|
||||||
#else
|
#else
|
||||||
int required_size = MultiByteToWideChar(CP_UTF8, 0, utf8_text, utf8_text_len, nullptr, 0);
|
int required_size = MultiByteToWideChar(CP_UTF8, 0, utf8_text, utf8_text_len, nullptr, 0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue