Skip to content

Commit 7f86424

Browse files
committed
Add and update mod menu folder shortcuts
1 parent 5893e5d commit 7f86424

File tree

2 files changed

+33
-3
lines changed

2 files changed

+33
-3
lines changed

MOD.Scripts.UI/MODMenuNormal.cs

-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,6 @@ private void AudioTabOnGUI()
293293

294294
private void TroubleShootingTabOnGUI()
295295
{
296-
Label("Save Files and Log Files");
297296
MODMenuSupport.ShowSupportButtons(content => Button(content));
298297

299298
HeadingLabel("Developer Tools");

MOD.Scripts.UI/MODMenuSupport.cs

+33-2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public static void EmergencyModMenu(string shortErrorMessage, string longErrorMe
3737
/// </summary>
3838
public static void ShowSupportButtons(Func<GUIContent, bool> buttonRenderer)
3939
{
40+
MODMenuCommon.Label("Save Files and Log Files");
4041
{
4142
GUILayout.BeginHorizontal();
4243
if (buttonRenderer(new GUIContent("Show output_log.txt / Player.log",
@@ -51,7 +52,8 @@ public static void ShowSupportButtons(Func<GUIContent, bool> buttonRenderer)
5152
MODActions.ShowLogFolder();
5253
}
5354

54-
if (buttonRenderer(new GUIContent("Show Saves", "Clearing your save files can fix some issues with game startup, and resets all mod flags.\n\n" +
55+
if (buttonRenderer(new GUIContent("Show Saves", "Click to open the save folder, which includes saves, quicksaves, and global save data\n\n" +
56+
"Clearing your save files can fix some issues with game startup, and resets all mod flags.\n\n" +
5557
"- WARNING: Steam cloud will restore your saves if you manually delete them! Therefore, remember to disable steam cloud, otherwise your saves will magically reappear!\n" +
5658
"- The 'global.dat' file stores your global unlock process and mod flags\n" +
5759
"- The 'qsaveX.dat' and 'saveXXX.dat' files contain individual save files. Note that these becoming corrupted can break your game\n" +
@@ -60,17 +62,46 @@ public static void ShowSupportButtons(Func<GUIContent, bool> buttonRenderer)
6062
MODActions.ShowSaveFolder();
6163
}
6264

65+
GUILayout.EndHorizontal();
66+
}
67+
68+
MODMenuCommon.Label("Quick Access to Game Folders");
69+
{
70+
GUILayout.BeginHorizontal();
71+
if (buttonRenderer(new GUIContent("Show .assets Folder", "Click to open the game's main data folder, which contains the .assets files.\n\n" +
72+
"Fonts, certain textures, and other game data is kept in the sharedassets0.assets file.")))
73+
{
74+
Application.OpenURL(Application.dataPath);
75+
}
76+
77+
if (buttonRenderer(new GUIContent("Show StreamingAssets Folder", "Click to open the StreamingAssets folder, which contains most of the game assets.\n\n" +
78+
"- Most Images/Textures, including Sprites, Backgrounds, Text Images, and Filter effects\n" +
79+
"- Voices, Background Music, and Sound Effects\n" +
80+
"- Game Scripts and Compiled Game Scripts\n" +
81+
"- Movies\n" +
82+
"- Other Misc Game Data")))
83+
{
84+
Application.OpenURL(Application.streamingAssetsPath);
85+
}
86+
GUILayout.EndHorizontal();
87+
88+
GUILayout.BeginHorizontal();
89+
if (buttonRenderer(new GUIContent("Show DLL Folder", "Click to open the 'Managed' folder, which contains our modded 'Assembly-CSharp.dll'")))
90+
{
91+
Application.OpenURL(System.IO.Path.Combine(Application.dataPath, "Managed"));
92+
}
93+
6394
if (buttonRenderer(new GUIContent("Show Compiled Scripts", "Sometimes out-of-date scripts can cause the game to fail to start up (stuck on black screen).\n\n" +
6495
"You can manually clear the *.mg files (compiled scripts) in this folder to force the game to regenerate them the next time the game starts.\n\n" +
6596
"Please be aware that the game will freeze for a couple minutes on a white screen, while scripts are being compiled.")))
6697
{
6798
MODActions.ShowCompiledScripts();
6899
}
69100

70-
71101
GUILayout.EndHorizontal();
72102
}
73103

104+
MODMenuCommon.Label("Support Pages");
74105
if (buttonRenderer(new GUIContent("Open Support Page: 07th-mod.com/wiki/Higurashi/support", "If you have problems with the game, the information on this site may help.\n\n" +
75106
"There are also instructions on reporting bugs, as well as a link to our Discord server to contact us directly")))
76107
{

0 commit comments

Comments
 (0)