Skip to content

Instantly share code, notes, and snippets.

@SixBeeps
Created September 28, 2019 21:37
Show Gist options
  • Select an option

  • Save SixBeeps/f3785fefc4ea92250b425fdbe850efc4 to your computer and use it in GitHub Desktop.

Select an option

Save SixBeeps/f3785fefc4ea92250b425fdbe850efc4 to your computer and use it in GitHub Desktop.
Replaces every image in an osu! skin with a specified base image
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