This commit is contained in:
SpikeHD
2022-06-01 17:49:10 -07:00
parent 7d0326dcdf
commit da6d05c7d0
2 changed files with 4 additions and 4 deletions

View File

@@ -27,8 +27,8 @@ select:focus {
}
.App {
background-size: contain !important;
background-position: center;
background-size: cover !important;
background-position: center !important;
}
.TopButton {

View File

@@ -76,8 +76,8 @@ class App extends React.Component<IProps, IState> {
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) {