ValveFileVDF icon indicating copy to clipboard operation
ValveFileVDF copied to clipboard

Thoughts

Open HunterZ opened this issue 3 months ago • 0 comments

This is great, thanks! I'm now using it to extract the currently-installed branch and buildid of a Rust dedicated server from its manifest file, as well as to extract the latest available buildid for that branch from SteamCMD: https://github.com/HunterZ/rustLaunchSite/blob/711535e3ba8d7f573001ada462fc0e9888392514/Updater.cpp#L375

There are some things that might make my code less gnarly though:

  • Would be nice if the read() API could return a std::shared_ptr, so that I could treat the root node exactly as a child node; specifically, this would make it possible to walk a second std::shared_ptr over the whole path that I need to traverse, instead of requiring a bunch of special case code to deal with root-versus-child.
  • Would be super-cushy if there were an API to which I could pass a delimited string, or vector of strings, to get a given attribute's value at the end of a path of given child names (if it exists).

HunterZ avatar Oct 23 '25 06:10 HunterZ