Skip to content

Commit 47c59e7

Browse files
committed
0.14.0 - Process Monitor
1 parent 0ef7269 commit 47c59e7

File tree

7 files changed

+249
-40
lines changed

7 files changed

+249
-40
lines changed

Cargo.lock

Lines changed: 75 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "vrc-log"
3-
version = "0.13.6"
3+
version = "0.14.0"
44
authors = ["Shayne Hartford <shaybox@shaybox.com>"]
55
edition = "2021"
66
description = "VRChat Local Avatar ID Logger"
@@ -37,7 +37,14 @@ time = { version = "0.3", features = ["macros"] }
3737
tokio = { version = "1", features = ["full"] }
3838
tokio-rusqlite-new = { version = "0.11", features = ["bundled"], optional = true }
3939
tracing = "0.1"
40-
tracing-subscriber = { version = "0.3", features = ["env-filter", "time"] }
40+
tracing-subscriber = { version = "=0.3.19", features = ["env-filter", "time"] }
41+
42+
[target.'cfg(windows)'.dependencies]
43+
windows = { version = "0.61", features = [
44+
"Win32_Foundation",
45+
"Win32_Security",
46+
"Win32_System_Threading",
47+
] }
4148

4249
[features]
4350
default = ["cache", "avtrdb", "vrcdb", "vrcds", "vrcwb", "paw", "title", "rustls-tls"]

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,23 @@ You should review this file's contents, as it includes significant amounts of pe
5151
You can enable automatic clearing of the Amplitude file through the setup wizard,
5252
or by manually configuring the `clear_amplitude` option in the config file.
5353

54+
### Process Monitor (Windows)
55+
56+
It will install it if it's not installed using winget.
57+
If you launch the logger with admin it will launch Process Monitor pre-configured.
58+
You must manually close it to scan the collected avatars, it will re-open automatically again.
59+
5460
### Supported Avatar Database Providers
5561

5662
- [avtrDB - Avatar Search] - [Discord](https://discord.gg/ZxB6w2hGfU) / [VRCX](https://api.avtrdb.com/v1/avatar/search/vrcx) / [Web](https://avtrdb.com)
57-
- [VRCDB - Avatar Search] - [Discord](https://discord.gg/q427ecnUvj) / [VRCX](https://vrcx.vrcdb.com/avatars/Avatar/VRCX) / [Web](https://vrcdb.com) / [World](https://vrchat.com/home/world/wrld_1146f625-5d42-40f5-bfe7-06a7664e2796)
5863
- [VRCDS - Project Dark Star] - [VRCX](https://avtr.nekosunevr.co.uk/vrcx_search) / [Web](https://avtr.nekosunevr.co.uk)
5964
- [VRCWB - World Balancer] - [Discord](https://discord.gg/Uw7aAShdsp) / [VRCX](https://avatar.worldbalancer.com/vrcx_search.php) / [Web](https://avatar.worldbalancer.com/search.php)
6065
- [PAW - Puppy's Avatar World] - [Discord](https://discord.gg/zHhs4nQYxX) / [VRCX](https://paw-api.amelia.fun/vrcx_search) / [Web](https://paw.amelia.fun)
6166

6267
#### Unsupported Avatar Database Providers
6368

6469
- ~~VRCDB - Ravenwood~~ - Shutdown
70+
- ~~[VRCDB - Avatar Search]~~ - Offline
6571
- ~~[Just H Party]~~ - Can't submit avatars
6672
- ~~[Prismic's Avatar Search]~~ - Can't submit avatars
6773

VRC-LOG.PMC

1.93 KB
Binary file not shown.

src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ pub mod discord;
3131
pub mod provider;
3232
pub mod settings;
3333
pub mod vrchat;
34+
#[cfg(windows)]
35+
pub mod windows;
3436

3537
pub const CARGO_PKG_VERSION: &str = env!("CARGO_PKG_VERSION");
3638
pub const CARGO_PKG_HOMEPAGE: &str = env!("CARGO_PKG_HOMEPAGE");
@@ -74,7 +76,7 @@ pub fn watch<P: AsRef<Path>>(
7476
if let Ok(event) = watch_event {
7577
for path in event.paths {
7678
if let Some(extension) = path.extension().and_then(OsStr::to_str) {
77-
if ["log", "txt"].contains(&extension) {
79+
if ["csv", "log", "txt"].contains(&extension) {
7880
let _ = tx.send(path.clone());
7981
}
8082
}
@@ -92,7 +94,7 @@ pub fn watch<P: AsRef<Path>>(
9294
move |scan_event: notify::Result<PathBuf>| {
9395
if let Ok(path) = scan_event {
9496
if let Some(extension) = path.extension().and_then(OsStr::to_str) {
95-
if ["log", "txt"].contains(&extension) {
97+
if ["csv", "log", "txt"].contains(&extension) {
9698
let _ = tx_clone.send(path.clone());
9799
}
98100
}

src/main.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@ async fn main() -> Result<()> {
6464
vrc_log::watch(tx.clone(), VRCHAT_LOW_PATH.as_path(), 1_000)?,
6565
]);
6666

67+
#[cfg(windows)]
68+
if vrc_log::windows::is_elevated()? {
69+
vrc_log::windows::spawn_procmon_watcher();
70+
info!("Running with elevated privileges.");
71+
info!("Starting Process Monitor for additional logging.");
72+
info!("Close Process Monitor manually to begin scans; it will reopen automatically.");
73+
}
74+
6775
settings.save()?;
6876
vrc_log::launch_game(args)?;
6977
vrc_log::process_avatars(settings, (tx, rx)).await

0 commit comments

Comments
 (0)