alliedmodders / metamod-source

Metamod:Source - C++ Plugin Environment and Detour Library for the Source Engine
http://www.metamodsource.net/
Other
374 stars 83 forks source link

Add a function to add multiple files from one folder #126

Open karl-police opened 11 months ago

karl-police commented 11 months ago

Now you can do something like this. By default it's not on recursive.

binary.sources += [
  'provider/source2/provider_source2.cpp',
  os.path.join(sdk.path, 'tier1', 'convar.cpp'),
  os.path.join(sdk.path, 'public', 'tier0', 'memoverride.cpp'),
  *addFromFolder( sdk.path + "/entity2" ),
]