Skip to content
This repository has been archived by the owner on Sep 23, 2023. It is now read-only.

Commit

Permalink
removed unused args
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaun Inman committed Aug 6, 2022
1 parent c486ba0 commit d9cf941
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion skeleton/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ A collection is just a text file containing an ordered list of full paths to rom
----------------------------------------
Advanced

MiniUI can automatically run a user-authored shell script on boot (for starting daemons like screenshots). Just place a file named "auto.sh" to "/.userdata/".
MiniUI can automatically run a user-authored shell script on boot (eg. for starting daemons like screenshots). Just place a file named "auto.sh" to "/.userdata/".

Just keep in mind, syntax errors in auto.sh may prevent MiniUI from launching which will allow the stock system to modify your SD card, polluting the root of the card and your Roms folder with unnecessary subfolders, and removing the hook that allows MiniUI to boot. If this happens you will need to reinstall MiniUI (well, really just its "./tmp_update/" folder). No userdata is lost when this happens, it's just kinda annoying.

Expand Down
4 changes: 1 addition & 3 deletions src/common/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -551,11 +551,9 @@ static void trimSortingMeta(char** str) { // eg. `001) `

while(isblank(**str)) *str += 1; // ignore leading space
}

void GFX_blitMenu(SDL_Surface* surface, char* name, char* path, char* unique, int row, int selected_row, int has_alt, int use_alt) {
void GFX_blitMenu(SDL_Surface* surface, char* name, char* path, char* unique, int row, int selected_row) {
int max_width = Screen.width - (2 * Screen.main.list.ox);
SDL_Surface* text;
char* fullname = strrchr(path, '/')+1;
if (row==selected_row) {
char* display_name = unique ? unique : name;
trimSortingMeta(&display_name);
Expand Down
4 changes: 1 addition & 3 deletions src/miniui/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1511,9 +1511,7 @@ int main (int argc, char *argv[]) {
int selected_row = top->selected - top->start;
for (int i=top->start,j=0; i<top->end; i++,j++) {
Entry* entry = top->entries->items[i];
int has_alt = j==selected_row && Entry_hasAlt(entry);
int use_alt = has_alt && Entry_useAlt(entry);
GFX_blitMenu(screen, entry->name, entry->path, entry->unique, j, selected_row, has_alt, use_alt);
GFX_blitMenu(screen, entry->name, entry->path, entry->unique, j, selected_row);
}
}
else {
Expand Down

0 comments on commit d9cf941

Please sign in to comment.