Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
rvdata2 dumper
#! /usr/bin/env ruby
require "zlib"
fp = File.open(ARGV.shift, "r:binary")
Marshal.load(fp.read).each.with_index do |cont, index|
id, name, code = cont
code = Zlib::Inflate.inflate(code).force_encoding("utf-8")
puts "#"*79 if 0 < index
printf "[%s] (%d)\n%s", name, id, code
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.