https://github.com/cxong/find_steam_game
Header-only cross platform C library for finding games installed from platforms like steam
https://github.com/cxong/find_steam_game
c cross-platform game-dev gog hacktoberfest header-only library steam
Last synced: 7 days ago
JSON representation
Header-only cross platform C library for finding games installed from platforms like steam
- Host: GitHub
- URL: https://github.com/cxong/find_steam_game
- Owner: cxong
- License: mit
- Created: 2021-08-10T09:53:09.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-03-18T21:53:32.000Z (over 1 year ago)
- Last Synced: 2024-03-18T22:51:11.862Z (over 1 year ago)
- Topics: c, cross-platform, game-dev, gog, hacktoberfest, header-only, library, steam
- Language: C
- Homepage:
- Size: 34.2 KB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# find_steam_game
[](https://github.com/cxong/find_steam_game/actions/workflows/cmake.yml)
Cross platform single-header C library for finding games installed from platforms like steam
## Usage
```c
#includechar buf[4096];
fsg_get_steam_game_path(buf, "Wolfenstein 3D");
printf("Steam: %s found at %s\n", "Wolfenstein 3D", buf);// Prints: Steam: Wolfenstein 3D found at c:/program files (x86)/steam/SteamApps/common/Wolfenstein 3D
```## Support
| Store | Windows | Linux | macOS |
| ----- | ----------- | ----- | ------------ |
| Steam | ✔ | ✔ | ✔ |
| GOG | ✔ (game id) | ❌ | ✔ (app name) |- macOS GOG doesn't support custom installation locations; it only looks at `/Applications`
## Resources
GOG Game ID List: https://gogapidocs.readthedocs.io/en/latest/gameslist.html