VITA-Homebrew-Sorter/include/tabs.h

41 lines
716 B
C
Raw Normal View History

2024-05-11 19:17:53 +00:00
#pragma once
#include <psp2/io/dirent.h>
#include <string>
#include <vector>
#include "applist.h"
enum IconType {
App,
DB,
Folder,
Page,
Trash
};
enum SortMode {
SortDefault,
SortAsc,
SortDesc
};
enum State {
StateNone,
StateConfirmSort,
StateConfirmSwap,
StateRestore,
StateLoadoutRestore,
StateWarning,
StateDone,
StateDelete,
StateError
};
namespace Tabs {
void Sort(AppEntries &entries, State &state, bool &backupExists);
void Pages(AppEntries &entries, State &state, bool &backupExists);
void Loadouts(std::vector<SceIoDirent> &loadouts, State &state, int &date_format, std::string &loadout_name);
void Settings(void);
}