| Age | Commit message (Collapse) | Author |
|
Rather than rely on the developer to do the right thing,
just make the default behavior safely deallocate resources.
If shared semantics are ever needed in the future, the
constructor that takes a unique_ptr for shared_ptr can
be used.
|
|
ISOFile and GameFile were using IsWiiDisc() and IsWadFile() to set
an enum value. The volume might as well return an enum directly.
I increased the Qt CACHE_REVISION because m_platform now is saved as u32
instead of int, but increasing the wx CACHE_REVISION is not necessary.
|
|
Filesystem: Return file list reference instead of modifying argument
|
|
|
|
|
|
|
|
This is good for performance when FileMontior is selected
but the log level only is set to notice or warning.
The ability to do this wasn't available until recently:
1ed41672f50c9cfe7aa4ab5aa3b73f7e41029124
|
|
Don't read from disk when checking volume type
|
|
Should be faster than relying on the OS to cache the magic words.
Also gets rid of the odd recursive call in VolumeDirectory.
|
|
|
|
|
|
This in done in the same way as GC discs, unlike the previous implementation.
|
|
|
|
Doesn't need to be instantiated every time the function is called.
|
|
|
|
|
|
|
|
|
|
When CFileSystemGCWii::GetFileName can't find a valid filename it would return nullptr.
nullptr as a std::string throws an assert within the std lib.
So return an empty string and check if it is empty or not
|
|
Technically this also simplifies on disc filename building in general.
|
|
Add more sound file extensions to FileMonitor's IsSoundFile.
|
|
and s/\bNULL\b/nullptr/g for *.cpp/h/mm files not compiled on my machine
|
|
|
|
.adx is used in various games, so this should definitely be here.
|
|
Now if more sound types are found, they just need to simply be added to
the unordered set.
- Also changed ShowSound() to IsSoundFile()
- Fixed IsSoundFile’s definition in FileMonitor.h. This whole time it
has been defined as a void method, when in reality it was a bool
function.
- Changed the FileMonitor’s string parameters to be constant references.
|
|
detected by this change).
|
|
|
|
|