Skip to content

Commit

Permalink
Rename file_system to filesystem
Browse files Browse the repository at this point in the history
  • Loading branch information
TML233 committed Oct 23, 2024
1 parent 6234d39 commit bfd3856
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions core/io/file_system.cpp → core/io/filesystem.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**************************************************************************/
/* file_system.cpp */
/* filesystem.cpp */
/**************************************************************************/
/* This file is part of: */
/* GODOT ENGINE */
Expand Down Expand Up @@ -28,7 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/

#include "file_system.h"
#include "filesystem.h"

FileSystem *FileSystem::singleton = nullptr;
FileSystem *FileSystem::get_singleton() {
Expand Down
10 changes: 5 additions & 5 deletions core/io/file_system.h → core/io/filesystem.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**************************************************************************/
/* file_system.h */
/* filesystem.h */
/**************************************************************************/
/* This file is part of: */
/* GODOT ENGINE */
Expand Down Expand Up @@ -28,12 +28,12 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/

#ifndef FILE_SYSTEM_H
#define FILE_SYSTEM_H
#ifndef FILESYSTEM_H
#define FILESYSTEM_H

#include "core/io/file_access.h"
#include "core/object/ref_counted.h"
#include "file_system_protocol.h"
#include "filesystem_protocol.h"

class FileSystem : public Object {
GDCLASS(FileSystem, Object);
Expand Down Expand Up @@ -77,4 +77,4 @@ class FileSystem : public Object {
bool file_exists(const String &p_path) const;
};

#endif // FILE_SYSTEM_H
#endif // FILESYSTEM_H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**************************************************************************/
/* file_system_protocol.cpp */
/* filesystem_protocol.cpp */
/**************************************************************************/
/* This file is part of: */
/* GODOT ENGINE */
Expand Down Expand Up @@ -28,7 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/

#include "file_system_protocol.h"
#include "filesystem_protocol.h"

Error FileSystemProtocol::get_open_error() const {
return open_error;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**************************************************************************/
/* file_system_protocol.h */
/* filesystem_protocol.h */
/**************************************************************************/
/* This file is part of: */
/* GODOT ENGINE */
Expand Down Expand Up @@ -28,8 +28,8 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/

#ifndef FILE_SYSTEM_PROTOCOL_H
#define FILE_SYSTEM_PROTOCOL_H
#ifndef FILESYSTEM_PROTOCOL_H
#define FILESYSTEM_PROTOCOL_H

#include "core/object/ref_counted.h"
#include "core/io/file_access.h"
Expand All @@ -52,4 +52,4 @@ class FileSystemProtocol : public RefCounted {
virtual bool file_exists(const String &p_path) const = 0;
};

#endif // FILE_SYSTEM_PROTOCOL_H
#endif // FILESYSTEM_PROTOCOL_H
4 changes: 2 additions & 2 deletions core/register_core_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
#include "core/input/shortcut.h"
#include "core/io/config_file.h"
#include "core/io/dir_access.h"
#include "core/io/file_system.h"
#include "core/io/file_system_protocol.h"
#include "core/io/filesystem.h"
#include "core/io/filesystem_protocol.h"
#include "core/io/dtls_server.h"
#include "core/io/http_client.h"
#include "core/io/image_loader.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**************************************************************************/
/* file_system_protocol_os_windows.h */
/* filesystem_protocol_os_windows.h */
/**************************************************************************/
/* This file is part of: */
/* GODOT ENGINE */
Expand Down Expand Up @@ -30,7 +30,7 @@

#ifdef WINDOWS_ENABLED

#include "file_system_protocol_os_windows.h"
#include "filesystem_protocol_os_windows.h"

#include <share.h> // _SH_DENYNO
#include <shlwapi.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**************************************************************************/
/* file_system_protocol_os_windows.cpp */
/* filesystem_protocol_os_windows.cpp */
/**************************************************************************/
/* This file is part of: */
/* GODOT ENGINE */
Expand Down Expand Up @@ -28,12 +28,12 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/

#ifndef FILE_SYSTEM_PROTOCOL_OS_WINDOWS_H
#define FILE_SYSTEM_PROTOCOL_OS_WINDOWS_H
#ifndef FILESYSTEM_PROTOCOL_OS_WINDOWS_H
#define FILESYSTEM_PROTOCOL_OS_WINDOWS_H

#ifdef WINDOWS_ENABLED

#include "core/io/file_system_protocol.h"
#include "core/io/filesystem_protocol.h"

class FileSystemProtocolOSWindows : public FileSystemProtocol {
private:
Expand All @@ -52,4 +52,4 @@ class FileSystemProtocolOSWindows : public FileSystemProtocol {
};
#endif // WINDOWS_ENABLED

#endif // FILE_SYSTEM_PROTOCOL_OS_WINDOWS_H
#endif // FILESYSTEM_PROTOCOL_OS_WINDOWS_H

0 comments on commit bfd3856

Please sign in to comment.