1.2.3
- apply selected session before launching the game
This commit is contained in:
parent
f2efb2c8bf
commit
ccfbd5f22a
4 changed files with 16 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "anime-launcher-sdk"
|
||||
version = "1.2.2"
|
||||
version = "1.2.3"
|
||||
authors = ["Nikita Podvirnyy <suimin.tu.mu.ga.mi@gmail.com>"]
|
||||
license = "GPL-3.0"
|
||||
readme = "README.md"
|
||||
|
|
|
@ -245,6 +245,11 @@ pub fn run() -> anyhow::Result<()> {
|
|||
|
||||
command.envs(config.game.environment);
|
||||
|
||||
#[cfg(feature = "sessions")]
|
||||
if let Some(current) = Sessions::get_current()? {
|
||||
Sessions::apply(current, &folders.prefix)?;
|
||||
}
|
||||
|
||||
// Run command
|
||||
|
||||
let variables = command
|
||||
|
|
|
@ -181,6 +181,11 @@ pub fn run() -> anyhow::Result<()> {
|
|||
|
||||
command.envs(config.game.environment);
|
||||
|
||||
#[cfg(feature = "sessions")]
|
||||
if let Some(current) = Sessions::get_current()? {
|
||||
Sessions::apply(current, &folders.prefix)?;
|
||||
}
|
||||
|
||||
// Run command
|
||||
|
||||
let variables = command
|
||||
|
|
|
@ -182,6 +182,11 @@ pub fn run() -> anyhow::Result<()> {
|
|||
|
||||
command.envs(config.game.environment);
|
||||
|
||||
#[cfg(feature = "sessions")]
|
||||
if let Some(current) = Sessions::get_current()? {
|
||||
Sessions::apply(current, &folders.prefix)?;
|
||||
}
|
||||
|
||||
// Run command
|
||||
|
||||
let variables = command
|
||||
|
|
Loading…
Reference in a new issue