summaryrefslogtreecommitdiff
path: root/src/core/loader/loader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/loader/loader.cpp')
-rw-r--r--src/core/loader/loader.cpp4
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 */
21const FileType IdentifyFile(const std::string &filename) { 21FileType 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 */
48const ResultStatus LoadFile(std::string& filename) { 48ResultStatus 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)) {