Skip to content

Commit

Permalink
Merge pull request #5 from StarDustCFW/master
Browse files Browse the repository at this point in the history
remove mods from nfpemu.c for easy update in future
  • Loading branch information
CompSciOrBust authored Jan 21, 2020
2 parents 9199aec + 3fdc0a3 commit a2a4654
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion source/AmiigoUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ void AmiigoUI::DrawHeader()
void AmiigoUI::DrawFooter()
{
//Get info about the current status
NfpEmuEmulationStatus CurrentStatus;
NfpEmuEmulationStatus CurrentStatus = (NfpEmuEmulationStatus)3;
nfpemuGetStatus(&CurrentStatus);
//Draw the footer
int FooterYOffset = *Height - FooterHeight;
Expand Down
6 changes: 3 additions & 3 deletions source/UI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ void ScrollList::DrawList()
for(int i = 0; i < ListLength; i++)
{
//Set the background color
if(IsActive) SDL_SetRenderDrawColor(renderer, 96, 204, 204, 255);
else SDL_SetRenderDrawColor(renderer, 96, 204, 204, 255);
if(IsActive) SDL_SetRenderDrawColor(renderer, 136, 254, 254, 255);
else SDL_SetRenderDrawColor(renderer, 0, 178, 212, 255);
//Check if this is the highlighted file
if(i == CursorIndex && IsActive)
{
SDL_SetRenderDrawColor(renderer, 136, 254, 254, 255);
SDL_SetRenderDrawColor(renderer, 255, 255, 255, 255);
//Cyan 50
//if(IsActive) SDL_SetRenderDrawColor(renderer, 224, 247, 250, 255);
//else SDL_SetRenderDrawColor(renderer, 232, 234, 246, 255); //Indigo
Expand Down
1 change: 1 addition & 0 deletions source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ int main(int argc, char *argv[])

TTF_Init(); //Init the font
plInitialize(); //Init needed for shared font
if (nfpemuIsAccessible())
nfpemuInitialize(); //Init nfp ipc

//Give MainUI access to vars
Expand Down
3 changes: 0 additions & 3 deletions source/nfpemu.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ Result nfpemuInitialize()
{
atomicIncrement64(&g_refCnt);
if(serviceIsActive(&g_nfpEmuSrv)) return 0;
if (nfpemuIsAccessible())
return smGetService(&g_nfpEmuSrv, "nfp:emu");
return 0;
}

void nfpemuExit()
Expand Down Expand Up @@ -279,7 +277,6 @@ Result nfpemuMoveToNextAmiibo()

Result nfpemuGetStatus(NfpEmuEmulationStatus *out)
{
*out = 3;
IpcCommand c;
ipcInitialize(&c);
struct {
Expand Down

0 comments on commit a2a4654

Please sign in to comment.