forked from greenheartgames/greenworks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request greenheartgames#166 from Melatonin64/master
Support STEAMWORKS_SDK_PATH env var
- Loading branch information
Showing
4 changed files
with
23 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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 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 was deleted.
Oops, something went wrong.
This file contains 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 @@ | ||
/* global console, require, __dirname, process */ | ||
'use strict'; | ||
|
||
const path = require('path'); | ||
|
||
// Allow setting a different steamworks_sdk path via an environment variable | ||
if (process.env.STEAMWORKS_SDK_PATH) { | ||
console.log(process.env.STEAMWORKS_SDK_PATH); | ||
} | ||
|
||
// Otherwise, use the default path (deps/steamworks_sdk) | ||
else { | ||
console.log(path.join(__dirname, '..', 'deps', 'steamworks_sdk')); | ||
} |