Skip to content

Commit

Permalink
Check previous commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
distrohelena committed Mar 21, 2017
1 parent 4a9904f commit 14da60d
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -211,3 +211,4 @@ GeneratedArtifacts/
_Pvt_Extensions/
ModelManifest.xml
/Master/NucleusCoop.VC.VC.opendb
*.db
24 changes: 14 additions & 10 deletions Master/NucleusCoopTool/Forms/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,17 @@ protected override void WndProc(ref Message m)

public void RefreshGames()
{
foreach (var con in controls)
lock (controls)
{
if (con.Value != null)
foreach (var con in controls)
{
con.Value.Dispose();
if (con.Value != null)
{
con.Value.Dispose();
}
}
}

lock (controls)
{
controls.Clear();
this.list_Games.Controls.Clear();

noGamesPresent = false;
controls.Clear();

List<UserGameInfo> games = gameManager.User.Games;
for (int i = 0; i < games.Count; i++)
Expand Down Expand Up @@ -105,6 +102,13 @@ public void NewUserGame(UserGameInfo game)
return;
}

if (noGamesPresent)
{
noGamesPresent = false;
RefreshGames();
return;
}

GameControl con = new GameControl();
con.Game = game;
con.Width = list_Games.Width;
Expand Down
2 changes: 1 addition & 1 deletion Master/NucleusGaming/Coop/Generic/GenericGameHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void End()
try
{
#if RELEASE
for (int i = 0; i < profile.PlayerCount; i++)
for (int i = 0; i < profile.PlayerData.Count; i++)
{
string linkFolder = Path.Combine(backupDir, "Instance" + i);
if (Directory.Exists(linkFolder))
Expand Down
7 changes: 7 additions & 0 deletions Master/NucleusGaming/Managers/GameManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,13 @@ public UserGameInfo TryAddGame(string exePath)
continue;
}

#if RELEASE
if (game.Debug)
{
continue;
}
#endif

LogManager.Log("Found game: {0}, full path: {1}", game.GameName, exePath);
UserGameInfo uinfo = new UserGameInfo();
uinfo.InitializeDefault(game, exePath);
Expand Down
Binary file modified PreAlpha.rar
Binary file not shown.

0 comments on commit 14da60d

Please sign in to comment.