mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-31 14:51:02 +00:00
feat: disabled assets request for custom games
This commit is contained in:
@@ -6,6 +6,10 @@ import { gamesShopAssetsSublevel, levelKeys } from "@main/level";
|
|||||||
const LOCAL_CACHE_EXPIRATION = 1000 * 60 * 60 * 8; // 8 hours
|
const LOCAL_CACHE_EXPIRATION = 1000 * 60 * 60 * 8; // 8 hours
|
||||||
|
|
||||||
export const getGameAssets = async (objectId: string, shop: GameShop) => {
|
export const getGameAssets = async (objectId: string, shop: GameShop) => {
|
||||||
|
if (shop === "custom") {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
const cachedAssets = await gamesShopAssetsSublevel.get(
|
const cachedAssets = await gamesShopAssetsSublevel.get(
|
||||||
levelKeys.game(shop, objectId)
|
levelKeys.game(shop, objectId)
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user