Skip to content

Commit

Permalink
Fix style.
Browse files Browse the repository at this point in the history
  • Loading branch information
hokein committed Oct 23, 2017
1 parent dd57cc1 commit 738eb9e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
4 changes: 2 additions & 2 deletions docs/get-steamworks-sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ downloads list.)
3. The extracted contents will contain one subdirectory, `sdk`. Rename it to
`steamworks_sdk`.
4. Copy the renamed directory `steamworks_sdk` to `<greenworks_src_dir>/deps/`.
Alternatively, you can also set a `STEAMWORKS_SDK_PATH` environment variable which points to the `steamworks_sdk` directory.

Alternatively, you can also set a `STEAMWORKS_SDK_PATH` environment variable
which points to the `steamworks_sdk` directory.
17 changes: 7 additions & 10 deletions tools/steamworks_sdk_dir.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
/* global console, require, __dirname, process */
'use strict';
'use strict'

const path = require('path');
const path = require('path')

// Allow setting a different steamworks_sdk path via an environment variable
// 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'));
console.log(process.env.STEAMWORKS_SDK_PATH)
} else {
// Otherwise, use the default path (deps/steamworks_sdk)
console.log(path.join(__dirname, '..', 'deps', 'steamworks_sdk'))
}

0 comments on commit 738eb9e

Please sign in to comment.