Skip to content

Commit

Permalink
Create user mods dir automatically. (CleverRaven#79057)
Browse files Browse the repository at this point in the history
* mod manager

* Update src/mod_manager.cpp

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: Maleclypse <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Jan 13, 2025
1 parent dca5cb2 commit 873b4ec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mod_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ void mod_manager::refresh_mod_list()
{
clear();

if( !dir_exist( PATH_INFO::user_moddir() ) ) {
assure_dir_exist( PATH_INFO::user_moddir() );
}

std::map<mod_id, std::vector<mod_id>> mod_dependency_map;
load_mods_from( PATH_INFO::moddir() );
load_mods_from( PATH_INFO::user_moddir_path() );
Expand Down

0 comments on commit 873b4ec

Please sign in to comment.