Use CamelCase to name enum types

This commit is contained in:
Toshifumi NISHINAGA 2022-09-22 01:44:43 +09:00
parent 9bc7a3809b
commit 3d66c46c7a
2 changed files with 7 additions and 7 deletions

View File

@ -109,7 +109,7 @@ static void EnableMemoryRemapGen1()
outputDebugMessage(L"BrainLILO: memory remap enable for Gen1\n"); outputDebugMessage(L"BrainLILO: memory remap enable for Gen1\n");
} }
static void EDNA2_installPhysicalInvoker(Brain_Gen gen) static void EDNA2_installPhysicalInvoker(BrainGen gen)
{ {
if (gen == Gen1) if (gen == Gen1)
{ {
@ -156,7 +156,7 @@ __attribute__((noreturn)) static void EDNA2_runPhysicalInvoker()
; ;
} }
__attribute__((noreturn)) static DWORD EDNA2_callKernelEntryPoint(Brain_Gen gen) __attribute__((noreturn)) static DWORD EDNA2_callKernelEntryPoint(BrainGen gen)
{ {
outputDebugMessage(L"BrainLILO: disabling interrupts"); outputDebugMessage(L"BrainLILO: disabling interrupts");
disableInterrupts(); disableInterrupts();
@ -173,7 +173,7 @@ static void ShowMessage(std::wstring msg, std::wstring title, UINT typ)
MessageBox(NULL, msg.c_str(), title.c_str(), typ); MessageBox(NULL, msg.c_str(), title.c_str(), typ);
} }
static void SetAddress(Brain_Gen gen) static void SetAddress(BrainGen gen)
{ {
switch (gen) switch (gen)
{ {
@ -196,9 +196,9 @@ static void SetAddress(Brain_Gen gen)
} }
} }
static Brain_Gen SelectGen(std::wstring model) static BrainGen SelectGen(std::wstring model)
{ {
Brain_Gen brain_gen = UnknownGen; BrainGen brain_gen = UnknownGen;
if (model == L"gen1.bin") if (model == L"gen1.bin")
{ {
brain_gen = Gen1; brain_gen = Gen1;
@ -248,7 +248,7 @@ static bool doLinux()
std::wstring line, model; std::wstring line, model;
std::wregex modelRe(L"[A-Z]{2}-[A-Z0-9]+"); std::wregex modelRe(L"[A-Z]{2}-[A-Z0-9]+");
std::wsmatch match; std::wsmatch match;
Brain_Gen brain_gen = UnknownGen; BrainGen brain_gen = UnknownGen;
std::wstring fn(L"\\Storage Card\\loader\\"); std::wstring fn(L"\\Storage Card\\loader\\");
HANDLE hUBoot; HANDLE hUBoot;

View File

@ -85,4 +85,4 @@ typedef enum
Gen3_5, Gen3_5,
Gen3_6, Gen3_6,
Gen3_7, Gen3_7,
} Brain_Gen; } BrainGen;