mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2025-03-14 02:16:10 +00:00
Remove conf file on startup
This commit is contained in:
parent
94d9d5623d
commit
12a6ede92b
1 changed files with 12 additions and 0 deletions
12
src/lib.rs
12
src/lib.rs
|
@ -39,6 +39,18 @@ pub fn main() {
|
|||
buffer
|
||||
);
|
||||
mkdir("sd:/TrainingModpack/\u{0}".as_bytes().as_ptr(), 0777);
|
||||
|
||||
if access(
|
||||
"sd:/TrainingModpack/training_modpack.conf\u{0}"
|
||||
.as_bytes()
|
||||
.as_ptr(),
|
||||
0,
|
||||
) != -1 {
|
||||
remove("sd:/TrainingModpack/training_modpack.conf\u{0}"
|
||||
.as_bytes()
|
||||
.as_ptr());
|
||||
}
|
||||
|
||||
let f = fopen(
|
||||
"sd:/TrainingModpack/training_modpack.log\u{0}"
|
||||
.as_bytes()
|
||||
|
|
Loading…
Add table
Reference in a new issue