-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dc63996
commit f043509
Showing
3 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module ValorantObliterator | ||
|
||
go 1.19 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.