mirror of
https://gitlab.com/Theopse/fbi-i18n-zh.git
synced 2025-05-09 01:28:58 +08:00
Update for ctrcommon changes.
This commit is contained in:
parent
96e33c0509
commit
febd5db814
@ -272,8 +272,8 @@ bool launchTitle(App app) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool onLoop() {
|
bool onLoop() {
|
||||||
bool ninjhax = platformIsNinjhax();
|
bool launcher = platformHasLauncher();
|
||||||
if(ninjhax && inputIsPressed(BUTTON_START)) {
|
if(launcher && inputIsPressed(BUTTON_START)) {
|
||||||
exit = true;
|
exit = true;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -348,12 +348,12 @@ bool onLoop() {
|
|||||||
|
|
||||||
stream << "SELECT - Install MSET ROP";
|
stream << "SELECT - Install MSET ROP";
|
||||||
|
|
||||||
if(ninjhax) {
|
if(launcher) {
|
||||||
stream << "\n" << "START - Exit to launcher";
|
stream << "\n" << "START - Exit to launcher";
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string str = stream.str();
|
std::string str = stream.str();
|
||||||
const std::string title = "FBI v1.4.4";
|
const std::string title = "FBI v1.4.5";
|
||||||
gputDrawString(title, (gpuGetViewportWidth() - gputGetStringWidth(title, 16)) / 2, (gpuGetViewportHeight() - gputGetStringHeight(title, 16) + gputGetStringHeight(str, 8)) / 2, 16, 16);
|
gputDrawString(title, (gpuGetViewportWidth() - gputGetStringWidth(title, 16)) / 2, (gpuGetViewportHeight() - gputGetStringHeight(title, 16) + gputGetStringHeight(str, 8)) / 2, 16, 16);
|
||||||
gputDrawString(str, (gpuGetViewportWidth() - gputGetStringWidth(str, 8)) / 2, 4, 8, 8);
|
gputDrawString(str, (gpuGetViewportWidth() - gputGetStringWidth(str, 8)) / 2, 4, 8, 8);
|
||||||
|
|
||||||
@ -361,7 +361,7 @@ bool onLoop() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
if(!platformInit()) {
|
if(!platformInit(argc)) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user