https://github.com/julianxhokaxhiu/findsteamgamepath
A simple tool that returns where a Steam game has been installed
https://github.com/julianxhokaxhiu/findsteamgamepath
Last synced: about 1 month ago
JSON representation
A simple tool that returns where a Steam game has been installed
- Host: GitHub
- URL: https://github.com/julianxhokaxhiu/findsteamgamepath
- Owner: julianxhokaxhiu
- License: gpl-3.0
- Created: 2024-11-03T14:08:59.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-12-08T14:48:24.000Z (5 months ago)
- Last Synced: 2025-01-28T14:17:45.317Z (3 months ago)
- Language: C++
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
    
# FindSteamGamePath
A simple tool that returns where a Steam game has been installed
## How to use
Download the latest release then run it passing as first argument the Steam AppID.
```bash
$ FindSteamGamePath 39140
C:\Program Files (x86)\Steam\steamapps\common\FINAL FANTASY VII
```## How to integrate in CMakeLists.txt
Download the latest release, unpack it next to your `CMakeLists.txt` and add this code:
```cmake
execute_process(
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/FindSteamGamePath 39140
OUTPUT_VARIABLE GAME_PATH
OUTPUT_STRIP_TRAILING_WHITESPACE
)
if(NOT "${GAME_PATH}" STREQUAL "")
message("Game path found: ${GAME_PATH}")
endif()
```