Class: Modsvaskr::Games::SkyrimSe
- Inherits:
-
Modsvaskr::Game
- Object
- Modsvaskr::Game
- Modsvaskr::Games::SkyrimSe
- Defined in:
- lib/modsvaskr/games/skyrim_se.rb
Overview
Handle a Skyrim installation
Constant Summary collapse
- SEVEN_ZIP_CMD =
{ dir: 'C:\Program Files\7-Zip', exe: '7z.exe' }
Instance Method Summary collapse
-
#complete_game_menu(menu) ⇒ Object
Complete the game menu [API] - This method is optional.
-
#game_esps ⇒ Object
List of default esps present in the game (the ones in the Data folder when 0 mod is being used).
-
#init ⇒ Object
Initialize the game [API] - This method is optional.
-
#running_exe ⇒ Object
Get the game running executable name (that can be found in a tasks manager) [API] - This method is mandatory.
Methods inherited from Modsvaskr::Game
#initialize, #launch_exe, #name, #path, #xedit
Methods included from Logger
Methods included from RunCmd
Constructor Details
This class inherits a constructor from Modsvaskr::Game
Instance Method Details
#complete_game_menu(menu) ⇒ Object
Complete the game menu
- API
-
This method is optional
-
- Parameters
-
menu (CursesMenu): Menu to complete
28 29 30 31 32 33 34 |
# File 'lib/modsvaskr/games/skyrim_se.rb', line 28 def () .item 'Install SKSE64' do install_skse64 puts 'Press Enter to continue...' $stdin.gets end end |
#game_esps ⇒ Object
List of default esps present in the game (the ones in the Data folder when 0 mod is being used)
- Result
-
Array<String>: List of esp/esm/esl base file names.
49 50 51 52 53 54 55 56 57 |
# File 'lib/modsvaskr/games/skyrim_se.rb', line 49 def game_esps %w[ skyrim.esm update.esm dawnguard.esm hearthfires.esm dragonborn.esm ] end |
#init ⇒ Object
Initialize the game
- API
-
This method is optional
-
19 20 21 |
# File 'lib/modsvaskr/games/skyrim_se.rb', line 19 def init @tmp_dir = "#{Dir.tmpdir}/modsvaskr" end |
#running_exe ⇒ Object
Get the game running executable name (that can be found in a tasks manager)
- API
-
This method is mandatory
-
- Result
-
String: The running exe name
41 42 43 |
# File 'lib/modsvaskr/games/skyrim_se.rb', line 41 def running_exe 'SkyrimSE.exe' end |