Skip to content

Commit

Permalink
Output backup size in bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
Epikest committed Jul 13, 2024
1 parent 338d965 commit e67e5c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/osu!auth.cr
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ begin

if !File.exists?("#{osu_path}\\osu!auth.dll.backup")
File.rename("#{osu_path}\\osu!auth.dll", "#{osu_path}\\osu!auth.dll.backup")
puts "Backed up #{File.size("#{osu_path}\\osu!auth.dll.backup")} bytes from current osu!auth.dll.".colorize(:green)
File.write("#{osu_path}\\osu!auth.dll", osu_auth.read)
puts "Successfully written #{osu_auth.size} bytes to osu!auth.dll.".colorize(:green)
else
Expand Down

0 comments on commit e67e5c0

Please sign in to comment.