Update src/core/loader.cpp

Co-authored-by: GPUCode <47210458+GPUCode@users.noreply.github.com>
This commit is contained in:
georgemoralis 2024-02-29 16:55:04 +02:00 committed by GitHub
parent cc48df327e
commit c9895326e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,8 +6,8 @@
#include "loader.h"
FileTypes DetectFileType(const std::string& filepath) {
if (filepath.size() == 0) // no file loaded
{
// No file loaded
if (filepath.empty()) {
return FileTypes::Unknown;
}
Common::FS::IOFile file;