Skip to content

Commit

Permalink
disable log messages, add library json
Browse files Browse the repository at this point in the history
  • Loading branch information
Zyian committed Feb 23, 2024
1 parent bd615fc commit 248bd90
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 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 = "nexus-config-backup"
version = "0.1.0"
version = "0.1.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
6 changes: 6 additions & 0 deletions library.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"id": -50602,
"name": "Addon Config Backup Tool",
"description": "A small tool to help keep your addons backed up in case of nuking your GW2 install folder",
"download": "https://github.com/mythwright/nexus-config-backup"
}
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ pub unsafe fn run_backup() {

if path.is_file() {
if name.to_str().unwrap().to_string().contains(".dll") {
log(ELogLevel::DEBUG, format!("Skipping {path:?}...").to_string());
// log(ELogLevel::DEBUG, format!("Skipping {path:?}...").to_string());
continue;
}
#[allow(deprecated)]
Expand All @@ -104,9 +104,9 @@ pub unsafe fn run_backup() {
zip.write_all(&buffer).unwrap();
buffer.clear();

log(ELogLevel::DEBUG, format!("Adding {path:?} as {name:?}...").to_string());
// log(ELogLevel::DEBUG, format!("Adding {path:?} as {name:?}...").to_string());
} else if !name.as_os_str().is_empty() {
log(ELogLevel::DEBUG, format!("Adding dir {path:?} as {name:?}...").to_string());
// log(ELogLevel::DEBUG, format!("Adding dir {path:?} as {name:?}...").to_string());
#[allow(deprecated)]
zip.add_directory_from_path(name, options).unwrap();
}
Expand Down Expand Up @@ -148,7 +148,7 @@ pub extern "C" fn GetAddonDef() -> *mut AddonDefinition {
version: AddonVersion {
major: 0,
minor: 1,
build: 0,
build: 1,
revision: 0,
},
author: s!("Zyian").0 as _,
Expand Down

0 comments on commit 248bd90

Please sign in to comment.