Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
YDKK committed Feb 18, 2024
1 parent 35e112a commit dd5f298
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pal_world_save_repair"
version = "0.1.0"
version = "0.1.1"
edition = "2021"
build = "build.rs"

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ services:
- ./palworld:/palworld/
environment:
- PLAYERS_SAVE_PATH=/palworld/Pal/Saved/SaveGames/0/0123456789ABCDEF0123456789ABCDEF/Players
entrypoint: ""
# check and repair save data every 1 hour
command: ["/bin/sh", "-c", "while true; do sleep 3600; /app/pal_world_save_repair; done"]
restart: unless-stopped
Expand Down
5 changes: 3 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ const COMMIT_DATE: &str = env!("VERGEN_GIT_COMMIT_DATE");
const COMMIT_HASH: &str = env!("VERGEN_GIT_SHA");

fn main() {
println!("---");
println!(
"PalWorldSaveRepair v{} {} {}",
VERSION, COMMIT_DATE, COMMIT_HASH
);
println!("https://github.com/YDKK/PalWorldSaveRepair");
println!();
println!("https://github.com/YDKK/palworld-save-repair");
println!("---");

let env_key = "PLAYERS_SAVE_PATH";
let Ok(path) = &env::var(env_key) else {
Expand Down

0 comments on commit dd5f298

Please sign in to comment.