mirror of
https://github.com/ppy/osu
synced 2024-12-17 04:15:37 +00:00
11e07c1137
In general we're doing things correctly so the realm file shouldn't expand (unless mass deletions are made from it), but this is a nice way to manually confirm the behaviour. Sometimes if using realm studio with osu! running, for instance, the realm file size can blow out of proportion. This will recover from such cases. Note that calling `RealmFactory.Compact` itself is not enough, as it will fail unless all instances of the realm have been closed.
55 lines
2.0 KiB
C#
55 lines
2.0 KiB
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
using osu.Framework.Localisation;
|
|
|
|
namespace osu.Game.Localisation
|
|
{
|
|
public static class DebugSettingsStrings
|
|
{
|
|
private const string prefix = @"osu.Game.Resources.Localisation.DebugSettings";
|
|
|
|
/// <summary>
|
|
/// "Debug"
|
|
/// </summary>
|
|
public static LocalisableString DebugSectionHeader => new TranslatableString(getKey(@"debug_section_header"), @"Debug");
|
|
|
|
/// <summary>
|
|
/// "General"
|
|
/// </summary>
|
|
public static LocalisableString GeneralHeader => new TranslatableString(getKey(@"general_header"), @"General");
|
|
|
|
/// <summary>
|
|
/// "Show log overlay"
|
|
/// </summary>
|
|
public static LocalisableString ShowLogOverlay => new TranslatableString(getKey(@"show_log_overlay"), @"Show log overlay");
|
|
|
|
/// <summary>
|
|
/// "Bypass front-to-back render pass"
|
|
/// </summary>
|
|
public static LocalisableString BypassFrontToBackPass => new TranslatableString(getKey(@"bypass_front_to_back_pass"), @"Bypass front-to-back render pass");
|
|
|
|
/// <summary>
|
|
/// "Import files"
|
|
/// </summary>
|
|
public static LocalisableString ImportFiles => new TranslatableString(getKey(@"import_files"), @"Import files");
|
|
|
|
/// <summary>
|
|
/// "Memory"
|
|
/// </summary>
|
|
public static LocalisableString MemoryHeader => new TranslatableString(getKey(@"memory_header"), @"Memory");
|
|
|
|
/// <summary>
|
|
/// "Clear all caches"
|
|
/// </summary>
|
|
public static LocalisableString ClearAllCaches => new TranslatableString(getKey(@"clear_all_caches"), @"Clear all caches");
|
|
|
|
/// <summary>
|
|
/// "Compact realm"
|
|
/// </summary>
|
|
public static LocalisableString CompactRealm => new TranslatableString(getKey(@"compact_realm"), @"Compact realm");
|
|
|
|
private static string getKey(string key) => $"{prefix}:{key}";
|
|
}
|
|
}
|