Cleanup for the latest clang-format version.
This commit is contained in:
@@ -30,22 +30,22 @@ bool PathExists(const std::wstring& path);
|
||||
// This can be used to ensure the destination path for a new file exists before
|
||||
// attempting to create it.
|
||||
bool CreateParentFolder(const std::wstring& path);
|
||||
|
||||
|
||||
// Creates a folder at the specified path.
|
||||
// Returns true if the path was created.
|
||||
bool CreateFolder(const std::wstring& path);
|
||||
|
||||
|
||||
// Recursively deletes the files and folders at the specified path.
|
||||
// Returns true if the path was found and removed.
|
||||
bool DeleteFolder(const std::wstring& path);
|
||||
|
||||
|
||||
// Returns true if the given path exists and is a folder.
|
||||
bool IsFolder(const std::wstring& path);
|
||||
|
||||
// Opens the file at the given path with the specified mode.
|
||||
// This behaves like fopen and the returned handle can be used with stdio.
|
||||
FILE* OpenFile(const std::wstring& path, const char* mode);
|
||||
|
||||
|
||||
// Deletes the file at the given path.
|
||||
// Returns true if the file was found and removed.
|
||||
bool DeleteFile(const std::wstring& path);
|
||||
|
||||
@@ -13,14 +13,12 @@
|
||||
#include <thread>
|
||||
|
||||
#include "xenia/base/logging.h"
|
||||
#include "xenia/base/platform_win.h"
|
||||
|
||||
// winsock includes must come after platform_win.h:
|
||||
// clang-format off
|
||||
#include "xenia/base/platform_win.h"
|
||||
#include <mstcpip.h> // NOLINT(build/include_order)
|
||||
#include <winsock2.h> // NOLINT(build/include_order)
|
||||
#include <ws2tcpip.h> // NOLINT(build/include_order)
|
||||
// clang-format on
|
||||
|
||||
namespace xe {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user