mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-12 15:14:35 +01:00
(misc) Add constants for the app data directory & URLs for querying the miHoYo launcher API
This commit is contained in:
@@ -1,4 +1,13 @@
|
||||
import { appDataDir } from "@tauri-apps/api/path";
|
||||
|
||||
export const AppDataPath = (await appDataDir()).slice(0, -1);
|
||||
|
||||
export const PageRoutes = {
|
||||
HOME: "/",
|
||||
SETTINGS: "/settings"
|
||||
};
|
||||
|
||||
export const LauncherUrls = {
|
||||
GENSHIN_IMPACT: "https://sdk-os-static.mihoyo.com/hk4e_global/mdk/launcher/api/content?filter_adv=false&key=gcStgarh&language=en-us&launcher_id=10",
|
||||
STAR_RAIL: "https://hkrpg-launcher-static.hoyoverse.com/hkrpg_global/mdk/launcher/api/content?filter_adv=false&key=vplOVX8Vn7cwG8yb&language=en-us&launcher_id=35"
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user