feat: add dodi folder

This commit is contained in:
Zamitto 2024-10-07 11:52:25 -03:00
parent 7f09a7796f
commit 7c9c27801f
3 changed files with 51 additions and 35 deletions

View File

@ -86,6 +86,10 @@ const getPathFromCracker = (cracker: Cracker) => {
folderPath: path.join(programData, "Steam", "Player"), folderPath: path.join(programData, "Steam", "Player"),
fileLocation: ["stats", "achievements.ini"], fileLocation: ["stats", "achievements.ini"],
}, },
{
folderPath: path.join(programData, "Steam", "dodi"),
fileLocation: ["stats", "achievements.ini"],
},
]; ];
} }

View File

@ -24,6 +24,7 @@ export const contentSidebarTitle = style({
display: "flex", display: "flex",
alignItems: "center", alignItems: "center",
backgroundColor: vars.color.background, backgroundColor: vars.color.background,
justifyContent: "space-between",
}); });
export const requirementButtonContainer = style({ export const requirementButtonContainer = style({

View File

@ -49,6 +49,14 @@ export function Sidebar() {
/> */} /> */}
{achievements.length > 0 && ( {achievements.length > 0 && (
<>
<div
className={styles.contentSidebarTitle}
style={{ border: "none" }}
>
<h3>{t("achievements")}</h3>
<span>{achievements.length}</span>
</div>
<div <div
style={{ style={{
display: "flex", display: "flex",
@ -75,7 +83,9 @@ export function Sidebar() {
filter: achievement.unlocked ? "none" : "grayscale(100%)", filter: achievement.unlocked ? "none" : "grayscale(100%)",
}} }}
src={ src={
achievement.unlocked ? achievement.icon : achievement.icongray achievement.unlocked
? achievement.icon
: achievement.icongray
} }
alt={achievement.displayName} alt={achievement.displayName}
loading="lazy" loading="lazy"
@ -87,6 +97,7 @@ export function Sidebar() {
</div> </div>
))} ))}
</div> </div>
</>
)} )}
{stats && ( {stats && (