Build script for linux to locate steam dylib.

This commit is contained in:
IQuant 2024-05-17 20:44:40 +03:00
parent f5d78f2a5c
commit 4b07980ce0
2 changed files with 5 additions and 2 deletions

4
noita-proxy/build.rs Normal file
View file

@ -0,0 +1,4 @@
fn main() {
#[cfg(target_os = "linux")]
println!("cargo:rustc-link-arg=-Wl,-rpath,$ORIGIN");
}

View file

@ -3,7 +3,6 @@ use std::{fmt::Display, net::SocketAddr, sync::Arc, thread, time::Duration};
use bitcode::{Decode, Encode};
use clipboard::{ClipboardContext, ClipboardProvider};
use eframe::egui::{self, Color32};
use serde::de::Error;
use steamworks::{LobbyId, SteamAPIInitError};
use tangled::Peer;
use tracing::info;
@ -30,7 +29,7 @@ struct SteamState {
impl SteamState {
fn new() -> Result<Self, SteamAPIInitError> {
let (client, single) = steamworks::Client::init_app(480)?;
let (client, single) = steamworks::Client::init_app(881100)?;
thread::spawn(move || {
info!("Spawned steam callback thread");
loop {