Add special mods for the base game and expansions
Just for the metadata
This commit is contained in:
17
lib/mod.dart
17
lib/mod.dart
@@ -282,18 +282,6 @@ class Mod {
|
||||
);
|
||||
}
|
||||
|
||||
// Check if this is RimWorld base game or expansion
|
||||
bool isBaseGame = id == 'ludeon.rimworld';
|
||||
bool isExpansion = !isBaseGame && id.startsWith('ludeon.rimworld.');
|
||||
|
||||
// If this is an expansion, ensure it depends on the base game
|
||||
if (isExpansion && !loadAfter.contains('ludeon.rimworld')) {
|
||||
loadAfter.add('ludeon.rimworld');
|
||||
logger.info(
|
||||
'Added base game dependency for expansion mod: ludeon.rimworld',
|
||||
);
|
||||
}
|
||||
|
||||
final fileCountTime =
|
||||
stopwatch.elapsedMilliseconds - metadataTime - xmlTime;
|
||||
final totalTime = stopwatch.elapsedMilliseconds;
|
||||
@@ -314,8 +302,9 @@ class Mod {
|
||||
loadBefore: loadBefore,
|
||||
incompatibilities: incompatibilities,
|
||||
size: size,
|
||||
isBaseGame: isBaseGame,
|
||||
isExpansion: isExpansion,
|
||||
// No mods loaded from workshop are ever base or expansion games
|
||||
isBaseGame: false,
|
||||
isExpansion: false,
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user