mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
fix(command): C++11 doesn't have std::size, use sizeof
This commit is contained in:
parent
2e0df837a9
commit
f7bc2d96bf
1 changed files with 2 additions and 4 deletions
|
|
@ -1,7 +1,5 @@
|
||||||
#include "client/CmdLine.hpp"
|
#include "client/CmdLine.hpp"
|
||||||
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
#include <storm/Command.hpp>
|
#include <storm/Command.hpp>
|
||||||
|
|
||||||
int32_t CmdLineProcess() {
|
int32_t CmdLineProcess() {
|
||||||
|
|
@ -26,7 +24,7 @@ int32_t CmdLineProcess() {
|
||||||
};
|
};
|
||||||
|
|
||||||
// load engine-specific launch flags
|
// load engine-specific launch flags
|
||||||
SCmdRegisterArgList(s_argList, std::size(s_argList));
|
SCmdRegisterArgList(s_argList, sizeof(s_argList) / sizeof(ARGLIST));
|
||||||
|
|
||||||
// parse command line
|
// parse command line
|
||||||
return SCmdProcessCommandLine(0, 0);
|
return SCmdProcessCommandLine(0, 0);
|
||||||
|
|
@ -54,7 +52,7 @@ void ProcessCommandLine() {
|
||||||
};
|
};
|
||||||
|
|
||||||
// Load wow-specific launch flags
|
// Load wow-specific launch flags
|
||||||
SCmdRegisterArgList(s_wowArgList, std::size(s_wowArgList));
|
SCmdRegisterArgList(s_wowArgList, sizeof(s_wowArgList) / sizeof(ARGLIST));
|
||||||
|
|
||||||
CmdLineProcess();
|
CmdLineProcess();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue