mirror of
https://github.com/love2d/love.git
synced 2026-08-20 04:30:09 +02:00
small filesystem code cleanup
This commit is contained in:
@@ -21,7 +21,6 @@
|
|||||||
#include "Event.h"
|
#include "Event.h"
|
||||||
|
|
||||||
#include "common/int.h"
|
#include "common/int.h"
|
||||||
#include "filesystem/NativeFile.h"
|
|
||||||
#include "filesystem/Filesystem.h"
|
#include "filesystem/Filesystem.h"
|
||||||
#include "keyboard/sdl/Keyboard.h"
|
#include "keyboard/sdl/Keyboard.h"
|
||||||
#include "joystick/JoystickModule.h"
|
#include "joystick/JoystickModule.h"
|
||||||
|
|||||||
@@ -58,8 +58,6 @@ namespace love
|
|||||||
namespace filesystem
|
namespace filesystem
|
||||||
{
|
{
|
||||||
|
|
||||||
class NativeFile;
|
|
||||||
|
|
||||||
class Filesystem : public Module
|
class Filesystem : public Module
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -690,7 +690,9 @@ std::string Filesystem::getFullCommonPath(CommonPath path)
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
fullPaths[path] = canonicalizeRealPath(fullPaths[path].c_str());
|
if (!fullPaths[path].empty())
|
||||||
|
fullPaths[path] = canonicalizeRealPath(fullPaths[path].c_str());
|
||||||
|
|
||||||
return fullPaths[path];
|
return fullPaths[path];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user