Class: Nauvisian::Platform::Windows

Inherits:
Nauvisian::Platform show all
Defined in:
lib/nauvisian/platform.rb

Instance Method Summary collapse

Methods inherited from Nauvisian::Platform

#application_directory, #mod_directory, platform, #save_directory, #script_output_directory

Instance Method Details

#home_directoryObject



68
69
70
# File 'lib/nauvisian/platform.rb', line 68

def home_directory
  Pathname(ENV.fetch("USERPROFILE")).expand_path.freeze
end

#user_data_directoryObject



64
65
66
# File 'lib/nauvisian/platform.rb', line 64

def user_data_directory
  (Pathname(ENV.fetch("APPDATA")).expand_path / "Factorio").freeze
end