mirror of
https://github.com/PabloMK7/citra.git
synced 2025-10-11 20:10:03 +00:00
service: Resolve trivially avoidable copies (#5237)
* am/am: Avoid redundant copy in GetProgramInfoFromCia() We can just use a reference to the title metadata. Avoids copying several data entries and std::vector instances that don't need to be copied. * hle/service: Avoid redundant copying of std::string GetUserPath() returns the path as a reference, so we can make use of said reference to avoid making copies.
This commit is contained in:
parent
e54b640e0b
commit
8014c67faa
5 changed files with 22 additions and 18 deletions
|
@ -1222,7 +1222,7 @@ void Module::Interface::GetProgramInfoFromCia(Kernel::HLERequestContext& ctx) {
|
|||
return;
|
||||
}
|
||||
|
||||
FileSys::TitleMetadata tmd = container.GetTitleMetadata();
|
||||
const FileSys::TitleMetadata& tmd = container.GetTitleMetadata();
|
||||
TitleInfo title_info = {};
|
||||
container.Print();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue