1
0
Fork 0
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:
jugeeya 2020-06-15 12:42:19 -07:00 committed by GitHub
parent 94d9d5623d
commit 12a6ede92b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()