Browse Source
Merge pull request #2293 from DarkLordZach/system-constants
Merge pull request #2293 from DarkLordZach/system-constants
core: Remove duplicated account JPEG data structurepull/15/merge
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 43 additions and 28 deletions
-
2src/core/CMakeLists.txt
-
17src/core/constants.cpp
-
17src/core/constants.h
-
20src/core/hle/service/acc/acc.cpp
-
15src/yuzu/applets/profile_select.cpp
@ -0,0 +1,17 @@ |
|||
// Copyright 2019 yuzu Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
#include "core/constants.h"
|
|||
|
|||
namespace Core::Constants { |
|||
const std::array<u8, 107> ACCOUNT_BACKUP_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, 0x0c, 0x0f, 0x0c, 0x0a, 0x0b, 0x0e, |
|||
0x0b, 0x09, 0x09, 0x0d, 0x11, 0x0d, 0x0e, 0x0f, 0x10, 0x10, 0x11, 0x10, 0x0a, 0x0c, 0x12, 0x13, |
|||
0x12, 0x10, 0x13, 0x0f, 0x10, 0x10, 0x10, 0xff, 0xc9, 0x00, 0x0b, 0x08, 0x00, 0x01, 0x00, 0x01, |
|||
0x01, 0x01, 0x11, 0x00, 0xff, 0xcc, 0x00, 0x06, 0x00, 0x10, 0x10, 0x05, 0xff, 0xda, 0x00, 0x08, |
|||
0x01, 0x01, 0x00, 0x00, 0x3f, 0x00, 0xd2, 0xcf, 0x20, 0xff, 0xd9, |
|||
}}; |
|||
} |
|||
@ -0,0 +1,17 @@ |
|||
// Copyright 2019 yuzu Emulator Project |
|||
// Licensed under GPLv2 or any later version |
|||
// Refer to the license.txt file included. |
|||
|
|||
#pragma once |
|||
|
|||
#include "common/common_types.h" |
|||
|
|||
// This is to consolidate system-wide constants that are used by multiple components of yuzu. |
|||
// This is especially to prevent the case of something in frontend duplicating a constexpr array or |
|||
// directly including some service header for the sole purpose of data. |
|||
namespace Core::Constants { |
|||
|
|||
// ACC Service - Blank JPEG used as user icon in absentia of real one. |
|||
extern const std::array<u8, 107> ACCOUNT_BACKUP_JPEG; |
|||
|
|||
} // namespace Core::Constants |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue