Download scripts/3_Game/DayZ/Client/Mods/ModLoader.c from FelonieZ/DayZ_Scripts: direct link, hf CLI and curl.
- Browser
- Download file 549 Bytes
-
https://huggingface.co/datasets/FelonieZ/DayZ_Scripts/resolve/main/scripts/3_Game/DayZ/Client/Mods/ModLoader.c
- Command line
-
hf download hf://datasets/FelonieZ/DayZ_Scripts/scripts/3_Game/DayZ/Client/Mods/ModLoader.c
-
curl -L -o ModLoader.c https://huggingface.co/datasets/FelonieZ/DayZ_Scripts/resolve/main/scripts/3_Game/DayZ/Client/Mods/ModLoader.c
549 Bytes
| class ModLoader | |
| { | |
| protected static bool m_Loaded; | |
| protected static ref array<ref ModStructure> m_Mods; | |
| static array<ref ModStructure> GetMods() | |
| { | |
| //if( !m_Loaded ) | |
| LoadMods(); | |
| return m_Mods; | |
| } | |
| static void LoadMods() | |
| { | |
| m_Mods = new array<ref ModStructure>; | |
| int mod_count = GetGame().ConfigGetChildrenCount( "CfgMods" ); | |
| for( int i = 2; i < mod_count; i++ ) | |
| { | |
| string mod_name; | |
| GetGame().ConfigGetChildName( "CfgMods", i, mod_name ); | |
| m_Mods.Insert( new ModStructure( i, "CfgMods " + mod_name ) ); | |
| } | |
| } | |
| } |