small filesystem code cleanup

This commit is contained in:
Sasha Szpakowski
2025-01-04 15:52:52 -04:00
parent e40485dd12
commit 8e98711096
3 changed files with 3 additions and 4 deletions
-1
View File
@@ -21,7 +21,6 @@
#include "Event.h"
#include "common/int.h"
#include "filesystem/NativeFile.h"
#include "filesystem/Filesystem.h"
#include "keyboard/sdl/Keyboard.h"
#include "joystick/JoystickModule.h"
-2
View File
@@ -58,8 +58,6 @@ namespace love
namespace filesystem
{
class NativeFile;
class Filesystem : public Module
{
public:
+3 -1
View File
@@ -690,7 +690,9 @@ std::string Filesystem::getFullCommonPath(CommonPath path)
#endif
fullPaths[path] = canonicalizeRealPath(fullPaths[path].c_str());
if (!fullPaths[path].empty())
fullPaths[path] = canonicalizeRealPath(fullPaths[path].c_str());
return fullPaths[path];
}