when creating desktop shortcuts, give warning on other mods too

Since save corruption can occur, and we want the user to know that.
pull/35/head
Miepee 4 years ago
parent 3de6120574
commit e87fede60c

@ -585,9 +585,9 @@ namespace AM2RLauncher.Language {
}
}
public static string ShortcutWarning {
public static string ShortcutWarningCommunityUpdates {
get {
return ResourceManager.GetString("ShortcutWarning", resourceCulture);
return ResourceManager.GetString("ShortcutWarningCommunityUpdates", resourceCulture);
}
}
@ -620,5 +620,11 @@ namespace AM2RLauncher.Language {
return ResourceManager.GetString("AM2R11SuccessfulDescription", resourceCulture);
}
}
public static string ShortcutWarningSaves {
get {
return ResourceManager.GetString("ShortcutWarningSaves", resourceCulture);
}
}
}
}

@ -389,7 +389,7 @@ Bitte äußerste Vorsicht walten lassen.</value>
<data name="CreateShortcut" xml:space="preserve">
<value>DESKTOPVERKNÜPFUNG ERSTELLEN</value>
</data>
<data name="ShortcutWarning" xml:space="preserve">
<data name="ShortcutWarningCommunityUpdates" xml:space="preserve">
<value>Das Starten der Community Updates durch Verknüpfungen umgeht den Launcher und dadurch auch automatische Updates.
Das Updaten von AM2R oder des Launchers kann nur durch das direkte Starten des Launchers passieren!</value>
</data>
@ -408,4 +408,7 @@ Das Updaten von AM2R oder des Launchers kann nur durch das direkte Starten des L
<data name="AM2R11SubfolderDescription" xml:space="preserve">
<value>Das Spiel befindet sich in einem Unterordner. Dies wird nicht unterstützt. Das Problem kann behoben werden, indem die Zip-Datei entpackt wird, in den Ordner navigiert wird, alle Dateien ausgewählt werden, und eine neue Zip von der Auswahl erstellt wird.</value>
</data>
<data name="ShortcutWarningSaves" xml:space="preserve">
<value>Wenn mehrere Instanzen von AM2R gleichzeitig ausgeführt werden, kann dies zu Korruption von Speicherständen führen! Der AM2RLauncher verhindert dies, durch die Nutzung von Verknüpfungen ist es allerdings möglich das Pänomen auszulösen.</value>
</data>
</root>

@ -389,7 +389,7 @@ Procede con cautela.</value>
<data name="CreateShortcut" xml:space="preserve">
<value>CREAR ACCESO DIRECTO EN EL ESCRITORIO</value>
</data>
<data name="ShortcutWarning" xml:space="preserve">
<data name="ShortcutWarningCommunityUpdates" xml:space="preserve">
<value>¡Ejecutar las Actualizaciones de la Comunidad desde el acceso directo ignorará el Launcher evitando actualizaciones automáticas!
¡AM2R y el Launcher solo pueden actualizarse abriendo el Launcher directamente!</value>
</data>
@ -409,4 +409,8 @@ Procede con cautela.</value>
<data name="AM2R11SuccessfulDescription" xml:space="preserve">
<value>El zip es una copia válida de AM2R_11.</value>
</data>
<data name="ShortcutWarningSaves" xml:space="preserve">
<value>¡Si hay varias copias de AM2R funcionando simultáneamente pueden corromperse los datos de partidas guardadas!
El "Launcher" evita estas situaciones, pero utilizar accesos directos desde el escritorio puede hacer que se den estos casos.</value>
</data>
</root>

@ -388,7 +388,7 @@ Soyez prudent.</value>
<data name="MatrixToolTip" xml:space="preserve">
<value>Le Matrix Space AM2R officiel</value>
</data>
<data name="ShortcutWarning" xml:space="preserve">
<data name="ShortcutWarningCommunityUpdates" xml:space="preserve">
<value>Lancer les MAJ Communautaires par raccourci sans le lanceur empêchera les MAJ automatique!
Mettre à jour AM2R ou le lanceur ne peut passer que directement par le lanceur!</value>
</data>

@ -389,7 +389,7 @@ Procedi con cautela.</value>
<data name="CreateShortcut" xml:space="preserve">
<value>CREA SCORCIATOIA SUL DESKTOP</value>
</data>
<data name="ShortcutWarning" xml:space="preserve">
<data name="ShortcutWarningCommunityUpdates" xml:space="preserve">
<value>Lanciare Aggiornamenti della Comunità attraverso la scorciatoia bypasserà il Launcher ed eviterà gli aggiornamenti automatici! L'aggiornamento di AM2R o del Launcher può essere solo fatto tramite l'apertura diretta del Launcher!
</value>
</data>
@ -408,4 +408,7 @@ Procedi con cautela.</value>
<data name="AM2R11SuccessfulDescription" xml:space="preserve">
<value>Il file zip è una copia valida di AM2R_11.</value>
</data>
<data name="ShortcutWarningSaves" xml:space="preserve">
<value>Se multiple copie di AM2R sono in esecuzione allo stesso momento, il salvataggio potrebbe corrompersi! Il launcher lo previene, ma usando una scorciatoia desktop rende possibile attivare questo comportamento.</value>
</data>
</root>

