summaryrefslogtreecommitdiff
path: root/src/common/file_util.cpp
diff options
context:
space:
mode:
authorGravatar James Rowe2018-01-20 00:48:02 -0700
committerGravatar James Rowe2018-01-20 16:45:11 -0700
commit096be1663682f38d572e9816e3350e0dc9f13168 (patch)
treea2f695170d9a3e0e98cebf823087cdb65d5af00f /src/common/file_util.cpp
parentCMake: Conditionally turn on bundled libs for MSVC (diff)
downloadyuzu-096be1663682f38d572e9816e3350e0dc9f13168.tar.gz
yuzu-096be1663682f38d572e9816e3350e0dc9f13168.tar.xz
yuzu-096be1663682f38d572e9816e3350e0dc9f13168.zip
Format: Run the new clang format on everything
Diffstat (limited to '')
-rw-r--r--src/common/file_util.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp
index 5ab036b34..4e1d702f7 100644
--- a/src/common/file_util.cpp
+++ b/src/common/file_util.cpp
@@ -873,20 +873,19 @@ bool IOFile::Flush() {
873} 873}
874 874
875bool IOFile::Resize(u64 size) { 875bool IOFile::Resize(u64 size) {
876 if (!IsOpen() || 876 if (!IsOpen() || 0 !=
877 0 !=
878#ifdef _WIN32 877#ifdef _WIN32
879 // ector: _chsize sucks, not 64-bit safe 878 // ector: _chsize sucks, not 64-bit safe
880 // F|RES: changed to _chsize_s. i think it is 64-bit safe 879 // F|RES: changed to _chsize_s. i think it is 64-bit safe
881 _chsize_s(_fileno(m_file), size) 880 _chsize_s(_fileno(m_file), size)
882#else 881#else
883 // TODO: handle 64bit and growing 882 // TODO: handle 64bit and growing
884 ftruncate(fileno(m_file), size) 883 ftruncate(fileno(m_file), size)
885#endif 884#endif
886 ) 885 )
887 m_good = false; 886 m_good = false;
888 887
889 return m_good; 888 return m_good;
890} 889}
891 890
892} // namespace 891} // namespace FileUtil