1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-07 00:57:45 +08:00

1624 Commits

Author SHA1 Message Date
BlauFx
c6da7248ba Remove unnecessary directive 2022-12-28 14:40:32 +01:00
BlauFx
53bca947d1 Move duplicated code into its own method 2022-12-28 14:34:27 +01:00
BlauFx
b2aa2e1602 Add hardlink support for Linux 2022-12-28 13:32:49 +01:00
integer
272288c9aa fix code style and naming 2022-12-25 21:50:56 +00:00
integer
d392d1a5c0 override a sub-method instead of the whole Export() 2022-12-24 22:18:42 +00:00
integer
498d00935b limit date appending to LegacyScoreExporter only 2022-12-23 23:01:04 +00:00
Dean Herbert
ba54551313 Merge branch 'master' into guard-url-protocols 2022-12-16 18:23:16 +09:00
Dean Herbert
27c497145f Fix the MOTHERLOAD of undetected issues that are now visible thanks to net6.0 2022-12-16 18:16:26 +09:00
cdwcgt
5912dfd443
using declaration
reshaper
2022-12-15 23:42:49 +09:00
cdwcgt
cd8420bc66
Handle the case where the file cannot be found 2022-12-15 23:34:40 +09:00
cdwcgt
dadadaff65
remove try catch 2022-12-15 23:20:29 +09:00
cdwcgt
f5226bd50b
use ZipWriter
Export directly to stream instead of creating a archive
so we can cancel this anytime
2022-12-15 23:12:25 +09:00
cdwcgt
ec251664a7
use ThrowIfCancellationRequested instead of CancelRequested 2022-12-15 22:45:36 +09:00
cdwcgt
6900d0120a
change abstract implement 2022-12-15 21:39:48 +09:00
Dean Herbert
6bf1477939
Fix some hard links not being created due to missing directory structure
Co-authored-by: Bartłomiej Dach <dach.bartlomiej@gmail.com>
2022-12-15 14:17:28 +09:00
Dean Herbert
b8904fe747 Move ImportParameters to better home 2022-12-13 21:41:26 +09:00
Dean Herbert
cb16d62700 Hook up ImportParameter flow with IModelImporter caller methods 2022-12-13 21:29:32 +09:00
Dean Herbert
6bb612ce69 Move hard link availability check to helper class 2022-12-13 20:20:42 +09:00
Dean Herbert
bbf931c746 Move hard link helper functions to their own class 2022-12-13 19:55:18 +09:00
Dean Herbert
1d4230993d Hook up parameter with RealmFileStore to complete the chain 2022-12-13 19:55:18 +09:00
Dean Herbert
cf2719d4c0 Convert batchImport parameter to parameters class to allow further import configuration 2022-12-13 19:55:18 +09:00
Dean Herbert
d8de99bbe4 Check for hard link support in first run overlay 2022-12-12 13:44:09 +09:00
Dean Herbert
3b1920c060 Add code to check whether a file is a hard link 2022-12-12 13:44:09 +09:00
Dean Herbert
f27603dd6d Use hard links instead of file copy when available 2022-12-12 13:44:09 +09:00
cdwcgt
e02b8cb199
Group export methods into their respective managers 2022-12-11 18:30:24 +09:00
cdwcgt
a87bcccc42
xmldoc 2022-12-11 17:00:53 +09:00
cdwcgt
2d57633409
rename method name and add xmldoc 2022-12-11 17:00:52 +09:00
cdwcgt
fa30f3348f
onComplete should private 2022-12-11 17:00:51 +09:00
cdwcgt
951302fe61
ExportAsync use TModel 2022-12-10 00:43:03 +09:00
cdwcgt
405985ec5b
remove Component
exportStorage to private
notification should post when export instead of class being constructed
2022-12-09 23:57:03 +09:00
cdwcgt
19afce6776
Fix overwriting existing files
https://github.com/ppy/osu/pull/21468
2022-12-09 23:41:07 +09:00
cdwcgt
a1fc33668c
Merge branch 'master' into export 2022-12-09 23:40:26 +09:00
Dean Herbert
819fd5f950 Fix incorrect resolution of GameHost in LegacyImportManager 2022-12-07 17:53:14 +09:00
Piggey
75cf7bd1d2 change GetNextBestFilename()'s parameters 2022-12-01 18:44:02 +01:00
Piggey
8f59aad91c unnecessary includes 2022-11-30 18:37:50 +01:00
Piggey
8b856f1c89 make LegacyExporter use NamingUtils.GetNextBestFilename() 2022-11-30 18:32:53 +01:00
Piggey
b99ddc2acf use .Select() to trim the file extension from filename 2022-11-30 15:36:08 +01:00
Piggey
660ad913ec oh wait this affects all of the legacy exporters 2022-11-30 11:06:44 +01:00
Dawid Sośnia
f0b8b53e81
Merge branch 'ppy:master' into fix-exported-replay-overwrite 2022-11-30 10:54:12 +01:00
Piggey
5e74c4e3b7 override LegacyScoreExporter.Export() to not overwrite files 2022-11-30 10:52:41 +01:00
Piggey
f5d85f5774 make ExportStorage protected 2022-11-30 10:51:42 +01:00
cdwcgt
6adac853e8
Spite sync method ExportToStream
`uuid` to `model`
2022-11-27 09:58:54 +09:00
Dan Balasescu
7bc8908ca9 Partial everything 2022-11-27 00:00:27 +09:00
cdwcgt
162f0bb95e
filename can be private 2022-11-21 19:06:04 +09:00
cdwcgt
564f136945
add xmldoc 2022-11-21 19:04:05 +09:00
cdwcgt
9c6421a462
log the error 2022-11-21 19:00:10 +09:00
cdwcgt
e37d30a373
refactor based on reviews
removed LegacyExportManager

Separated the method of CreateZip method and the default export method
2022-11-21 18:58:01 +09:00
cdwcgt
ed53168267
typo fix 2022-11-21 17:42:11 +09:00
cdwcgt
60ef88844c
Recover accidentally deleted codes 2022-11-21 17:09:56 +09:00
cdwcgt
2653bd2f99
Make notification cannot cancel when Saving Zip Archive
This operation cannot be stopped(if not dispose stream).
so make it cannot cancel
2022-11-19 12:57:56 +09:00