Skip to content

Commit

Permalink
Use CamelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
cadmic committed Jun 22, 2024
1 parent 175a31f commit f046260
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ZAPD/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -435,25 +435,25 @@ void Arg_CsFloatMode([[maybe_unused]] int& i, [[maybe_unused]] char* argv[])
}
}

uint32_t parse_u32_hex(char* str)
uint32_t ParseU32Hex(char* str)
{
static_assert(sizeof(uint32_t) <= sizeof(unsigned long));
return (uint32_t)std::stoul(str, nullptr, 16);
}

void Arg_BaseAddress(int& i, char* argv[])
{
Globals::Instance->baseAddress = parse_u32_hex(argv[++i]);
Globals::Instance->baseAddress = ParseU32Hex(argv[++i]);
}

void Arg_StartOffset(int& i, char* argv[])
{
Globals::Instance->startOffset = parse_u32_hex(argv[++i]);
Globals::Instance->startOffset = ParseU32Hex(argv[++i]);
}

void Arg_EndOffset(int& i, char* argv[])
{
Globals::Instance->endOffset = parse_u32_hex(argv[++i]);
Globals::Instance->endOffset = ParseU32Hex(argv[++i]);
}

int HandleExtract(ZFileMode fileMode, ExporterSet* exporterSet)
Expand Down

0 comments on commit f046260

Please sign in to comment.