aboutsummaryrefslogtreecommitdiff
path: root/launcher/FileSystem.cpp
AgeCommit message (Collapse)Author
2023-01-10fix(FileSystem): don't attempt to trash items on Windows Serverflow
For some reason this makes some of our CI test runs super slow, and sometimes fail miserably. Signed-off-by: flow <flowlnlnln@gmail.com>
2023-01-07Merge pull request #576 from Ryex/identify-zip-packsSefa Eyeoglu
fix https://github.com/PrismLauncher/PrismLauncher/issues/349
2022-12-29refactor: use std::filesystem::rename insted of copy and then moving.Rachel Powers
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2022-12-14Improve handling of destructive actionsTheKodeToad
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-12-08fix: fix creating instance shortcuts in flatpakleo78913
Signed-off-by: leo78913 <leo3758@riseup.net>
2022-11-25Merge pull request #227 from Leo40Git/feature/instance-shortcutsSefa Eyeoglu
Closes https://github.com/PrismLauncher/PrismLauncher/issues/210
2022-11-21fix: actually emit fileCopiedSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-11-13Linux: remove TryExec entry from .desktop filesADudeCalledLeo
Signed-off-by: ADudeCalledLeo <7997354+Leo40Git@users.noreply.github.com>
2022-11-13Linux: fixesADudeCalledLeo
- Fix shortcut icons - Possibly fix shortcut creation on AppImages - Fix shortcut not working if path to launcher contains spaces Signed-off-by: ADudeCalledLeo <7997354+Leo40Git@users.noreply.github.com>
2022-11-13Mac: attempt 2ADudeCalledLeo
- create .command files instead of .sh - fix shortcuts not working if path to Prism Launcher contains spaces - fix path to executable in shortcutss - add check for running from extracted folder (prevents creating shortcuts) Signed-off-by: ADudeCalledLeo <7997354+Leo40Git@users.noreply.github.com>
2022-11-12fix: implement code review suggestionsSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-11-12feat: add dryRun to copy operationSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-11-12refactor: allow copy operation with whitelistSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-11-12refactor #if checksADudeCalledLeo
Signed-off-by: ADudeCalledLeo <7997354+Leo40Git@users.noreply.github.com>
2022-11-12Mac: now supported! [UNTESTED]ADudeCalledLeo
Signed-off-by: ADudeCalledLeo <7997354+Leo40Git@users.noreply.github.com>
2022-11-12Linux: fix path shortcut is written toADudeCalledLeo
Co-authored-by: flow <flowlnlnln@gmail.com> Signed-off-by: ADudeCalledLeo <7997354+Leo40Git@users.noreply.github.com>
2022-11-12Apply suggestions from code reviewADudeCalledLeo
Co-authored-by: Sefa Eyeoglu <contact@scrumplex.net> Signed-off-by: ADudeCalledLeo <7997354+Leo40Git@users.noreply.github.com>
2022-11-12Add missing fail check for CoInitializeADudeCalledLeo
Add a few comments Signed-off-by: ADudeCalledLeo <7997354+Leo40Git@users.noreply.github.com>
2022-11-12Windows: implement FS::createShortcutADudeCalledLeo
Signed-off-by: ADudeCalledLeo <7997354+Leo40Git@users.noreply.github.com>
2022-11-11Merge pull request #304 from Ryex/move-downloadsflow
Fixes https://github.com/PrismLauncher/PrismLauncher/issues/222
2022-11-04refactor: move FS's toStdString to StringUtilsflow
This is so that anyone can use it :) Signed-off-by: flow <flowlnlnln@gmail.com>
2022-11-01chore(remove FS::copyFile):Rachel Powers
Now that #333 is merged and FS::copy works on non directory copyFile can be removed. Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2022-11-01code quality cleanupRachel Powers
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2022-11-01minor clean up and add some docsRachel Powers
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2022-11-01copy found mods to instance (FTB and Flame)Rachel Powers
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2022-11-01Merge pull request #333 from flowln/fix_atl_packs_post_modpack_updatetimoreo
2022-10-31fix: do not trash instances in FlatpakSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-10-28fix: copy single files too in FS::copyflow
eek Signed-off-by: flow <flowlnlnln@gmail.com>
2022-10-27chore: add comment about copy bugSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-10-18Merge pull request #28 from flowln/fix_copyDioEgizio
2022-10-15fix: include hidden files when copying instancesflow
fixes instance ccopy on linux .-. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-10-14feat!: use ghc/filesystem in place of std's one if neededflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-12fix: use std::wstring for Windows filenamesflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-12chore: make DirNameFromString add normal duplicate identifierflow
Wrap the number in parenthesis to be similar to other software. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-12refactor: remove Win32 'crap' in FileSystemflow
We should use std::filesystem symlink and hardlink functions instead. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-12refactor: use std::filesystem for overridesflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-12refactor: use std::filesystem for path deletionflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-09-12refactor: use std::filesystem for file copyflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-28fix: ensure destination file paths exist when overriding foldersflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-30Trash instances instead of deleting (when possible) (#549)Ryan Cao
Squashed because of :pofat: commit history
2022-07-10chore: update license headersSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-07-10refactor: fix deprecation up to Qt 6Sefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-06-11fix: apply client overrides in mrpacksflow
another oopsie x.x
2021-12-12Changes required to support FreeBSDGraeme Geldenhuys
2021-07-25NOISSUE Flatten gui and logic libraries into MultiMCPetr Mrázek