mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Enable Redate Plugins for Skyrim Special Edition
Its creation kit still uses timestamps for reading load order...
This commit is contained in:
@@ -41,7 +41,7 @@ Main Menu
|
||||
|
||||
A few items in the main menu are not self-explanatory:
|
||||
|
||||
- "Redate Plugins" is provided so that Skyrim modders may set the load order for the Creation Kit. It is only available for Skyrim, and changes the timestamps of the plugins in its Data folder to match their current load order. A side effect of changing the timestamps is that any Steam Workshop mods installed will be re-downloaded.
|
||||
- "Redate Plugins" is provided so that Skyrim and Skyrim Special Edition modders may set the load order for the Creation Kit. It is only available for Skyrim, and changes the timestamps of the plugins in its Data folder to match their current load order. A side effect of changing the timestamps is that any Steam Workshop mods installed will be re-downloaded.
|
||||
- "Copy Load Order" copies the displayed list of plugins and the decimal and hexadecimal indices of active plugins.
|
||||
- "Copy Content" copies the data displayed in LOOT's cards as YAML-formatted text.
|
||||
- "Refresh Content" re-scans the installed plugins' headers and regenerates the content LOOT displays. This can be useful if you have made changes to your installed plugins while LOOT was open. Refreshing content will also discard any CRCs that were previously calculated, as they may have changed.
|
||||
|
||||
@@ -179,7 +179,7 @@ function onCancelSort() {
|
||||
}
|
||||
|
||||
function onRedatePlugins(evt) {
|
||||
loot.Dialog.askQuestion(loot.l10n.translate('Redate Plugins?'), loot.l10n.translate('This feature is provided so that modders using the Creation Kit may set the load order it uses. A side-effect is that any subscribed Steam Workshop mods will be re-downloaded by Steam. Do you wish to continue?'), loot.l10n.translate('Redate'), (result) => {
|
||||
loot.Dialog.askQuestion(loot.l10n.translate('Redate Plugins?'), loot.l10n.translate('This feature is provided so that modders using the Creation Kit may set the load order it uses. A side-effect is that any subscribed Steam Workshop mods will be re-downloaded by Steam (this does not affect Skyrim Special Edition). Do you wish to continue?'), loot.l10n.translate('Redate'), (result) => {
|
||||
if (result) {
|
||||
loot.query('redatePlugins').then(() => {
|
||||
loot.Dialog.showNotification('Plugins were successfully redated.');
|
||||
@@ -455,7 +455,10 @@ function onFolderChange(evt) {
|
||||
/* Enable/disable the redate plugins option. */
|
||||
let gameSettings;
|
||||
if (loot.settings && loot.settings.games) {
|
||||
gameSettings = loot.settings.games.find(game => game.folder === evt.detail.folder);
|
||||
gameSettings = loot.settings.games.find(game => (
|
||||
(game.type === 'Skyrim' || game.type === 'SkyrimSE')
|
||||
&& game.folder === evt.detail.folder
|
||||
));
|
||||
}
|
||||
loot.DOM.enable('redatePluginsButton', gameSettings && gameSettings.type === 'Skyrim');
|
||||
loot.DOM.enable('redatePluginsButton', gameSettings !== undefined);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user