mirror of
https://github.com/wiiu-env/EnvironmentLoader.git
synced 2025-02-19 22:42:45 +01:00
Fix compiler warnings
This commit is contained in:
parent
70eebb31b0
commit
bf7db1c4eb
@ -19,7 +19,7 @@ bool ElfUtils::doRelocation(std::vector<std::shared_ptr<RelocationData>> &relocD
|
|||||||
auto err = OSDynLoad_IsModuleLoaded(rplName.c_str(), &rplHandle);
|
auto err = OSDynLoad_IsModuleLoaded(rplName.c_str(), &rplHandle);
|
||||||
if (err != OS_DYNLOAD_OK || rplHandle == 0) {
|
if (err != OS_DYNLOAD_OK || rplHandle == 0) {
|
||||||
// only acquire if not already loaded.
|
// only acquire if not already loaded.
|
||||||
auto res = OSDynLoad_Acquire(rplName.c_str(), &rplHandle);
|
OSDynLoad_Acquire(rplName.c_str(), &rplHandle);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t functionAddress = 0;
|
uint32_t functionAddress = 0;
|
||||||
|
@ -309,11 +309,11 @@ std::string EnvironmentSelectionScreen(const std::map<std::string, std::string>
|
|||||||
if (i == selected) {
|
if (i == selected) {
|
||||||
DrawUtils::drawRect(16, index, SCREEN_WIDTH - 16 * 2, 44, 4, COLOR_BORDER_HIGHLIGHTED);
|
DrawUtils::drawRect(16, index, SCREEN_WIDTH - 16 * 2, 44, 4, COLOR_BORDER_HIGHLIGHTED);
|
||||||
} else {
|
} else {
|
||||||
DrawUtils::drawRect(16, index, SCREEN_WIDTH - 16 * 2, 44, 2, (i == autoBoot) ? COLOR_AUTOBOOT : COLOR_BORDER);
|
DrawUtils::drawRect(16, index, SCREEN_WIDTH - 16 * 2, 44, 2, ((int32_t) i == autoBoot) ? COLOR_AUTOBOOT : COLOR_BORDER);
|
||||||
}
|
}
|
||||||
|
|
||||||
DrawUtils::setFontSize(24);
|
DrawUtils::setFontSize(24);
|
||||||
DrawUtils::setFontColor((i == autoBoot) ? COLOR_AUTOBOOT : COLOR_TEXT);
|
DrawUtils::setFontColor(((int32_t) i == autoBoot) ? COLOR_AUTOBOOT : COLOR_TEXT);
|
||||||
DrawUtils::print(16 * 2, index + 8 + 24, key.c_str());
|
DrawUtils::print(16 * 2, index + 8 + 24, key.c_str());
|
||||||
index += 42 + 8;
|
index += 42 + 8;
|
||||||
i++;
|
i++;
|
||||||
@ -377,7 +377,7 @@ std::string EnvironmentSelectionScreen(const std::map<std::string, std::string>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int i = 0;
|
uint32_t i = 0;
|
||||||
for (auto const &[key, val] : payloads) {
|
for (auto const &[key, val] : payloads) {
|
||||||
if (i == selected) {
|
if (i == selected) {
|
||||||
return val;
|
return val;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user