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.
2026-04-27 21:15:01 +02:00
|
|
|
@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
|
|
|
|
|
|
2026-10-08 09:01:31 +02:00
|
|
|
set "BUILD_DIR=rebuild/remorse/out/build"
|
|
|
|
|
cmake -S rebuild/remorse -B "%BUILD_DIR%" -DCMAKE_GENERATOR_INSTANCE="%VSINSTALL%" || exit /b 1
|
|
|
|
|
cmake --build "%BUILD_DIR%" --config "%CONFIG%" || exit /b 1
|
|
|
|
|
ctest --test-dir "%BUILD_DIR%" -C "%CONFIG%" --output-on-failure || exit /b 1
|
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.
2026-04-27 21:15:01 +02:00
|
|
|
|
2026-10-08 09:01:31 +02:00
|
|
|
set "EXE=%BUILD_DIR%\%CONFIG%\remorse_rebuild.exe"
|
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.
2026-04-27 21:15:01 +02:00
|
|
|
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
|