Shawn Hoffman
84128d9532
rename Common/File to Common/IOFile
2021-01-27 14:29:48 -08:00
JosJuice
b43f7c85cc
DiscIO: Fix recursive directory extraction
...
https://bugs.dolphin-emu.org/issues/12331
2020-12-03 21:13:53 +01:00
Lioncash
689eec5304
DiscIO: Make use of fmt-capable panic alerts
...
Migrates the DiscIO code over to fmt.
2020-11-11 01:09:42 -05:00
Lioncash
e93fbb7c5e
DiscIO: Migrate logging over to fmt
...
Eliminates quite a bit of the PRI* macros used for handling 64-bit
values.
2020-10-22 15:41:42 -04:00
JosJuice
d17b801518
DiscIO: Deduplicate some VolumeGC/VolumeWii code
2020-06-25 16:37:21 +02:00
JosJuice
0f5a4b37ee
DiscIO: Add functions CreateDisc and CreateWAD
...
...in addition to the existing function CreateVolume
(renamed from CreateVolumeFromFilename).
Lets code easily add constraints such as not letting the user
select a WAD file when using the disc changing functionality.
2019-07-18 22:29:04 +02:00
JosJuice
f25367a7a2
DiscIO: Avoid copies when comparing FileSystemGCWii file names
2019-05-29 14:53:39 +02:00
JosJuice
d4b069f458
DiscIO: Use std::string_view in FileSystem::FindFileInfo
...
...and in the functions that call it.
2019-05-29 08:29:56 +02:00
Techjar
ff972e3673
Reformat repo to clang-format 7.0 rules
2019-05-06 18:48:04 +00:00
JosJuice
ca36c977d9
DiscIO: Remove m_partition and m_volume from FileSystem
...
The last commit made m_partition unnecessary, and m_volume
has been unnecessary ever since the PR that added DiscExtractor.
2017-09-15 18:57:05 +02:00
JosJuice
fb2016838e
Merge pull request #5864 from JosJuice/directoryblob-disccontentcontainer
...
DirectoryBlob: Improve ReadInternal
2017-08-23 18:48:24 +02:00
JosJuice
5e3c98af1d
DiscIO: Add a Volume::ReadSwappedAndShifted function
...
This is a fairly common operation, so let's make a utility
function for it to cut down on code duplication.
2017-08-02 22:00:51 +02:00
JosJuice
f7032f8deb
FileSystemGCWii: Don't add 0-size files to m_offset_file_info_cache
...
This is done in order to reduce the risk of files not being added
due to them having the same end offset as another file.
2017-08-01 21:58:25 +02:00
JosJuice
c64d668c3c
Use find_first_not_of in FileSystemGCWii::FindFileInfo
2017-07-16 13:19:18 +02:00
JosJuice
93e9740683
Drop unnecessary check from FileSystemGCWii::FindFileInfo
...
If the current file_info is a file, the ranged for loop will
run 0 times, and we'll reach the last line of the function.
2017-07-04 20:40:32 +02:00
JosJuice
6a31d2598e
Support leading slashes in FileSystemGCWii::FindFileInfo
2017-07-04 20:40:08 +02:00
JosJuice
478c4fd1f3
FileSystemGCWii: Use DiscExtractor's FST offset/size functions
2017-06-28 22:25:09 +02:00
JosJuice
d06b532150
DiscIO: Move parts of Filesystem to the new file DiscExtractor
2017-06-28 22:21:23 +02:00
JosJuice
b440dbd998
FileSystemGCWii: Use case insensitive comparison in FindFileInfo
...
This was a regression in f49b64c . Some games seem to name the
banner file OPENING.BNR instead of opening.bnr.
Should fix https://bugs.dolphin-emu.org/issues/10354
2017-06-24 14:06:31 +02:00
Leo Lam
8f460a1cda
Merge pull request #5611 from JosJuice/reorganize-file-namespace
...
Reorganize File namespace
2017-06-15 23:28:36 +02:00
JosJuice
f09ceaa735
Move IOFile to a separate file
...
Reduces the number of files that need to be recompiled
when making changes to FileUtil.h.
2017-06-15 21:33:50 +02:00
JosJuice
583406d900
Filesystem: Make destructors = default
2017-06-14 15:26:04 +02:00
JosJuice
0b7d2e7c68
Filesystem: Modernize variable names
2017-06-14 15:25:09 +02:00
JosJuice
e3a2cd827a
Filesystem: Do more validity checking in the constructor
...
This makes it possible to catch errors earlier so that file systems
simply fail to load instead of behaving oddly. It also makes it possible
to check for errors that weren't checkable before, like the end of a
directory being after the end of the parent directory.
2017-06-14 15:25:05 +02:00
JosJuice
ee27be06d7
Filesystem: Add a cache for finding file info by disc offset
...
FileMonitor calls this every time a read happens, and there's no code that
only calls this a small number of times, so having a cache is worthwhile.
2017-06-14 15:25:02 +02:00