@ -389,7 +389,7 @@
<data name="CreateShortcut" xml:space="preserve">
<value>ショートカットをデスクトップに作成</value>
</data>
<data name="ShortcutWarning" xml:space="preserve">
<data name="ShortcutWarningCommunityUpdates" xml:space="preserve">
<value>ショートカットからコミュニティアップデートを起動するとランチャーがパスされるため自動更新されません。
AM2Rやランチャーの更新は、ランチャーを直接起動することで実行されます。</value>
</data>
@ -408,4 +408,7 @@ AM2Rやランチャーの更新は、ランチャーを直接起動すること
<data name="AM2R11SuccessfulDescription" xml:space="preserve">
<value>これは正常なAM2R_11のZIPアーカイブです。</value>
</data>
<data name="ShortcutWarningSaves" xml:space="preserve">
<value>AM2Rを二重起動するとセーブファイルが破損する可能性があります! ランチャーにはこれを防ぐ機能がありますが、ショートカットからランチャーを起動すると保護機能が動作しません。</value>
</data>
</root>

@ -389,7 +389,7 @@ Prossiga com cuidado.</value>
<data name="CreateShortcut" xml:space="preserve">
<value>Criar atalho na Área de Trabalho</value>
</data>
<data name="ShortcutWarning" xml:space="preserve">
<data name="ShortcutWarningCommunityUpdates" xml:space="preserve">
<value>Iniciar as Atualizações da Comunidade através do atalho irá pular o Launcher, evitando que as atualizações automáticas sejam realizadas!
A atualização do AM2R ou do launcher só pode ser feita através do próprio launcher.</value>
</data>
@ -408,4 +408,7 @@ A atualização do AM2R ou do launcher só pode ser feita através do próprio l
<data name="AM2R11SuccessfulDescription" xml:space="preserve">
<value>Este zip é uma cópia válida do AM2R_11.</value>
</data>
<data name="ShortcutWarningSaves" xml:space="preserve">
<value>Executar múltiplas cópias do AM2R ao mesmo tempo pode corromper seus saves! O launcher evita isso, mas usar um atalho torna possível que você encontre esse problema.</value>
</data>
</root>

@ -391,7 +391,7 @@ Proceed with caution.</value>
<data name="CreateShortcut" xml:space="preserve">
<value>CREATE SHORTCUT ON DESKTOP</value>
</data>
<data name="ShortcutWarning" xml:space="preserve">
<data name="ShortcutWarningCommunityUpdates" xml:space="preserve">
<value>Launching the Community Updates through the shortcut will bypass the Launcher and thus avoid automatic updates!
Updating AM2R or the Launcher can only be done by opening the Launcher directly!</value>
</data>
@ -411,4 +411,7 @@ Updating AM2R or the Launcher can only be done by opening the Launcher directly!
<data name="AM2R11SuccessfulDescription" xml:space="preserve">
<value>The zip is a valid copy of AM2R_11.</value>
</data>
<data name="ShortcutWarningSaves" xml:space="preserve">
<value>If multiple copies of AM2R are running at once, save corruption may occur! The launcher prevents this, but using a desktop shortcut makes it possible to trigger this behavior.</value>
</data>
</root>

@ -389,7 +389,7 @@
<data name="CreateShortcut" xml:space="preserve">
<value>СОЗДАТЬ ЯРЛЫК НА РАБОЧЕМ СТОЛЕ</value>
</data>
<data name="ShortcutWarning" xml:space="preserve">
<data name="ShortcutWarningCommunityUpdates" xml:space="preserve">
<value>Запуск обновлений сообщества через ярлык проигнорирует автоматические обновления лаунчера!
Обновить AM2R и лаунчер можно только открыв лаунчер напрямую!</value>
</data>

@ -391,7 +391,7 @@
<data name="CreateShortcut" xml:space="preserve">
<value>创建桌面快捷方式</value>
</data>
<data name="ShortcutWarning" xml:space="preserve">
<data name="ShortcutWarningCommunityUpdates" xml:space="preserve">
<value>通过快捷方式运行社区更新版本,将会绕过启动器从而避免自动更新!
更新 AM2R 或者启动器只能通过直接打开启动器来完成!</value>
</data>
@ -410,4 +410,7 @@
<data name="AM2R11SuccessfulDescription" xml:space="preserve">
<value>该 Zip 压缩文件是有效的 AM2R_11 副本</value>
</data>
<data name="ShortcutWarningSaves" xml:space="preserve">
<value>如果同时运行多个 AM2R 游戏实例,将有可能导致保存数据损坏!使用启动器可防止出现该情况,但通过桌面快捷方式运行就有可能产生该问题。</value>
</data>
</root>

@ -816,14 +816,15 @@ public partial class MainForm : Form
ProfileXML profile = profileList[modSettingsProfileDropDown.SelectedIndex];
log.Info($"User wants to create a desktop shortcut for {profile.Name}.");
// We want to give a warning to users, so they don't complain with "why didn't I get 2.0???"
// We want to give a warning to users, so they don't complain with "why didn't I get 2.0???" or "why did save broke?"
string messageText = Text.ShortcutWarningSaves;
if (profile.Name == "Community Updates (Latest)")
messageText = Text.ShortcutWarningCommunityUpdates + "\n\n" + Text.ShortcutWarningSaves;
Application.Instance.Invoke(() =>
{
Application.Instance.Invoke(() =>
{
MessageBox.Show(this, Text.ShortcutWarning, Text.WarningWindowTitle, MessageBoxType.Warning);
});
}
MessageBox.Show(this, messageText, Text.WarningWindowTitle, MessageBoxType.Warning);
});
try
{

Loading…
Cancel
Save