-
Notifications
You must be signed in to change notification settings - Fork 0
Prepare main branch for building using the exports #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
0d45c1c
add polyfill for C++03 assertion style for structs, add enums for con…
fa805ea
fix cpp-linter issues
fb48279
split reccmp folder into dll and exe to permit easy comparison of eit…
ec2fc70
make OpenSHC.dll land in dll subdirectory such that reccmp easily fin…
904815b
update mcp server to use new reccmp subfolder
167edda
refine gitignore to include reccmp/*.json and cmake/openshc-sources.txt
7f2ce1f
[DOCS] clarify location of reccmp/exe/setup.bat and its usecase
1419e5f
document gitignore and remove git add force trick
5e34f0e
make reccmp use _original folder for dll comparison
27f1103
revert dll path change in Cmakelists
196ea38
remove constants enum in favor of code specific enums
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| project: . | ||
| targets: | ||
| STRONGHOLDCRUSADER: | ||
| path: ../../_original/ucp/modules/OpenSHC-1.41.0/OpenSHC.dll | ||
| pdb: ../../_original/ucp/modules/OpenSHC-1.41.0/OpenSHC.pdb |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| targets: | ||
| STRONGHOLDCRUSADER: | ||
| path: ../../_original/Stronghold Crusader.exe |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| project: . | ||
| targets: | ||
| STRONGHOLDCRUSADER: | ||
| path: ../../build-RelWithDebInfo/OpenSHC.exe | ||
| pdb: ../../build-RelWithDebInfo/OpenSHC.pdb |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| targets: | ||
| STRONGHOLDCRUSADER: | ||
| filename: Stronghold Crusader.exe | ||
| source_root: ../../src | ||
| hash: | ||
| sha256: 3bb0a8c1e72331b3a30a5aa93ed94beca0081b476b04c1960e26d5b45387ac5a | ||
| data_sources: [] | ||
| ghidra: | ||
| ignore_types: [] | ||
| ignore_functions: [] | ||
| name_substitutions: [] | ||
| allow_hash_mismatch: false | ||
| report: | ||
| ignore_functions: [] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| targets: | ||
| STRONGHOLDCRUSADER: | ||
| path: ../../_original/Stronghold Crusader.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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| git+https://github.com/isledecomp/reccmp |
TheRedDaemon marked this conversation as resolved.
Show resolved
Hide resolved
|
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,89 @@ | ||
| @echo off | ||
| setlocal | ||
|
|
||
| :: === Configuration === | ||
| set "VENV_DIR=.venv" | ||
| set "ENV_ACTIVE=0" | ||
| set "CMD_EXIT_CODE=0" | ||
|
|
||
| :: -------------------------------------------- | ||
| :: Change working directory to script location | ||
| :: -------------------------------------------- | ||
| cd /d "%~dp0" || ( | ||
| echo [ERROR] Failed to set working directory to script location. | ||
| call :Cleanup | ||
| exit /b 1 | ||
| ) | ||
|
|
||
| :: -------------------------------------------- | ||
| :: Check arguments | ||
| :: -------------------------------------------- | ||
| if "%~1"=="" ( | ||
| echo [ERROR] No command provided. | ||
| echo Usage: %~nx0 command [args...] | ||
| call :Cleanup | ||
| exit /b 1 | ||
| ) | ||
|
|
||
| :: -------------------------------------------- | ||
| :: Check virtual environment exists | ||
| :: -------------------------------------------- | ||
| if not exist "%VENV_DIR%\Scripts\activate.bat" ( | ||
| echo [ERROR] Virtual environment not found: %VENV_DIR% | ||
| echo Please run the setup script first. | ||
| call :Cleanup | ||
| exit /b 1 | ||
| ) | ||
|
|
||
| :: -------------------------------------------- | ||
| :: Prevent double-activation | ||
| :: -------------------------------------------- | ||
| if /i "%VIRTUAL_ENV%"=="%CD%\%VENV_DIR%" ( | ||
| echo [ERROR] Already running inside the target virtual environment. | ||
| call :Cleanup | ||
| exit /b 1 | ||
| ) | ||
|
|
||
| :: -------------------------------------------- | ||
| :: Activate virtual environment | ||
| :: -------------------------------------------- | ||
| call "%VENV_DIR%\Scripts\activate.bat" | ||
| if /i not "%VIRTUAL_ENV%"=="%CD%\%VENV_DIR%" ( | ||
| echo [ERROR] Failed to activate virtual environment. | ||
| call :Cleanup | ||
| exit /b 1 | ||
| ) | ||
|
|
||
| set "ENV_ACTIVE=1" | ||
| echo [OK] Virtual environment activated. | ||
|
|
||
| :: -------------------------------------------- | ||
| :: Run provided command | ||
| :: -------------------------------------------- | ||
| echo [INFO] Running command: %* | ||
| cmd /c %* | ||
| set "CMD_EXIT_CODE=%ERRORLEVEL%" | ||
| if %CMD_EXIT_CODE% neq 0 ( | ||
| echo [ERROR] Command failed with exit code %CMD_EXIT_CODE%. | ||
| call :Cleanup | ||
| exit /b %CMD_EXIT_CODE% | ||
| ) | ||
|
|
||
| :: -------------------------------------------- | ||
| :: Cleanup | ||
| :: -------------------------------------------- | ||
| call :Cleanup | ||
|
|
||
| echo [SUCCESS] Command completed successfully. | ||
| exit /b 0 | ||
|
|
||
| :: -------------------------------------------- | ||
| :: Cleanup function | ||
| :: -------------------------------------------- | ||
| :Cleanup | ||
| if "%ENV_ACTIVE%"=="1" ( | ||
| deactivate | ||
| set "ENV_ACTIVE=0" | ||
| echo [OK] Virtual environment deactivated. | ||
| ) | ||
| exit /b 0 |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,94 @@ | ||
| @echo off | ||
| setlocal | ||
|
|
||
| :: === Configuration === | ||
| set "VENV_DIR=.venv" | ||
| set "REQ_FILE=requirements.txt" | ||
| set "ENV_ACTIVE=0" | ||
|
|
||
| :: --- Change working directory to the folder where the script is located --- | ||
| cd /d "%~dp0" || ( | ||
| echo [ERROR] Failed to set working directory to script location: %~dp0 | ||
| call :Cleanup | ||
| exit /b 1 | ||
| ) | ||
|
|
||
| :: -------------------------------------------- | ||
| :: Check if not running in own env | ||
| :: -------------------------------------------- | ||
| if /i "%VIRTUAL_ENV%"=="%CD%\%VENV_DIR%" ( | ||
| echo [ERROR] This script is already running inside the target virtual environment. | ||
| exit /b 1 | ||
| ) | ||
|
|
||
| :: -------------------------------------------- | ||
| :: Check for Python installation | ||
| :: -------------------------------------------- | ||
| python --version >nul 2>&1 | ||
| if %errorlevel% neq 0 ( | ||
| echo [ERROR] Python is not installed or not in PATH. | ||
| call :Cleanup | ||
| exit /b 1 | ||
| ) | ||
| echo [OK] Python is available. | ||
|
|
||
| :: -------------------------------------------- | ||
| :: Create virtual environment | ||
| :: -------------------------------------------- | ||
| echo Creating virtual environment in "%VENV_DIR%"... | ||
| python -m venv "%VENV_DIR%" | ||
| if %errorlevel% neq 0 ( | ||
| echo [ERROR] Failed to create virtual environment. | ||
| call :Cleanup | ||
| exit /b 1 | ||
| ) | ||
|
|
||
| :: -------------------------------------------- | ||
| :: Activate virtual environment | ||
| :: -------------------------------------------- | ||
| call "%VENV_DIR%\Scripts\activate.bat" | ||
| if /i not "%VIRTUAL_ENV%"=="%CD%\%VENV_DIR%" ( | ||
| echo [ERROR] Failed to activate virtual environment. | ||
| call :Cleanup | ||
| exit /b 1 | ||
| ) | ||
| set "ENV_ACTIVE=1" | ||
| echo [OK] Virtual environment activated. | ||
|
|
||
| :: -------------------------------------------- | ||
| :: Install requirements | ||
| :: -------------------------------------------- | ||
| if not exist "%REQ_FILE%" ( | ||
| echo [ERROR] Requirements file not found: %REQ_FILE% | ||
| call :Cleanup | ||
| exit /b 1 | ||
| ) | ||
|
|
||
| echo Installing packages from "%REQ_FILE%"... | ||
| pip install -r "%REQ_FILE%" | ||
| if %errorlevel% neq 0 ( | ||
| echo [ERROR] Failed to install packages. | ||
| call :Cleanup | ||
| exit /b 1 | ||
| ) | ||
| echo [OK] All packages installed successfully. | ||
|
|
||
| :: -------------------------------------------- | ||
| :: Normal cleanup | ||
| :: -------------------------------------------- | ||
| call :Cleanup | ||
|
|
||
| echo [SUCCESS] Setup complete. | ||
| endlocal | ||
| exit /b 0 | ||
|
|
||
| :: -------------------------------------------- | ||
| :: Cleanup function | ||
| :: -------------------------------------------- | ||
| :Cleanup | ||
| if "%ENV_ACTIVE%"=="1" ( | ||
| deactivate | ||
| set "ENV_ACTIVE=0" | ||
| echo [OK] Virtual environment deactivated. | ||
| ) | ||
| exit /b 0 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.