- apply selected session before launching the game
This commit is contained in:
Observer KRypt0n_ 2023-05-16 12:10:17 +02:00
parent f2efb2c8bf
commit ccfbd5f22a
4 changed files with 16 additions and 1 deletions

View file

@ -1,6 +1,6 @@
[package] [package]
name = "anime-launcher-sdk" name = "anime-launcher-sdk"
version = "1.2.2" version = "1.2.3"
authors = ["Nikita Podvirnyy <suimin.tu.mu.ga.mi@gmail.com>"] authors = ["Nikita Podvirnyy <suimin.tu.mu.ga.mi@gmail.com>"]
license = "GPL-3.0" license = "GPL-3.0"
readme = "README.md" readme = "README.md"

View file

@ -245,6 +245,11 @@ pub fn run() -> anyhow::Result<()> {
command.envs(config.game.environment); command.envs(config.game.environment);
#[cfg(feature = "sessions")]
if let Some(current) = Sessions::get_current()? {
Sessions::apply(current, &folders.prefix)?;
}
// Run command // Run command
let variables = command let variables = command

View file

@ -181,6 +181,11 @@ pub fn run() -> anyhow::Result<()> {
command.envs(config.game.environment); command.envs(config.game.environment);
#[cfg(feature = "sessions")]
if let Some(current) = Sessions::get_current()? {
Sessions::apply(current, &folders.prefix)?;
}
// Run command // Run command
let variables = command let variables = command

View file

@ -182,6 +182,11 @@ pub fn run() -> anyhow::Result<()> {
command.envs(config.game.environment); command.envs(config.game.environment);
#[cfg(feature = "sessions")]
if let Some(current) = Sessions::get_current()? {
Sessions::apply(current, &folders.prefix)?;
}
// Run command // Run command
let variables = command let variables = command