Skip to content

Commit

Permalink
Combine MSGData
Browse files Browse the repository at this point in the history
  • Loading branch information
Epicpkmn11 committed Dec 10, 2024
1 parent fa79752 commit 6508554
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 67 deletions.
2 changes: 2 additions & 0 deletions include/3ds/data/GFXData.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ class GFXData {
void DrawCheckbox(const int XPos, const int YPos, const bool Selected);
void DrawToggle(const int XPos, const int YPos, const bool Toggled);
void DrawSort(const int XPos, const int YPos, const bool Checked);

bool SpritesDrawn = false;
private:
C2D_SpriteSheet Sprites = nullptr;
C2D_Font Font = nullptr;
Expand Down
File renamed without changes.
16 changes: 0 additions & 16 deletions include/nds/data/MSGData.hpp

This file was deleted.

2 changes: 1 addition & 1 deletion nds/build/version.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef VERSION_HPP
#define VERSION_HPP

#define VER_NUMBER "-ddfd63e"
#define VER_NUMBER "-c902ddd"

#endif
45 changes: 0 additions & 45 deletions source/3ds/data/MSGData.cpp

This file was deleted.

10 changes: 5 additions & 5 deletions source/nds/data/MSGData.cpp → source/data/MSGData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

#include "MSGData.hpp"

#include "gui.hpp"
#include "Platform.hpp"
#include "UniversalUpdater.hpp"


Expand Down Expand Up @@ -31,18 +33,16 @@ bool MSGData::PromptMsg(const std::string &MSG) {

bool Result = false;

while(1) {
while(Platform::MainLoop()) {
UU::App->GData->StartFrame();
UU::App->GData->DrawTop();
Gui::DrawStringCentered(0, 80, TEXT_MEDIUM, TEXT_COLOR, MSG);
Gui::DrawStringCentered(0, 210, TEXT_MEDIUM, TEXT_COLOR, "Press A to continue, B to cancel.");
UU::App->GData->DrawBottom();
UU::App->GData->EndFrame();

do {
swiWaitForVBlank();
UU::App->ScanInput();
} while (!(UU::App->Down & (KEY_A | KEY_B)));
Platform::waitForVBlank();
UU::App->ScanInput();

if (UU::App->Down & KEY_A) {
Result = true;
Expand Down

0 comments on commit 6508554

Please sign in to comment.