mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-11 20:05:58 +03:00
fix(console): std::size not available in C++11
This commit is contained in:
parent
e257ab6c88
commit
532d63bdc5
@ -22,7 +22,7 @@ int32_t ConsoleCommand_Help(const char* command, const char* arguments) {
|
|||||||
char buffer[128];
|
char buffer[128];
|
||||||
bool showCategories = *arguments == '\0';
|
bool showCategories = *arguments == '\0';
|
||||||
|
|
||||||
auto numTranslation = std::size(s_translation);
|
auto numTranslation = sizeof(s_translation) / sizeof(CategoryTranslation);
|
||||||
|
|
||||||
if (showCategories) {
|
if (showCategories) {
|
||||||
memset(buffer, 0, sizeof(buffer));
|
memset(buffer, 0, sizeof(buffer));
|
||||||
@ -70,7 +70,7 @@ int32_t ConsoleCommand_Help(const char* command, const char* arguments) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
char* wr;
|
const char* wr = nullptr;
|
||||||
|
|
||||||
if (buffer[0]) {
|
if (buffer[0]) {
|
||||||
auto comma = reinterpret_cast<char*>(SStrChrR(buffer, ','));
|
auto comma = reinterpret_cast<char*>(SStrChrR(buffer, ','));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user