Skip to content

Instantly share code, notes, and snippets.

@Flowaria
Flowaria / Dependencies.props
Last active June 19, 2022 21:25
Clean Dependencies.props for BepInExPack 2.0.0 Migration
<Project InitialTargets="ValidateGamePath">
<Import Project="$(MSBuildThisFileDirectory)\GameFolder.props" Condition="Exists('$(MSBuildThisFileDirectory)\GameFolder.props')" />
<Target Name="ValidateGamePath">
<Error Text="The GameFolder property must be set to the GTFO game folder." Condition="'$(GameFolder)' == '' or !Exists('$(GameFolder)')" />
</Target>
<PropertyGroup>
<BIELibsFolder>$(GameFolder)\BepInEx\core</BIELibsFolder>
<CorLibsFolder>$(GameFolder)\dotnet\corlib</CorLibsFolder>
var description = new DetourDescription()
{
Type = typeof(ClusteredRendering),
MethodName = nameof(ClusteredRendering.CollectCommands),
ReturnType = typeof(void),
ArgTypes = new Type[] { typeof(CommandBuffer) },
IsGeneric = false
};
Detour.TryCreate(description, Detour_Run, out _Original, out _Detour);
@Flowaria
Flowaria / yuzubot.py
Last active September 1, 2024 06:41
디스코드 하나오카 유즈 봇
#-*- coding: utf-8 -*-
import discord
import regex
import requests
import gc
import os
import random
import asyncio
import emoji