This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
133 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ node_modules/ | |
config.json | ||
bin/emulator/ | ||
gameinfo/ | ||
portable | ||
out/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#wrapper { | ||
text-align: center; | ||
} | ||
|
||
h4 a { | ||
color: green; | ||
} | ||
|
||
#buttons { | ||
width: 100%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
(() => { | ||
$('#buttons').on('click', ({ target }) => { | ||
if (target.tagName !== 'BUTTON') return; | ||
window.electronAPI.setPortable(target.dataset.portable === '1'); | ||
window.close(); | ||
}); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<meta http-equiv="Content-Security-Policy" | ||
content="default-src 'none'; style-src 'self'; script-src 'self'; font-src 'self';"> | ||
<link rel="stylesheet" href="css/shared.css" /> | ||
<link rel="stylesheet" href="css/portable.css" /> | ||
<script src="js/vars.js"></script> | ||
</head> | ||
|
||
<body> | ||
<div id="wrapper"> | ||
<h3>Do you want to run the Advanced Launcher in portable mode?</h3> | ||
<h4>In non-portable mode the Advanced Launcher will save its <a title="Playtime, launcher settings etc.">data</a>* | ||
to | ||
<a>%LOCALAPPDATA%\psoff-advlaunch</a> folder. | ||
</h4> | ||
<div id="buttons"> | ||
<button data-portable="1">Portable mode</button> | ||
<button data-portable="0">Non-portable mode</button> | ||
</div> | ||
</div> | ||
|
||
<script src="js/portable.js"></script> | ||
</body> | ||
|
||
</html> |