mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-01-23 05:24:55 +03:00
fix: fixing games with colon ludusavi
This commit is contained in:
parent
e86daacad4
commit
955725b646
@ -35,7 +35,7 @@ export const backupGame = ({
|
||||
preview?: boolean;
|
||||
winePrefix?: string;
|
||||
}) => {
|
||||
const args = ["backup", title, "--api", "--force"];
|
||||
const args = ["backup", `"${title}"`, "--api", "--force"];
|
||||
|
||||
if (preview) args.push("--preview");
|
||||
if (backupPath) args.push("--path", backupPath);
|
||||
|
@ -40,6 +40,7 @@ export function CloudSyncModal({ visible, onClose }: CloudSyncModalProps) {
|
||||
downloadGameArtifact,
|
||||
deleteGameArtifact,
|
||||
setShowCloudSyncFilesModal,
|
||||
getGameBackupPreview,
|
||||
} = useContext(cloudSyncContext);
|
||||
|
||||
const { objectId, shop, gameTitle, lastDownloadedOption } =
|
||||
@ -81,6 +82,10 @@ export function CloudSyncModal({ visible, onClose }: CloudSyncModalProps) {
|
||||
downloadGameArtifact(artifactId);
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
getGameBackupPreview();
|
||||
}, [getGameBackupPreview]);
|
||||
|
||||
const backupStateLabel = useMemo(() => {
|
||||
if (uploadingBackup) {
|
||||
return (
|
||||
|
@ -36,7 +36,7 @@ export function GameDetailsContent() {
|
||||
|
||||
const { userDetails } = useUserDetails();
|
||||
|
||||
const { setShowCloudSyncModal, getGameBackupPreview, getGameArtifacts } =
|
||||
const { setShowCloudSyncModal, getGameArtifacts } =
|
||||
useContext(cloudSyncContext);
|
||||
|
||||
const aboutTheGame = useMemo(() => {
|
||||
@ -107,9 +107,8 @@ export function GameDetailsContent() {
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
getGameBackupPreview();
|
||||
getGameArtifacts();
|
||||
}, [getGameBackupPreview, getGameArtifacts]);
|
||||
}, [getGameArtifacts]);
|
||||
|
||||
return (
|
||||
<div className={styles.wrapper({ blurredContent: hasNSFWContentBlocked })}>
|
||||
|
Loading…
Reference in New Issue
Block a user