forked from gameblabla/altra64
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from skawo/master
Add a way to delete files in the menu.
- Loading branch information
Showing
5 changed files
with
146 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
|
||
#include <libdragon.h> | ||
#include <stdio.h> | ||
#include "types.h" | ||
#include "menu.h" | ||
#include "version.h" | ||
#include "main.h" | ||
#include "everdrive.h" | ||
|
||
void menu_controls(display_context_t disp) | ||
{ | ||
printText(" - Controls -", 4, 4, disp); | ||
printText(" ", 4, -1, disp); | ||
printText(" L: show mempak menu", 4, -1, disp); | ||
printText(" ", 4, -1, disp); | ||
printText(" Z: about screen", 4, -1, disp); | ||
printText(" ", 4, -1, disp); | ||
printText(" A: start rom/directory", 4, -1, disp); | ||
printText(" mempak", 4, -1, disp); | ||
printText(" ", 4, -1, disp); | ||
printText(" B: back/cancel", 4, -1, disp); | ||
printText(" ", 4, -1, disp); | ||
printText(" START: start last rom", 4, -1, disp); | ||
printText(" ", 4, -1, disp); | ||
printText(" C-left: rom info/mempak", 4, -1, disp); | ||
printText(" content view", 4, -1, disp); | ||
printText(" ", 4, -1, disp); | ||
printText("C-right: rom config creen", 4, -1, disp); | ||
printText(" ", 4, -1, disp); | ||
printText(" C-up: view full filename", 4, -1, disp); | ||
printText(" ", 4, -1, disp); | ||
printText(" C-down: Toplist 15", 4, -1, disp); | ||
printText(" ", 4, -1, disp); | ||
printText(" R + L: Delete file", 4, -1, disp); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
#include <libdragon.h> | ||
#include <stdio.h> | ||
#include "types.h" | ||
#include "menu.h" | ||
#include "version.h" | ||
#include "main.h" | ||
#include "everdrive.h" | ||
|
||
|
||
void menu_delete(display_context_t disp, bool isdir) | ||
{ | ||
if (isdir) | ||
{ | ||
printText("Cannot delete directories!", 7, 14, disp); | ||
printText("B: Exit", 13, 16, disp); | ||
} | ||
else | ||
{ | ||
printText("Delete this file?", 10, 14, disp); | ||
printText("A: Confirm", 13, 16, disp); | ||
printText("B: Cancel", 13, 17, disp); | ||
} | ||
} |