eclipse plugin: Launch the game with the selected project's install if any
This commit is contained in:
parent
02c8a5bd36
commit
dd15c8434a
1 changed files with 5 additions and 1 deletions
|
@ -114,7 +114,11 @@ public class GameUtils
|
|||
*/
|
||||
public static void startGame()
|
||||
{
|
||||
startGame( null, null );
|
||||
IResource selectedRes = WorkspaceUtils.getSelectedResource( );
|
||||
if ( selectedRes == null )
|
||||
startGame( null, null );
|
||||
else
|
||||
startGame( WesnothInstallsUtils.getInstallNameForResource( selectedRes ), null );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue