diff options
| author | 2014-06-19 17:46:05 -0400 | |
|---|---|---|
| committer | 2014-06-24 19:30:06 -0400 | |
| commit | 62b444cd17c17e6f8009d87609b620bcb51b43bd (patch) | |
| tree | c99a07441b97232f8f90f9ec06a0291a1ce5c396 /src/core/loader/loader.cpp | |
| parent | NCCH: Added RomFS loading. (diff) | |
| download | yuzu-62b444cd17c17e6f8009d87609b620bcb51b43bd.tar.gz yuzu-62b444cd17c17e6f8009d87609b620bcb51b43bd.tar.xz yuzu-62b444cd17c17e6f8009d87609b620bcb51b43bd.zip | |
Loader: Refactored use of const.
Diffstat (limited to 'src/core/loader/loader.cpp')
| -rw-r--r-- | src/core/loader/loader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/loader/loader.cpp b/src/core/loader/loader.cpp index dd0863ff3..96cb81de0 100644 --- a/src/core/loader/loader.cpp +++ b/src/core/loader/loader.cpp | |||
| @@ -18,7 +18,7 @@ namespace Loader { | |||
| 18 | * @todo (ShizZy) this function sucks... make it actually check file contents etc. | 18 | * @todo (ShizZy) this function sucks... make it actually check file contents etc. |
| 19 | * @return FileType of file | 19 | * @return FileType of file |
| 20 | */ | 20 | */ |
| 21 | const FileType IdentifyFile(const std::string &filename) { | 21 | FileType IdentifyFile(const std::string &filename) { |
| 22 | if (filename.size() == 0) { | 22 | if (filename.size() == 0) { |
| 23 | ERROR_LOG(LOADER, "invalid filename %s", filename.c_str()); | 23 | ERROR_LOG(LOADER, "invalid filename %s", filename.c_str()); |
| 24 | return FileType::Error; | 24 | return FileType::Error; |
| @@ -45,7 +45,7 @@ const FileType IdentifyFile(const std::string &filename) { | |||
| 45 | * @param filename String filename of bootable file | 45 | * @param filename String filename of bootable file |
| 46 | * @return ResultStatus result of function | 46 | * @return ResultStatus result of function |
| 47 | */ | 47 | */ |
| 48 | const ResultStatus LoadFile(std::string& filename) { | 48 | ResultStatus LoadFile(const std::string& filename) { |
| 49 | INFO_LOG(LOADER, "Loading file %s...", filename.c_str()); | 49 | INFO_LOG(LOADER, "Loading file %s...", filename.c_str()); |
| 50 | 50 | ||
| 51 | switch (IdentifyFile(filename)) { | 51 | switch (IdentifyFile(filename)) { |