Add types to downloads, will be for modding stuff
This commit is contained in:
6 files changed
+33
-13
No files matched your search
@@ -196,7 +196,12 @@ export default function ManageVersionPopup () {
|
||||
|
||||
//reinstall
|
||||
setSelectedVersionList([managingVersion])
|
||||
downloadVersions([managingVersion])
|
||||
downloadVersions([
|
||||
{
|
||||
id: managingVersion,
|
||||
type: 0
|
||||
}
|
||||
])
|
||||
}}
|
||||
title="Click to reinstall this game. This will NOT remove any progress or any save files. This WILL uninstall any modifications to the game's executable files."
|
||||
hidden={viewingInfoFromDownloads}
|
||||
|
||||
@@ -15,6 +15,7 @@ export default function VersionsDownloadPopup () {
|
||||
downloadVersions,
|
||||
getGameInfo
|
||||
} = useGlobal()
|
||||
|
||||
if (!selectedGame) return <></>
|
||||
|
||||
return (
|
||||
@@ -78,7 +79,12 @@ export default function VersionsDownloadPopup () {
|
||||
className='button btntheme1 w-fit mt-2 -mb-4'
|
||||
onClick={() => {
|
||||
if (downloadedVersionsConfig) {
|
||||
downloadVersions(selectedVersionList)
|
||||
downloadVersions(
|
||||
selectedVersionList.map(versionId => ({
|
||||
id: versionId,
|
||||
type: 0
|
||||
}))
|
||||
)
|
||||
setPopupMode(1)
|
||||
}
|
||||
}}
|
||||
|
||||
Reference in new issue
Block a user