Skip to content

Commit

Permalink
Code & Media
Browse files Browse the repository at this point in the history
  • Loading branch information
NeutronX-dev authored Nov 23, 2022
1 parent dc63996 commit f043509
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module ValorantObliterator

go 1.19
40 changes: 40 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package main

import (
"fmt"
"log"
"os"
"path"
"time"
)

func Log(a string) {
log.Println("[ValorantObliterator]", a)
}

func main() {
Log("This program is meant to remove all Riot Games/Valorant Data")
Log("Please exit if you do not want this to happen")
Log("Starting in 5 seconds...")
time.Sleep(time.Second * 5)
var PATHS []string = make([]string, 0)
var LocalAppData string = os.Getenv("localappdata")
var ProgramData string = os.Getenv("programdata")
PATHS = append(PATHS,
"C:\\Riot Games",
path.Join(LocalAppData, "Riot Games"),
path.Join(ProgramData, "Riot Games"),
)

for _, path := range PATHS {
Log(fmt.Sprintf("Removing \"%v\"", path))
err := os.RemoveAll(path)
if err != nil {
Log(fmt.Sprintf("Error removing \"%v\"", path))
Log(err.Error())
}
}
Log("Done!")
Log("Closing in 15 seconds...")
time.Sleep(time.Second * 15)
}
Binary file added media/gplv3-88x31.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f043509

Please sign in to comment.