Skip to content

Commit

Permalink
Replace ARM9 define with __NDS__
Browse files Browse the repository at this point in the history
  • Loading branch information
Epicpkmn11 committed Dec 9, 2024
1 parent 38bdc39 commit a71e20b
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion source/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ std::unique_ptr<UU> UU::App = nullptr;
int main(int ARGC, char *ARGV[]) {
UU::App = std::make_unique<UU>();

#ifdef ARM9
#ifdef __NDS__
return UU::App->Handler(ARGV);

#else
Expand Down
2 changes: 1 addition & 1 deletion source/data/ThemeData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ uint32_t ThemeData::GetThemeColor(const std::string &ThemeName, const std::strin
const int B = std::stoi(ColorString.substr(5, 2), nullptr, 16);
return RGBA8(R, G, B, 0xFF);

#elif ARM9
#elif __NDS__
/* TODO: Handle BGR15 conversion. */
#endif

Expand Down
4 changes: 2 additions & 2 deletions source/menus/UniStoreSelector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void UniStoreSelector::InitSelector() {
this->ScreenIndex = 0, this->SelectedIndex = 0;
this->Done = false;

#ifdef ARM9
#ifdef __NDS__
UU::App->GData->HideUniStoreSprites(); // Hide the Sprites on the NDS version -- no need to on the 3DS version.
#endif
};
Expand Down Expand Up @@ -247,7 +247,7 @@ void UniStoreSelector::Handler() {
}

if (this->Done) {
#ifdef ARM9
#ifdef __NDS__
UU::App->GData->UpdateUniStoreSprites(); // Display the sprites again on the NDS version.
#endif
}
Expand Down
2 changes: 1 addition & 1 deletion source/nds/utils/nitrofs.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ int __itcm nitroFSInit(const char *ndsfile) {
ndsFile = NULL;
bool noCashGba = (strncmp((const char *)0x4FFFA00, "no$gba", 6) == 0);
if(!isDSiMode() || noCashGba) {
sysSetCartOwner(BUS_OWNER_ARM9); // give us gba slot ownership
sysSetCartOwner(BUS_OWNER___NDS__); // give us gba slot ownership
// We has gba rahm
// printf("yes i think this is GBA?!\n");
if(strncmp(((const char *)GBAROM) + LOADERSTROFFSET, LOADERSTR, strlen(LOADERSTR)) ==
Expand Down
2 changes: 1 addition & 1 deletion source/utils/DownloadUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ bool DownloadUtils::WiFiAvailable() {
uint32_t WifiStatus;
return (R_SUCCEEDED(ACU_GetWifiStatus(&WifiStatus)) && WifiStatus);

#elif defined(ARM9)
#elif defined(__NDS__)
return WiFi::Connected();
#endif
};
2 changes: 1 addition & 1 deletion source/utils/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ uint64_t Utils::AvailableSpace() {
#ifdef __3DS__
statvfs("sdmc:/", &ST);

#elif ARM9
#elif __NDS__
statvfs("/", &ST);
#endif

Expand Down

0 comments on commit a71e20b

Please sign in to comment.