diff options
author | John Hodge <tpg@mutabah.net> | 2019-01-01 12:49:30 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2019-01-01 12:49:30 +0800 |
commit | 47954747236802644fcfdbd378e320fbb69690bc (patch) | |
tree | 3e50bf41989aae323642b017ba87de61b194b44f /src | |
parent | 2f0ddfaf240c0269087d307b6df6bc00817e6806 (diff) | |
download | mrust-47954747236802644fcfdbd378e320fbb69690bc.tar.gz |
Parse - Tweak module loading rules again, should work this time
Diffstat (limited to 'src')
-rw-r--r-- | src/parse/root.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/parse/root.cpp b/src/parse/root.cpp index d457d197..2db03c99 100644 --- a/src/parse/root.cpp +++ b/src/parse/root.cpp @@ -1964,7 +1964,8 @@ namespace { } else { - sub_path = mod_fileinfo.path; + sub_path = dirname(mod_fileinfo.path) + mod_path.nodes().back().name() + "/" + name; + //sub_path = mod_fileinfo.path; sub_file_controls_dir = false; } DEBUG("Mod '" << name << "', sub_path = " << sub_path); @@ -2032,7 +2033,10 @@ namespace { else if( ifs_file.is_open() ) { submod.m_file_info.path = newpath_file; - //submod.m_file_info.controls_dir = false; + if( path_attr == "" ) + { + submod.m_file_info.controls_dir = false; + } } // TODO: If this is not a controlling file, look in `modname/` for the new module else |