cmd.exe
cd /d %PUBLIC%
git clone --recursive https://github.com/dsp56300/gearmulator.git
cd gearmulator
rmdir temp
cmake . -B %outdir% -G "Visual Studio 18 2026" -A x64 -Dgearmulator_BUILD_FX_PLUGIN=ON -DDSP56300_DEBUGGER=OFF
pushd %outdir%
cmake --build . --config Release
cmake -P ../../scripts/pack.cmake
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 | |
| rem Windows 11 batch file which automatically downloads, imports, invokes Ubuntu 26.04 | |
| setlocal enabledelayedexpansion | |
| set "UBUNTU_VER=26.04" | |
| set "UBUNTU_COD=resolute" | |
| set "UBUNTU_IMG=ubuntu-!UBUNTU_VER!-wsl-amd64.wsl" | |
| set "UBUNTU_URL=https://releases.ubuntu.com/!UBUNTU_COD!/!UBUNTU_IMG!" | |
| set "UBUNTU_NAM=public-documents-ubuntu-!UBUNTU_VER!" | |
| set "UBUNTU_DIR=%PUBLIC%\Documents\!UBUNTU_NAM!" |
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 | |
| setlocal EnableDelayedExpansion | |
| set "NUGET_DIR=%~dp0nuget" | |
| set "DXC_DIR=!NUGET_DIR!\Microsoft.Direct3D.DXC\build\native\bin\x64" | |
| set "DXC=!DXC_DIR!\dxc.exe" | |
| REM --- Obtain nuget.exe --- | |
| if not exist "!NUGET_DIR!" mkdir "!NUGET_DIR!" | |
| if not exist "!NUGET_DIR!\nuget.exe" ( |
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 <bit> | |
| #include <concepts> | |
| #include <stdio.h> | |
| template <std::unsigned_integral T> | |
| inline bool isPowerOfTwo(T x) { | |
| return std::has_single_bit(x); | |
| } | |
| template <std::signed_integral T> |
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
| // AES implementation mimicking x86 AES-NI instructions in software | |
| // https://www.intel.com/content/www/us/en/docs/intrinsics-guide/index.html#text=aes | |
| #ifndef AESNI_GENERIC_HPP_INCLUDED | |
| # define AESNI_GENERIC_HPP_INCLUDED 1 | |
| # include <stdint.h> | |
| namespace AesNiGeneric | |
| { | |
| namespace details | |
| { |
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
| // Mouse report rate tester | |
| #define WIN32_LEAN_AND_MEAN 1 | |
| #define UNICODE 1 | |
| #define NOMINMAX 1 | |
| #include <windows.h> | |
| #include <hidusage.h> | |
| #include <stdio.h> | |
| #include <algorithm> | |
| #include <chrono> |
cmd.exe
cd /d %PUBLIC%
rmdir /S /Q my-ucrt 1>nul 2>nul
mkdir my-ucrt
cd my-ucrt
curl -o ucrt.zip -L https://www.nuget.org/api/v2/package/Microsoft.Windows.SDK.CRTSource/10.0.22621.3
tar xf ucrt.zip
del *.nuspec *.zip *.xml
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 <vector> // std::vector | |
| #include <stdarg.h> // va_list, va_start, va_end, va_copy | |
| size_t getVsprintfByteLength(const char *fmt, va_list vlist) { | |
| va_list tmpVlist; | |
| va_copy(tmpVlist, vlist); | |
| size_t const byteLength = vsnprintf(nullptr, 0, fmt, tmpVlist); | |
| va_end(tmpVlist); | |
| return byteLength; | |
| } |
NewerOlder