fix: adding greptile fixes

This commit is contained in:
Chubby Granny Chaser
2025-05-14 10:17:44 +01:00
parent e8e524182a
commit 5c7a289299
4 changed files with 7 additions and 7 deletions

View File

@@ -134,7 +134,7 @@
"create_shortcut_success": "Shortcut created successfully",
"you_might_need_to_restart_steam": "You might need to restart Steam to see the changes",
"create_shortcut_error": "Error creating shortcut",
"nsfw_content_title": "This game contains innapropriate content",
"nsfw_content_title": "This game contains inappropriate content",
"nsfw_content_description": "{{title}} contains content that may not be suitable for all ages. Are you sure you want to continue?",
"allow_nsfw_content": "Continue",
"refuse_nsfw_content": "Go back",

View File

@@ -17,7 +17,7 @@ export interface SteamAppDetailsResponse {
};
}
export const getSteamLocation = async (): Promise<string> => {
export const getSteamLocation = async () => {
if (process.platform === "linux") {
return path.join(SystemPath.getPath("home"), ".local", "share", "Steam");
}
@@ -36,7 +36,7 @@ export const getSteamLocation = async (): Promise<string> => {
key: "\\Software\\Valve\\Steam",
});
return new Promise((resolve, reject) => {
return new Promise<string>((resolve, reject) => {
regKey.get("SteamPath", (err, value) => {
if (err) {
reject(err);
@@ -137,7 +137,7 @@ export const composeSteamShortcut = (
Devkit: false,
DevkitGameID: "",
DevkitOverrideAppID: false,
LastPlayTime: false,
LastPlayTime: 0,
FlatpakAppID: "",
};
};
@@ -148,7 +148,7 @@ export const writeSteamShortcuts = async (
) => {
const buffer = writeBuffer({ shortcuts });
fs.writeFileSync(
return fs.promises.writeFile(
path.join(
await getSteamLocation(),
"userdata",

View File

@@ -328,7 +328,7 @@ export function GameOptionsModal({
theme="outline"
disabled={creatingSteamShortcut}
>
<SteamLogo className="game-card__shop-icon" />
<SteamLogo />
{t("create_steam_shortcut")}
</Button>
{shouldShowCreateStartMenuShortcut && (

View File

@@ -69,6 +69,6 @@ export interface SteamShortcut {
Devkit: boolean;
DevkitGameID: string;
DevkitOverrideAppID: boolean;
LastPlayTime: boolean;
LastPlayTime: number;
FlatpakAppID: string;
}