Skip to content

Commit

Permalink
Add splash image to backup file (#798)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pelsin committed Jan 15, 2024
1 parent 5f52c97 commit e912451
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
17 changes: 8 additions & 9 deletions www/server/app.js
Expand Up @@ -47,7 +47,6 @@ app.get('/api/getDisplayOptions', (req, res) => {
splashMode: 3,
splashChoice: 0,
splashDuration: 0,
splashImage: Array(16 * 64).fill(255),
buttonLayoutCustomOptions: {
params: {
layout: 2,
Expand Down Expand Up @@ -93,14 +92,14 @@ app.get('/api/getGamepadOptions', (req, res) => {
profileNumber: 1,
ps4ControllerType: 0,
debounceDelay: 5,
inputModeB1: 1,
inputModeB2: 0,
inputModeB3: 2,
inputModeB4: 4,
inputModeL1: -1,
inputModeL2: -1,
inputModeR1: -1,
inputModeR2: 3,
inputModeB1: 1,
inputModeB2: 0,
inputModeB3: 2,
inputModeB4: 4,
inputModeL1: -1,
inputModeL2: -1,
inputModeR1: -1,
inputModeR2: 3,
ps4ReportHack: 0,
hotkey01: {
auxMask: 32768,
Expand Down
1 change: 1 addition & 0 deletions www/src/Locales/en/BackupPage.jsx
Expand Up @@ -14,4 +14,5 @@ export default {
'api-pins-text': 'Pin Mappings',
'api-profiles-text': 'Profile Mappings',
'api-addons-text': 'Add-Ons',
'api-splash-text': 'Splash Image',
};
5 changes: 5 additions & 0 deletions www/src/Pages/BackupPage.jsx
Expand Up @@ -15,6 +15,11 @@ const API_BINDING = {
get: WebApi.getDisplayOptions,
set: WebApi.setDisplayOptions,
},
splash: {
label: 'Splash Image',
get: WebApi.getSplashImage,
set: WebApi.setSplashImage,
},
gamepad: {
label: 'Gamepad',
get: WebApi.getGamepadOptions,
Expand Down

0 comments on commit e912451

Please sign in to comment.