From da6d05c7d04f99eb718744adcf6b8ecf75dba270 Mon Sep 17 00:00:00 2001 From: SpikeHD Date: Wed, 1 Jun 2022 17:49:10 -0700 Subject: [PATCH] fixes --- src/ui/App.css | 4 ++-- src/ui/App.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ui/App.css b/src/ui/App.css index bece781..99074c7 100644 --- a/src/ui/App.css +++ b/src/ui/App.css @@ -27,8 +27,8 @@ select:focus { } .App { - background-size: contain !important; - background-position: center; + background-size: cover !important; + background-position: center !important; } .TopButton { diff --git a/src/ui/App.tsx b/src/ui/App.tsx index 47b62a4..4d329d7 100644 --- a/src/ui/App.tsx +++ b/src/ui/App.tsx @@ -76,8 +76,8 @@ class App extends React.Component { const cert_generated = await getConfigOption('cert_generated') const game_exe = await getConfigOption('game_install_path') const custom_bg = await getConfigOption('customBackground') - const game_path = game_exe.substring(0, game_exe.lastIndexOf('\\')) - const root_path = game_path.substring(0, game_path.lastIndexOf('\\')) + const game_path = game_exe.substring(0, game_exe.replace(/\\/g, '/').lastIndexOf('/')) + const root_path = game_path.substring(0, game_path.replace(/\\/g, '/').lastIndexOf('/')) if(!custom_bg) { if(game_path) {