Class: Nauvisian::Platform::Windows
Instance Method Summary
collapse
#application_directory, #mod_directory, platform, #save_directory, #script_output_directory
Instance Method Details
#home_directory ⇒ Object
68
69
70
|
# File 'lib/nauvisian/platform.rb', line 68
def home_directory
Pathname(ENV.fetch("USERPROFILE")).expand_path.freeze
end
|
#user_data_directory ⇒ Object
64
65
66
|
# File 'lib/nauvisian/platform.rb', line 64
def user_data_directory
(Pathname(ENV.fetch("APPDATA")).expand_path / "Factorio").freeze
end
|