mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2025-03-17 21:50:11 +03:00
1.5.1
- fixed shader's work in the builded launcher - changed env variables overwritings priority
This commit is contained in:
parent
ccfafd9cc8
commit
51ef9abf37
2 changed files with 20 additions and 15 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "an-anime-game-launcher",
|
||||
"version": "1.5.0",
|
||||
"version": "1.5.1",
|
||||
"description": "An Anime Game Linux Launcher",
|
||||
"author": "Nikita Podvirnyy <suimin.tu.mu.ga.mi@gmail.com>",
|
||||
"contributors": [
|
||||
|
|
|
@ -117,6 +117,17 @@ $(() => {
|
|||
|
||||
else
|
||||
{
|
||||
// Initializing Discord RPC
|
||||
if (DiscordRPC.isActive())
|
||||
{
|
||||
DiscordRPC.setActivity({
|
||||
details: 'In-Game',
|
||||
largeImageKey: 'game',
|
||||
largeImageText: 'An Anime Game Launcher',
|
||||
startTimestamp: Date.now()
|
||||
});
|
||||
}
|
||||
|
||||
// Selecting wine executable
|
||||
let wineExeutable = 'wine';
|
||||
|
||||
|
@ -158,19 +169,13 @@ $(() => {
|
|||
// Shaders
|
||||
if (LauncherLib.getConfig('shaders') != 'none')
|
||||
{
|
||||
const userShadersFile = path.join(constants.shadersDir, LauncherLib.getConfig('shaders'), 'vkBasalt.conf');
|
||||
const launcherShadersFile = path.join(constants.launcherDir, 'vkBasalt.conf');
|
||||
|
||||
env['ENABLE_VKBASALT'] = 1;
|
||||
env['VKBASALT_CONFIG_FILE'] = path.join(constants.shadersDir, LauncherLib.getConfig('shaders'), 'vkBasalt.conf');
|
||||
}
|
||||
|
||||
// Initializing Discord RPC
|
||||
if (DiscordRPC.isActive())
|
||||
{
|
||||
DiscordRPC.setActivity({
|
||||
details: 'In-Game',
|
||||
largeImageKey: 'game',
|
||||
largeImageText: 'An Anime Game Launcher',
|
||||
startTimestamp: Date.now()
|
||||
});
|
||||
env['VKBASALT_CONFIG_FILE'] = launcherShadersFile;
|
||||
|
||||
fs.writeFileSync(launcherShadersFile, fs.readFileSync(userShadersFile));
|
||||
}
|
||||
|
||||
// Starting the game
|
||||
|
@ -181,8 +186,8 @@ $(() => {
|
|||
env: {
|
||||
...process.env,
|
||||
WINEPREFIX: constants.prefixDir,
|
||||
...LauncherLib.getConfig('env'),
|
||||
...env
|
||||
...env, // User-defined variables should be the most important
|
||||
...LauncherLib.getConfig('env')
|
||||
}
|
||||
}, (err: any, stdout: any, stderr: any) => {
|
||||
console.log(`%c> Game closed`, 'font-size: 16px');
|
||||
|
|
Loading…
Add table
Reference in a new issue