summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-08-21 00:57:08 +0200
committerLioncash <mathew1800@gmail.com>2018-08-21 01:48:57 +0200
commiteb88fedc5d7943c8335fcf25b388b3fd7b0020c5 (patch)
tree153c20dc825b04616d45b966b01f86d337dde66b /src/core
parentacc: Correct IProfile's constructor initializer list order (diff)
downloadyuzu-eb88fedc5d7943c8335fcf25b388b3fd7b0020c5.tar
yuzu-eb88fedc5d7943c8335fcf25b388b3fd7b0020c5.tar.gz
yuzu-eb88fedc5d7943c8335fcf25b388b3fd7b0020c5.tar.bz2
yuzu-eb88fedc5d7943c8335fcf25b388b3fd7b0020c5.tar.lz
yuzu-eb88fedc5d7943c8335fcf25b388b3fd7b0020c5.tar.xz
yuzu-eb88fedc5d7943c8335fcf25b388b3fd7b0020c5.tar.zst
yuzu-eb88fedc5d7943c8335fcf25b388b3fd7b0020c5.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/acc/acc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/service/acc/acc.cpp b/src/core/hle/service/acc/acc.cpp
index 2ae6ff62f..274d54653 100644
--- a/src/core/hle/service/acc/acc.cpp
+++ b/src/core/hle/service/acc/acc.cpp
@@ -76,8 +76,8 @@ private:
LOG_WARNING(Service_ACC, "(STUBBED) called");
// smallest jpeg https://github.com/mathiasbynens/small/blob/master/jpeg.jpg
// TODO(mailwl): load actual profile image from disk, width 256px, max size 0x20000
- const u32 jpeg_size = 107;
- static const std::array<u8, jpeg_size> jpeg{
+ constexpr u32 jpeg_size = 107;
+ static constexpr std::array<u8, jpeg_size> jpeg{
0xff, 0xd8, 0xff, 0xdb, 0x00, 0x43, 0x00, 0x03, 0x02, 0x02, 0x02, 0x02, 0x02, 0x03,
0x02, 0x02, 0x02, 0x03, 0x03, 0x03, 0x03, 0x04, 0x06, 0x04, 0x04, 0x04, 0x04, 0x04,
0x08, 0x06, 0x06, 0x05, 0x06, 0x09, 0x08, 0x0a, 0x0a, 0x09, 0x08, 0x09, 0x09, 0x0a,
@@ -87,7 +87,7 @@ private:
0xff, 0xcc, 0x00, 0x06, 0x00, 0x10, 0x10, 0x05, 0xff, 0xda, 0x00, 0x08, 0x01, 0x01,
0x00, 0x00, 0x3f, 0x00, 0xd2, 0xcf, 0x20, 0xff, 0xd9,
};
- ctx.WriteBuffer(jpeg.data(), jpeg_size);
+ ctx.WriteBuffer(jpeg);
IPC::ResponseBuilder rb{ctx, 3};
rb.Push(RESULT_SUCCESS);
rb.Push<u32>(jpeg_size);