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
namespace System.Runtime.Serialization.Json; | |
using System; | |
using System.Xml; | |
using System.Linq; | |
using System.Text; | |
using System.Xml.Linq; | |
using System.Collections; | |
using System.Collections.Generic; | |
public sealed class JsonNode :IEnumerable<JsonNode> |
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
#pragma warning disable IDE0130 | |
namespace System.Runtime.Serialization.Json; | |
#pragma warning restore IDE0130 | |
using System; | |
using System.IO; | |
using System.Xml; | |
using System.Text; | |
using System.Linq; | |
using System.Xml.Linq; |
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
Add-Type -AssemblyName System.IO.Compression.FileSystem | |
function _($Path) { return [System.Text.RegularExpressions.Regex]::Replace([System.IO.File]::ReadAllText($Path), "//.*?$|/\*[\s\S]*?\*/", "", [System.Text.RegularExpressions.RegexOptions]::Multiline) | ConvertFrom-Json } | |
if ($Package = (Get-AppxPackage | Where-Object { $_.PackageFamilyName -eq "Microsoft.MinecraftUWP_8wekyb3d8bbwe" }) ) { | |
Remove-Item "$ENV:TEMP\Particle Disabler" -Recurse -Force -ErrorAction SilentlyContinue | |
[System.IO.Directory]::CreateDirectory("$ENV:TEMP\Particle Disabler\particles") | Out-Null | |
$MaxEngineVersion = [System.Version]::new() | |
(Get-ChildItem "$($Package.InstallLocation)\data\resource_packs\*\manifest.json" -Recurse).FullName | ForEach-Object { |
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
#include <initguid.h> | |
#include <windows.h> | |
#include <shobjidl.h> | |
void $(const char *format, ...) | |
{ | |
va_list ArgList = NULL; | |
va_start(ArgList, format); | |
CHAR szOutput[1025] = {}; | |
WriteFile(GetStdHandle(STD_OUTPUT_HANDLE), szOutput, wvsprintfA(szOutput, format, ArgList), NULL, NULL); |
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
<# :: | |
@echo off | |
powershell -c "iex (gc -Raw '%~f0')" | |
goto :eof | |
#> | |
$Names = @() | |
Add-Type -TypeDefinition @" | |
using System; | |
using System.Runtime.InteropServices; | |
public static class PackageDebugSettings |
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
#define printf PrintFormatA | |
DWORD PrintFormatA(LPCSTR lpFormat, ...) | |
{ | |
va_list ArgList = NULL; | |
va_start(ArgList, lpFormat); | |
CHAR szOutput[1024] = {}; | |
DWORD nNumberOfBytesToWrite = wvsprintfA(szOutput, lpFormat, ArgList); | |
WriteFile(GetStdHandle(STD_OUTPUT_HANDLE), szOutput, nNumberOfBytesToWrite, NULL, NULL); | |
va_end(ArgList); | |
return nNumberOfBytesToWrite; |
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
@echo off | |
cd "%~dp0" | |
gcc -municode -mwindows -nostdlib -Os -s WinMain.c -lUser32 -lKernel32 -lShell32 -o NoSteamWebHelper.exe | |
upx --best --ultra-brute NoSteamWebHelper.exe>nul 2>&1 |
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
#include <windows.h> | |
LONG DisplayConfigSetDisplayMode(DISPLAYCONFIG_PATH_INFO *pPath, PDEVMODEW pDevMode, DWORD dwFlags) | |
{ | |
DISPLAYCONFIG_SOURCE_DEVICE_NAME dcSourceDeviceName = {.header = {.type = DISPLAYCONFIG_DEVICE_INFO_GET_SOURCE_NAME, | |
.size = sizeof(DISPLAYCONFIG_SOURCE_DEVICE_NAME), | |
.adapterId = pPath->sourceInfo.adapterId, | |
.id = pPath->sourceInfo.id}}; | |
DisplayConfigGetDeviceInfo(&dcSourceDeviceName.header); |
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
BOOL MarkWindowFullscreen(HWND hWnd, BOOL fFullscreen) | |
{ | |
ITaskbarList2 *pTaskbarList2 = NULL; | |
CoInitializeEx(NULL, COINIT_APARTMENTTHREADED | COINIT_DISABLE_OLE1DDE); | |
CoCreateInstance(&CLSID_TaskbarList, NULL, CLSCTX_INPROC_SERVER, &IID_ITaskbarList2, (LPVOID *)&pTaskbarList2); | |
pTaskbarList2->lpVtbl->HrInit(pTaskbarList2); | |
HRESULT hr = pTaskbarList2->lpVtbl->MarkFullscreenWindow(pTaskbarList2, GetConsoleWindow(), TRUE); | |
pTaskbarList2->lpVtbl->Release(pTaskbarList2); |
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
[dependencies.windows] | |
version = "0.52" | |
features = ["Win32_Foundation", "Win32_Graphics_Dxgi", "Win32_Graphics_Dxgi_Common"] | |
[dependencies.windows-sys] | |
version = "0.52" | |
features = ["Win32_Foundation", "Win32_Devices_DeviceAndDriverInstallation"] |