mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 00:59:44 -06:00
IOFile: Get rid of IOFile's ReleaseHandle function
Transfer of handles should be done via std::move.
This commit is contained in:
@ -827,15 +827,12 @@ u32 GCMemcard::ImportGci(const std::string& inputFile, const std::string& output
|
||||
if (!gci)
|
||||
return OPENFAIL;
|
||||
|
||||
u32 result = ImportGciInternal(gci.ReleaseHandle(), inputFile, outputFile);
|
||||
|
||||
return result;
|
||||
return ImportGciInternal(std::move(gci), inputFile, outputFile);
|
||||
}
|
||||
|
||||
u32 GCMemcard::ImportGciInternal(FILE* gcih, const std::string& inputFile,
|
||||
u32 GCMemcard::ImportGciInternal(File::IOFile&& gci, const std::string& inputFile,
|
||||
const std::string& outputFile)
|
||||
{
|
||||
File::IOFile gci(gcih);
|
||||
unsigned int offset;
|
||||
std::string fileType;
|
||||
SplitPath(inputFile, nullptr, nullptr, &fileType);
|
||||
|
Reference in New Issue
Block a user