Skip to content

Commit

Permalink
updated build script and small bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TanninOne committed Oct 13, 2016
1 parent 97c9a42 commit f596f35
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
12 changes: 9 additions & 3 deletions app/package.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
{
"name": "nmm2",
"version": "0.0.2",
"version": "0.1.0",
"productName": "Nexus Mod Manager 2 Retribution",
"description": "Nexus Mod Manager 2 Retribution",
"author": "Black Tree Gaming Ltd.",
"license": "GPL-3.0",
"main": "main.js",
"engines": {
"electron": "1.3.5"
"electron": "1.4.3"
},
"repository": {
"type": "git",
"url": "https://github.com/Nexus-Mods/NMM2"
},
"dependencies": {
"bluebird": "^3.4.6",
"drivelist": "^3.3.4",
"electron-squirrel-startup": "^1.0.0",
"ffi": "^2.1.0",
"fs-extra-promise": "^0.4.0",
"i18next": "^3.4.1",
"i18next-node-fs-backend": "^0.1.2",
"node-7z": "^0.4.0",
"node-ipc": "^8.9.2",
"node-rest-client": "^2.0.1",
"react": "^15.3.0",
"react-addons-css-transition-group": "^15.3.1",
Expand All @@ -28,7 +31,7 @@
"react-dom": "^15.3.0",
"react-fontawesome": "^1.1.0",
"react-i18next": "^1.8.0",
"react-layout-pane": "^0.1.16",
"react-layout-pane": "TanninOne/react-layout-pane",
"react-redux": "^4.4.5",
"redux": "^3.5.2",
"redux-act": "^0.5.0",
Expand All @@ -39,8 +42,11 @@
"redux-persist": "^3.5.0",
"redux-persist-node-storage": "^1.0.2",
"redux-thunk": "^2.1.0",
"redux-watcher": "^0.1.2",
"ref-union": "^1.0.1",
"source-map-support": "^0.4.2",
"string-template": "^1.0.0",
"tmp": "^0.0.29",
"winreg": "^1.2.2",
"winston": "^2.2.0"
}
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@
"react-layout-pane": "TanninOne/react-layout-pane",
"react-redux": "^4.4.5",
"react-shallow-testutils": "^2.0.0",
"react-sidebar": "^2.2.1",
"redux": "^3.5.2",
"redux-act": "^0.5.0",
"redux-devtools": "^3.3.1",
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/gamemode_management/GameModeManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class GameModeManager {

private activateGameMode(mode: string, store: Redux.Store<IStateEx>): Promise<Persistor> {
if (mode === undefined) {
return null;
return Promise.resolve(null);
}

const statePath: string = path.join(this.mBasePath, mode, 'state');
Expand Down
5 changes: 4 additions & 1 deletion src/extensions/welcome_screen/WelcomeScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ class WelcomeScreen extends React.Component<IWelcomeScreenProps, IWelcomeScreenS

return (
<ToolButton
key={ game.id }
game={ game }
tool={ tool }
discovery={ toolDiscovery }
Expand All @@ -145,10 +146,12 @@ class WelcomeScreen extends React.Component<IWelcomeScreenProps, IWelcomeScreenS

function mapStateToProps(state: any): IConnectedProps {
let gameMode: string = state.settings.gameMode.current;
let discovered = state.settings.gameMode.discovered[gameMode];

return {
gameMode,
knownGames: state.session.gameMode.known,
discoveredTools: state.settings.gameMode.discovered[gameMode].tools,
discoveredTools: discovered !== undefined ? discovered.tools : undefined,
};
}

Expand Down

0 comments on commit f596f35

Please sign in to comment.