chore: merge with main

This commit is contained in:
Chubby Granny Chaser 2025-01-21 10:31:39 +00:00
parent facca3e26c
commit eb11eb2bd0
No known key found for this signature in database
5 changed files with 5 additions and 10 deletions

View file

@ -1,8 +1,7 @@
import { levelKeys } from "@main/level";
import { db, levelKeys } from "@main/level";
import { registerEvent } from "../register-event";
import { HydraApi } from "@main/services";
import type { TrendingGame } from "@types";
import { db } from "@main/level";
const getTrendingGames = async (_event: Electron.IpcMainInvokeEvent) => {
const language = await db

View file

@ -10,8 +10,7 @@ import os from "node:os";
import { backupsPath } from "@main/constants";
import { app } from "electron";
import { normalizePath } from "@main/helpers";
import { gamesSublevel } from "@main/level";
import { levelKeys } from "@main/level";
import { gamesSublevel, levelKeys } from "@main/level";
const bundleBackup = async (
shop: GameShop,

View file

@ -1,7 +1,6 @@
import { defaultDownloadsPath } from "@main/constants";
import { levelKeys } from "@main/level";
import { db, levelKeys } from "@main/level";
import type { UserPreferences } from "@types";
import { db } from "@main/level";
export const getDownloadsPath = async () => {
const userPreferences = await db.get<string, UserPreferences>(

View file

@ -1,6 +1,5 @@
import { registerEvent } from "../register-event";
import { downloadsSublevel, levelKeys } from "@main/level";
import { gamesSublevel } from "@main/level";
import { gamesSublevel, downloadsSublevel, levelKeys } from "@main/level";
import type { GameShop } from "@types";
const getGameByObjectId = async (

View file

@ -1,10 +1,9 @@
import path from "node:path";
import fs from "node:fs";
import { app } from "electron";
import type { AchievementFile } from "@types";
import type { Game, AchievementFile } from "@types";
import { Cracker } from "@shared";
import { achievementsLogger } from "../logger";
import type { Game } from "@types";
const getAppDataPath = () => {
if (process.platform === "win32") {