2023-11-15 15:11:15 -06:00
|
|
|
# Torch - [T]orch is [O]ur [R]esource [C]onversion [H]elper
|
2024-10-06 19:59:18 -06:00
|
|
|
A generic asset processor for games
|
2023-09-21 23:18:21 -06:00
|
|
|
|
2023-11-15 15:11:15 -06:00
|
|
|
## Usage
|
|
|
|
|
`./torch otr baserom.z64`
|
|
|
|
|
`./torch code baserom.z64`
|
|
|
|
|
|
2023-09-25 16:13:12 +01:00
|
|
|
# Windows
|
2023-09-21 23:18:21 -06:00
|
|
|
|
2023-09-25 16:13:12 +01:00
|
|
|
## Visual Studio
|
|
|
|
|
|
|
|
|
|
### Dependencies
|
|
|
|
|
|
|
|
|
|
* Visual Studio 2022 Community Edition with the C++ feature set
|
|
|
|
|
* One of the Windows SDKs that comes with Visual Studio, for example the current Windows 10 version 10.0.19041.0
|
|
|
|
|
* The `MSVC v142 - VS 2019 C++ build tools` component of Visual Studio
|
|
|
|
|
* Cmake (can be installed via chocolatey or manually)
|
|
|
|
|
|
|
|
|
|
### Compile
|
|
|
|
|
|
|
|
|
|
``` powershell
|
|
|
|
|
# Setup cmake project
|
|
|
|
|
& 'C:\Program Files\CMake\bin\cmake' -S . -B "build/x64" -G "Visual Studio 17 2022" -T v142 -A x64 -DCMAKE_BUILD_TYPE=Debug
|
|
|
|
|
# or for VS2019
|
|
|
|
|
& 'C:\Program Files\CMake\bin\cmake' -S . -B "build/x64" -G "Visual Studio 16 2019" -T v142 -A x64 -DCMAKE_BUILD_TYPE=Debug
|
|
|
|
|
# Compile project
|
|
|
|
|
& 'C:\Program Files\CMake\bin\cmake.exe' --build .\build\x64
|
2023-09-21 23:18:21 -06:00
|
|
|
```
|
2023-09-25 16:13:12 +01:00
|
|
|
|
|
|
|
|
## WSL Ubuntu
|
|
|
|
|
|
|
|
|
|
### Dependencies
|
|
|
|
|
|
|
|
|
|
``` bash
|
2023-09-22 19:40:32 -06:00
|
|
|
sudo apt-get install cmake ninja-build libbz2-dev
|
2023-09-21 23:18:21 -06:00
|
|
|
```
|
|
|
|
|
|
2023-09-25 16:13:12 +01:00
|
|
|
### Compile
|
2023-09-21 23:18:21 -06:00
|
|
|
|
2023-09-25 16:13:12 +01:00
|
|
|
``` bash
|
2023-09-21 23:18:21 -06:00
|
|
|
cmake -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE=Debug
|
|
|
|
|
cmake --build build-cmake -j
|
|
|
|
|
```
|
2023-09-25 16:13:12 +01:00
|
|
|
|
|
|
|
|
# Linux
|
|
|
|
|
|
|
|
|
|
### Dependencies
|
|
|
|
|
|
|
|
|
|
Requires `cmake, ninja-build, libbz2-dev`
|
|
|
|
|
|
|
|
|
|
### Compile
|
|
|
|
|
|
|
|
|
|
``` bash
|
|
|
|
|
cmake -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE=Debug
|
|
|
|
|
cmake --build build-cmake -j
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
# Mac
|
|
|
|
|
|
|
|
|
|
### Dependencies
|
|
|
|
|
|
|
|
|
|
Requires Xcode (or xcode-tools) && `cmake, ninja` (can be installed via homebrew, macports, etc)
|
|
|
|
|
|
|
|
|
|
### Compile
|
|
|
|
|
|
|
|
|
|
``` bash
|
|
|
|
|
cmake -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE=Debug
|
|
|
|
|
cmake --build build-cmake -j
|
2024-01-24 21:26:29 +01:00
|
|
|
```
|