mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
fix(console): std::size not available in C++11
This commit is contained in:
parent
e257ab6c88
commit
532d63bdc5
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue