diff options
| -rw-r--r-- | appveyor.yml | 3 | ||||
| -rw-r--r-- | src/core/file_sys/ivfc_archive.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/service/cfg/cfg.h | 7 |
3 files changed, 5 insertions, 7 deletions
diff --git a/appveyor.yml b/appveyor.yml index 6e073ece7..d05cc2213 100644 --- a/appveyor.yml +++ b/appveyor.yml | |||
| @@ -2,7 +2,6 @@ | |||
| 2 | clone_depth: 5 | 2 | clone_depth: 5 |
| 3 | 3 | ||
| 4 | environment: | 4 | environment: |
| 5 | QTDIR: C:\Qt\5.4\msvc2013_64_opengl | ||
| 6 | BUILD_PASSWORD: | 5 | BUILD_PASSWORD: |
| 7 | secure: EXGNlWKJsCtbeImEJ5EP9qrxZ+EqUFfNy+CP61nDOMA= | 6 | secure: EXGNlWKJsCtbeImEJ5EP9qrxZ+EqUFfNy+CP61nDOMA= |
| 8 | 7 | ||
| @@ -18,7 +17,7 @@ install: | |||
| 18 | before_build: | 17 | before_build: |
| 19 | - mkdir build | 18 | - mkdir build |
| 20 | - cd build | 19 | - cd build |
| 21 | - cmake -G "Visual Studio 12 Win64" -DCITRA_USE_BUNDLED_GLFW=1 -DQt5_DIR=%QTDIR%/lib/cmake/Qt5 .. | 20 | - cmake -G "Visual Studio 14 Win64" -DCITRA_USE_BUNDLED_GLFW=1 -DCITRA_USE_BUNDLED_QT=1 .. |
| 22 | - cd .. | 21 | - cd .. |
| 23 | 22 | ||
| 24 | after_build: | 23 | after_build: |
diff --git a/src/core/file_sys/ivfc_archive.cpp b/src/core/file_sys/ivfc_archive.cpp index e16aa1491..441ca9b53 100644 --- a/src/core/file_sys/ivfc_archive.cpp +++ b/src/core/file_sys/ivfc_archive.cpp | |||
| @@ -62,7 +62,7 @@ std::unique_ptr<DirectoryBackend> IVFCArchive::OpenDirectory(const Path& path) c | |||
| 62 | //////////////////////////////////////////////////////////////////////////////////////////////////// | 62 | //////////////////////////////////////////////////////////////////////////////////////////////////// |
| 63 | 63 | ||
| 64 | size_t IVFCFile::Read(const u64 offset, const size_t length, u8* buffer) const { | 64 | size_t IVFCFile::Read(const u64 offset, const size_t length, u8* buffer) const { |
| 65 | LOG_TRACE(Service_FS, "called offset=%llu, length=%d", offset, length); | 65 | LOG_TRACE(Service_FS, "called offset=%llu, length=%zu", offset, length); |
| 66 | romfs_file->Seek(data_offset + offset, SEEK_SET); | 66 | romfs_file->Seek(data_offset + offset, SEEK_SET); |
| 67 | size_t read_length = (size_t)std::min((u64)length, data_size - offset); | 67 | size_t read_length = (size_t)std::min((u64)length, data_size - offset); |
| 68 | 68 | ||
diff --git a/src/core/hle/service/cfg/cfg.h b/src/core/hle/service/cfg/cfg.h index 231528fd6..fc2a16a04 100644 --- a/src/core/hle/service/cfg/cfg.h +++ b/src/core/hle/service/cfg/cfg.h | |||
| @@ -41,8 +41,9 @@ struct SaveConfigBlockEntry { | |||
| 41 | u16 flags; ///< The flags of the block, possibly used for access control | 41 | u16 flags; ///< The flags of the block, possibly used for access control |
| 42 | }; | 42 | }; |
| 43 | 43 | ||
| 44 | // TODO(Link Mauve): use a constexpr once MSVC starts supporting it. | 44 | static constexpr u16 C(const char code[2]) { |
| 45 | #define C(code) (u16)((code)[0] | ((code)[1] << 8)) | 45 | return code[0] | (code[1] << 8); |
| 46 | } | ||
| 46 | 47 | ||
| 47 | static const std::array<u16, 187> country_codes = {{ | 48 | static const std::array<u16, 187> country_codes = {{ |
| 48 | 0, C("JP"), 0, 0, 0, 0, 0, 0, // 0-7 | 49 | 0, C("JP"), 0, 0, 0, 0, 0, 0, // 0-7 |
| @@ -71,8 +72,6 @@ static const std::array<u16, 187> country_codes = {{ | |||
| 71 | C("SM"), C("VA"), C("BM") // 184-186 | 72 | C("SM"), C("VA"), C("BM") // 184-186 |
| 72 | }}; | 73 | }}; |
| 73 | 74 | ||
| 74 | #undef C | ||
| 75 | |||
| 76 | /** | 75 | /** |
| 77 | * CFG::GetCountryCodeString service function | 76 | * CFG::GetCountryCodeString service function |
| 78 | * Inputs: | 77 | * Inputs: |