- added GameMode support (thanks to Laurin Neff)
- updated statistics
This commit is contained in:
Observer KRypt0n_ 2021-11-25 13:51:55 +02:00
parent 73d407cdb0
commit 1330fca046
No known key found for this signature in database
GPG key ID: DC5D4EC1303465DA
10 changed files with 39 additions and 24 deletions

View file

@ -14,9 +14,9 @@
| Game version | Launcher version | Patch version |
| :---: | :---: | :---: |
| 2.3.0 | 1.5.7 | 2.3.0 testing ⚠️ |
| 2.3.0 | 1.5.8 | 2.3.0 testing ⚠️ |
We have our own [An Anime Game](https://discord.gg/MA8fTBarfj) discord server where you can ask any questions
We have our own [An Anime Game](https://discord.gg/ck37X6UWBp) discord server where you can ask any questions
### AppImage
@ -72,6 +72,7 @@ sudo pacman -Syu wine winetricks unzip tar git
| --- | --- |
| [MangoHud](https://github.com/flightlessmango/MangoHud) | To use MangoHud |
| [vkBasalt](https://github.com/DadSchoorse/vkBasalt) | To use shaders |
| [GameMode](https://github.com/FeralInteractive/gamemode) | To use GameMode (performance optimisation) |
These requirements can't be easily installed so you should do it manually
@ -121,9 +122,10 @@ npm start
- [notahuman's](https://notabug.org/Krock/GI-on-Linux/src/master/static/vkBasalt_notahuman.conf) prime preset v2
* <s>Make shaders manager hidden if vkBasalt is not installed</s> *(1.5.4)*
* <s>Make MangoHud option hidden if it is not installed</s> *(1.5.4)*
* <s>GameMode integration ([issue 28](https://notabug.org/nobody/an-anime-game-launcher/issues/28), [pull request 30](https://notabug.org/nobody/an-anime-game-launcher/pulls/30))</s> *(1.5.8)*
* DXVK logs auto-deletion option
* Fix button flickering at start when the launcher's state updates
* Wine prefix folder selection
* Wine prefix folder selection *(symlinks?)*
* Game's update pre-installation
* Screenshots explorer
* Make force launch button when the launcher's repository is unavailable *(waiting for the repository's unavailability lmao)*
@ -132,8 +134,7 @@ npm start
- Always participate in patches testing
- Applying anti login crash patch
- Remove patch
* GameMode integration (#28)
* Hybrid GPU integration (#29)
* Hybrid GPU integration ([issue 29](https://notabug.org/nobody/an-anime-game-launcher/issues/29))
> Now I'm working on moving the project to the Tauri. Also for some personal reasons I, like the patch's author, will be busy, but until Christmas, so it's a bit more than a month. I will make some critical updates if they will be required, but the development will be frozen for this period. I hope you will enjoy playing the game, and I will enjoy continuing the development of this project
>

View file

@ -1,6 +1,6 @@
{
"name": "an-anime-game-launcher",
"version": "1.5.7",
"version": "1.5.8",
"description": "An Anime Game Linux Launcher",
"author": "Nikita Podvirnyy <suimin.tu.mu.ga.mi@gmail.com>",
"contributors": [

View file

@ -10,7 +10,7 @@
"ToggleShadersText": "ホームボタンを使用してゲーム内のシェーダを切り替えます",
"Shaders": "シェーダ",
"ReshadeNotInstalled": "vkBasaltとreshade-shadersライブラリをインストールしていません",
"GameModeNotInstalled": "You don't have GameMode installed",
"GameModeNotInstalled": "GameModeドがインストールされていません",
"Author": "著者",
"NoImages": "画像は追加されていません",
"SettingsTitle": "設定",

View file

@ -10,7 +10,7 @@
"ToggleShadersText": "홈 버튼을 사용하여 게임에서 쉐이더를 전환하십시오",
"Shaders": "쉐이더",
"ReshadeNotInstalled": "vkBasalt 및 reshade-shaders 라이브러리를 설치하지 않았습니다",
"GameModeNotInstalled": "You don't have GameMode installed",
"GameModeNotInstalled": "GameMode 가 설치되어 있지 않습니다",
"Author": "저자",
"NoImages": "추가 된 이미지 없음",
"SettingsTitle": "설정",

View file

@ -10,7 +10,7 @@
"ToggleShadersText": "Используйте кнопку Home для переключения шейдеров в игре",
"Shaders": "Шейдеры",
"ReshadeNotInstalled": "Вы не установили vkBasalt и библиотеку reshade-shaders",
"GameModeNotInstalled": "You don't have GameMode installed",
"GameModeNotInstalled": "Вы не установили GameMode",
"Author": "Автор",
"NoImages": "Изображения не добавлены",
"SettingsTitle": "Настройки",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 592 KiB

After

Width:  |  Height:  |  Size: 594 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 52 KiB

View file

@ -150,7 +150,7 @@ $secondary: #e1e7ff
/* Checkbox */
.checkbox
display: inline-flex
display: inline-flex !important
align-items: center
font-size: larger
@ -182,6 +182,12 @@ $secondary: #e1e7ff
height: 12px
width: 12px
.checkbox-disabled
background-color: $light
.checkbox-mark
display: none
.checkbox-active
.checkbox-mark
background-color: $primary

View file

@ -178,16 +178,18 @@ $(() => {
fs.writeFileSync(launcherShadersFile, fs.readFileSync(userShadersFile));
}
let cmd = `${wineExeutable} launcher.bat`;
let command = `${wineExeutable} launcher.bat`;
if (LauncherLib.getConfig('gamemode')) {
cmd = `gamemoderun ${cmd}`;
}
/**
* Gamemode integration
*/
if (LauncherLib.getConfig('gamemode'))
command = `gamemoderun ${command}`;
// Starting the game
const startTime = Date.now();
exec(cmd, {
exec(command, {
cwd: constants.gameDir,
env: {
...process.env,

View file

@ -111,17 +111,23 @@ $(() => {
* GameMode
*/
let gameModeAvailable = 0;
process.env.PATH?.split(':').forEach(path => gameModeAvailable |= fs.existsSync(`${path}/gamemoderun`));
let gameModeAvailable = fs.existsSync('/usr/share/gamemoderun');
if(!gameModeAvailable)
$(`<p>⚠️ ${LauncherUI.i18n.translate('GameModeNotInstalled')}</p>`).insertAfter('#gamemode');
process.env.PATH?.split(':').forEach(path => gameModeAvailable ||= fs.existsSync(`${path}/gamemoderun`));
if (LauncherLib.getConfig("gamemode"))
$("#gamemode").addClass("checkbox-active");
if (!gameModeAvailable)
{
$('#gamemode')
.addClass('checkbox-disabled')
.addClass('hint--top hint--medium')
.attr('data-hint', LauncherUI.i18n.translate('GameModeNotInstalled'));
}
$("#gamemode").on("classChange", () => {
LauncherLib.updateConfig("gamemode",$("#gamemode").hasClass("checkbox-active"));
if (LauncherLib.getConfig('gamemode'))
$('#gamemode').addClass('checkbox-active');
$('#gamemode').on('classChange', () => {
LauncherLib.updateConfig('gamemode', $('#gamemode').hasClass('checkbox-active'));
});
/**
@ -131,7 +137,7 @@ $(() => {
let reshadeAvailable = fs.existsSync('/usr/share/reshade');
if (!reshadeAvailable)
process.env.PATH?.split(':').forEach(path => reshadeAvailable |= fs.existsSync(`${path}/reshade`));
process.env.PATH?.split(':').forEach(path => reshadeAvailable ||= fs.existsSync(`${path}/reshade`));
if (!reshadeAvailable)
$(`<p>⚠️ ${LauncherUI.i18n.translate('ReshadeNotInstalled')}</p>`).appendTo('#shaders');