Skip to content

Commit

Permalink
small filesystem code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Jan 4, 2025
1 parent e40485d commit 8e98711
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/modules/event/sdl/Event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 0 additions & 2 deletions src/modules/filesystem/Filesystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ namespace love
namespace filesystem
{

class NativeFile;

class Filesystem : public Module
{
public:
Expand Down
4 changes: 3 additions & 1 deletion src/modules/filesystem/physfs/Filesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}

Expand Down

0 comments on commit 8e98711

Please sign in to comment.