mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: update achievements page
This commit is contained in:
parent
8fb31e0e64
commit
fa026f82a6
9 changed files with 228 additions and 52 deletions
|
|
@ -83,9 +83,9 @@ export const getGameAchievements = async (
|
|||
unlocked: false,
|
||||
unlockTime: null,
|
||||
icongray,
|
||||
};
|
||||
} as GameAchievement;
|
||||
})
|
||||
.sort((a: GameAchievement, b: GameAchievement) => {
|
||||
.sort((a, b) => {
|
||||
if (a.unlocked && !b.unlocked) return -1;
|
||||
if (!a.unlocked && b.unlocked) return 1;
|
||||
if (a.unlocked && b.unlocked) {
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ const getPathFromCracker = (cracker: Cracker) => {
|
|||
if (cracker === Cracker.onlineFix) {
|
||||
return [
|
||||
{
|
||||
folderPath: path.join(publicDocuments, Cracker.onlineFix),
|
||||
folderPath: path.join(publicDocuments, "OnlineFix"),
|
||||
fileLocation: ["Stats", "Achievements.ini"],
|
||||
},
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue