Add core functionality for loading and processing game assets
- Implemented palette loading from binary files in `palette.cpp`. - Added runtime utilities for reading text and JSON files in `runtime.cpp`. - Created shape archive handling in `shape_archive.cpp`, including frame parsing and pixel decoding. - Introduced type flag loading functionality in `type_flags.cpp`. - Developed tests for combat tactics, entity dispatch entries, file system operations, fixed maps, flex archives, glob archives, map rendering, palette loading, shape archives, and type flags. - Added a Python script for importing Ghidra-exported function slices with reporting capabilities.
This commit is contained in:
parent
6ca3b18c3e
commit
8907604b84
41 changed files with 2889 additions and 0 deletions
43
rebuild/remorse/build_msvc.cmd
Normal file
43
rebuild/remorse/build_msvc.cmd
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
@echo off
|
||||
setlocal
|
||||
|
||||
set "CONFIG=%~1"
|
||||
if "%CONFIG%"=="" set "CONFIG=Debug"
|
||||
|
||||
set "REPO_ROOT=%~dp0..\.."
|
||||
for %%I in ("%REPO_ROOT%") do set "REPO_ROOT=%%~fI"
|
||||
|
||||
set "VSWHERE=%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
|
||||
if not exist "%VSWHERE%" (
|
||||
echo vswhere.exe was not found at "%VSWHERE%".
|
||||
exit /b 2
|
||||
)
|
||||
|
||||
for /f "usebackq delims=" %%I in (`"%VSWHERE%" -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath`) do set "VSINSTALL=%%I"
|
||||
|
||||
if "%VSINSTALL%"=="" (
|
||||
echo Visual Studio with MSVC x64 tools was not found.
|
||||
exit /b 2
|
||||
)
|
||||
|
||||
set "VCVARS=%VSINSTALL%\VC\Auxiliary\Build\vcvars64.bat"
|
||||
if not exist "%VCVARS%" (
|
||||
echo vcvars64.bat was not found at "%VCVARS%".
|
||||
exit /b 2
|
||||
)
|
||||
|
||||
call "%VCVARS%" || exit /b 2
|
||||
|
||||
cd /d "%REPO_ROOT%" || exit /b 2
|
||||
|
||||
cmake -S rebuild/remorse -B rebuild/remorse/out/build || exit /b 1
|
||||
cmake --build rebuild/remorse/out/build --config "%CONFIG%" || exit /b 1
|
||||
ctest --test-dir rebuild/remorse/out/build -C "%CONFIG%" --output-on-failure || exit /b 1
|
||||
|
||||
set "EXE=rebuild\remorse\out\build\%CONFIG%\remorse_rebuild.exe"
|
||||
if not exist "%EXE%" (
|
||||
echo Built executable was not found at "%EXE%".
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
"%EXE%" exports\src_remorse\export_manifest.json || exit /b 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue