C:\Users\YOURNAME\AppData\Local\Riot Games [폴더 및 콘텐츠]
C:\ProgramData\Riot Games [폴더 및 콘텐츠]
Riot Games\League of Legends\Config [폴더 및 콘텐츠]
Riot Games\League of Legends\ 로그 [FOLDER & CONTENTS]
Riot Games\Riot Client\UX\natives_blob.bin [파일]
Riot Games\Riot Client\UX\snapshot_blob.bin [파일]
Riot Games\Riot Client\UX\v8_context_snapshot.bin [파일]
Riot Games \League of Legends\debug.log [파일]
Riot Games\Riot Client\UX\icudtl.dat [파일]
다음 폴더를 삭제함
픽선택창 소환사 이름따는 프로그램이랑 쓸때 좋을듯 3일정지 먹었음 ㅆㅃ
댓글2
뭔밴을 클리닝한다는거임
using Microsoft.Win32;
using System;
using System.Diagnostics;
using System.IO;
using System.Security.Principal;
namespace Ban_Cleaner
{
internal class Program
{
private static string dProgramData;
private static string dLeagueOfLegends;
private static string dRiotGames;
private static string fConfig;
private static string fLogs;
private static string fDebugLog;
private static string dUx;
private static string fNativesBlob;
private static string fSnapshotBlob;
private static string fV8ContextSnapshot;
private static string fIcudtl;
private static string dLocalAppData;
static Program()
{
Program.dProgramData = Program.GetProgramDataRiotGames();
Program.dLeagueOfLegends = Program.GetInstalledPath();
Program.dRiotGames = Program.EditString(Program.dLeagueOfLegends);
Program.fConfig = string.Concat(Program.dLeagueOfLegends, "\\Config");
Program.fLogs = string.Concat(Program.dLeagueOfLegends, "\\Logs");
Program.fDebugLog = string.Concat(Program.dLeagueOfLegends, "\\debug.log");
Program.dUx = string.Concat(Program.dRiotGames, "\\Riot Client\\UX");
Program.fNativesBlob = string.Concat(Program.dUx, "\\natives_blob.bin");
Program.fSnapshotBlob = string.Concat(Program.dUx, "\\snapshot_blob.bin");
Program.fV8ContextSnapshot = string.Concat(Program.dUx, "\\v8_context_snapshot.bin");
Program.fIcudtl = string.Concat(Program.dUx, "\\icudtl.dat");
Program.dLocalAppData = Program.GetAppDataRiotGames();
}
public Program()
{
}
private static string EditString(string input)
{
input = input.Replace("\\League of Legends", "");
return input;
}
private static string GetAppDataRiotGames()
{
return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "Riot Games");
}
private static string GetInstalledPath()
{
string str;
string str1 = "HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Riot Game league_of_legends.live";
string str2 = "InstallLocation";
try
{
object value = Registry.GetValue(str1, str2, null);
str = (value == null ? "Key not found" : value.ToString());
}
catch (Exception exception)
{
str = "Error reading registry key";
}
return str;
}
private static string GetProgramDataRiotGames()
{
return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "Riot Games");
}
private static void Init()
{
int i;
int num = 0;
int num1 = 0;
string[] strArrays = new string[] { Program.fDebugLog, Program.fNativesBlob, Program.fSnapshotBlob, Program.fV8ContextSnapshot, Program.fIcudtl };
string[] strArrays1 = new string[] { Program.dProgramData, Program.dLocalAppData, Program.fConfig, Program.fLogs };
string[] strArrays2 = strArrays;
for (i = 0; i < (int)strArrays2.Length; i++)
{
string str = strArrays2[i];
try
{
File.Delete(str);
Console.ForegroundColor = ConsoleColor.DarkGreen;
Console.WriteLine(string.Concat("Deleted file: ", str));
}
catch (FileNotFoundException fileNotFoundException)
{
num1++;
}
catch (Exception exception1)
{
Exception exception = exception1;
num++;
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine(string.Concat(new string[] { "Unable to delete file: ", str, "\nReason: ", exception.Message.ToString(), "\n" }));
}
}
strArrays2 = strArrays1;
for (i = 0; i < (int)strArrays2.Length; i++)
{
string str1 = strArrays2[i];
try
{
Console.ForegroundColor = ConsoleColor.DarkGreen;
Directory.Delete(str1, true);
Console.WriteLine(string.Concat("Deleted directory: ", str1));
}
catch (DirectoryNotFoundException directoryNotFoundException)
{
num1++;
}
catch (Exception exception3)
{
Exception exception2 = exception3;
num++;
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine(string.Concat(new string[] { "\nUnable to delete directory: ", str1, "\nReason: ", exception2.Message.ToString(), "\n" }));
}
}
if (num1 > 0)
{
Console.ForegroundColor = ConsoleColor.DarkYellow;
Console.WriteLine("\nSome files or folders did not exist!");
}
if (num <= 0)
{
Console.ForegroundColor = ConsoleColor.DarkGreen;
Console.WriteLine("\nFinished");
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine("Press any key to exit");
Console.ReadKey();
return;
}
Console.WriteLine("__________________________");
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("\nCleaner was unable to delete some files or folders. Check the log and delete them manually");
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine("\nPress any key to exit");
Console.ReadKey();
}
private static bool IsAdmin()
{
bool flag;
try
{
using (WindowsIdentity current = WindowsIdentity.GetCurrent())
{
flag = (new WindowsPrincipal(current)).IsInRole(WindowsBuiltInRole.Administrator);
}
}
catch
{
flag = false;
}
return flag;
}
private static bool IsClientRunning()
{
if (Process.GetProcessesByName("LeagueClientUx").Length != 0)
{
Console.Write("League client is open, ");
return true;
}
if (Process.GetProcessesByName("RiotClientUx").Length == 0)
{
return false;
}
Console.Write("Riot client is open, ");
return true;
}
private static void Main(string[] args)
{
Console.Title = "League of Legends Ban Remover - tezkidd";
Console.SetWindowSize(100, 50);
Console.SetBufferSize(100, 50);
if (!Program.IsAdmin())
{
Console.WriteLine("You need to run this program as administrator");
Console.ReadLine();
return;
}
if (Program.IsClientRunning())
{
Console.SetWindowSize(100, 10);
Console.SetBufferSize(100, 10);
Console.WriteLine("client must be closed to clean files & folders");
Console.ReadLine();
return;
}
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine(string.Concat("Riot Games path: ", Program.dRiotGames));
Console.WriteLine(string.Concat("League of Legends path: ", Program.dLeagueOfLegends));
Console.WriteLine(string.Concat(new string[] { "\nFiles & Directories to delete: \n", Program.fConfig, "\n", Program.fLogs, "\n", Program.fNativesBlob, "\n", Program.fSnapshotBlob, "\n", Program.fV8ContextSnapshot, "\n", Program.fIcudtl, "\n", Program.dLocalAppData, "\n", Program.fDebugLog, "\n", Program.dProgramData, "\n" }));
Console.Write("Press any key to clean files\n");
Console.ReadKey();
Console.Clear();
Program.Init();
}
}
}