Created
September 28, 2019 21:37
-
-
Save SixBeeps/f3785fefc4ea92250b425fdbe850efc4 to your computer and use it in GitHub Desktop.
Replaces every image in an osu! skin with a specified base image
This file contains hidden or 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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using System.IO; | |
| namespace AutoMemeSkin | |
| { | |
| class Program | |
| { | |
| public static string folderPath = @"" // Insert the folder path to the skin here; | |
| static void Main(string[] args) | |
| { | |
| FileStream fs = new FileStream(@"", FileMode.Open); // Put the base image in the first parameter | |
| byte[] selectImage = new byte[(int)fs.Length]; | |
| fs.Read(selectImage, 0, (int)fs.Length); | |
| string[] files = Directory.GetFiles(folderPath, "*.png", SearchOption.AllDirectories); | |
| foreach (string filePath in files) | |
| { | |
| File.WriteAllBytes(filePath, selectImage); | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment