+
+
+
+ Size on disk:{' '}
+ {prettyBytes(versionSize, {
+ minimumFractionDigits: 2,
+ maximumFractionDigits: 2
+ })}
+
+
+
openFolder(managingVersion)}
+ title="Click to browse the game's files."
+ hidden={viewingInfoFromDownloads}
+ >
+ Open Folder
+
+
+
{
+ closePopup()
- await versions?.set(
- 'list',
- Object.fromEntries(
- Object.entries(versionsList).filter(
- ([k]) => k !== managingVersion
+ await versions?.set(
+ 'list',
+ Object.fromEntries(
+ Object.entries(versionsList).filter(
+ ([k]) => k !== managingVersion
+ )
)
)
- )
- if (
- await exists(
- (customDataLocation ? customDataLocation + '/' : null) +
- 'game/' +
- managingVersion,
- {
- baseDir: customDataLocation
- ? undefined
- : BaseDirectory.AppLocalData
- }
- )
- )
- await remove(
- (customDataLocation ? customDataLocation + '/' : null) +
- 'game/' +
- managingVersion,
- {
- baseDir: customDataLocation
- ? undefined
- : BaseDirectory.AppLocalData,
- recursive: true
- }
- )
- }}
- title='Click to uninstall this game. This will NOT remove any progress or any save files.'
- hidden={viewingInfoFromDownloads}
- >
- Uninstall
-
-
{
- //change popup to downloads
- setManagingVersion(null)
- setPopupMode(1)
-
- //uninstall
- await versions?.set(
- 'list',
- Object.fromEntries(
- Object.entries(versionsList).filter(
- ([k]) => k !== managingVersion
+ if (
+ await exists(
+ (customDataLocation ? customDataLocation + '/' : null) +
+ 'game/' +
+ managingVersion,
+ {
+ baseDir: customDataLocation
+ ? undefined
+ : BaseDirectory.AppLocalData
+ }
)
)
- )
+ await remove(
+ (customDataLocation ? customDataLocation + '/' : null) +
+ 'game/' +
+ managingVersion,
+ {
+ baseDir: customDataLocation
+ ? undefined
+ : BaseDirectory.AppLocalData,
+ recursive: true
+ }
+ )
+ }}
+ title='Click to uninstall this game. This will NOT remove any progress or any save files.'
+ hidden={viewingInfoFromDownloads}
+ >
+ Uninstall
+
+
{
+ //change popup to downloads
+ setManagingVersion(null)
+ setPopupMode(1)
- if (
- await exists(
- (customDataLocation ? customDataLocation + '/' : null) +
- 'game/' +
- managingVersion,
- {
- baseDir: customDataLocation
- ? undefined
- : BaseDirectory.AppLocalData
- }
- )
- )
- await remove(
- (customDataLocation ? customDataLocation + '/' : null) +
- 'game/' +
- managingVersion,
- {
- baseDir: customDataLocation
- ? undefined
- : BaseDirectory.AppLocalData,
- recursive: true
- }
+ //uninstall
+ await versions?.set(
+ 'list',
+ Object.fromEntries(
+ Object.entries(versionsList).filter(
+ ([k]) => k !== managingVersion
+ )
+ )
)
- //reinstall
- setSelectedVersionList([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}
- >
- Reinstall
+ if (
+ await exists(
+ (customDataLocation ? customDataLocation + '/' : null) +
+ 'game/' +
+ managingVersion,
+ {
+ baseDir: customDataLocation
+ ? undefined
+ : BaseDirectory.AppLocalData
+ }
+ )
+ )
+ await remove(
+ (customDataLocation ? customDataLocation + '/' : null) +
+ 'game/' +
+ managingVersion,
+ {
+ baseDir: customDataLocation
+ ? undefined
+ : BaseDirectory.AppLocalData,
+ recursive: true
+ }
+ )
+
+ //reinstall
+ setSelectedVersionList([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}
+ >
+ Reinstall
+