mirror of
https://github.com/soarqin/DSP_Mods_TO.git
synced 2026-02-04 22:22:22 +08:00
CompressSave v1.3.6
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
<AssemblyName>CompressSave</AssemblyName>
|
<AssemblyName>CompressSave</AssemblyName>
|
||||||
<BepInExPluginGuid>org.soardev.compresssave</BepInExPluginGuid>
|
<BepInExPluginGuid>org.soardev.compresssave</BepInExPluginGuid>
|
||||||
<Description>DSP MOD - CompressSave</Description>
|
<Description>DSP MOD - CompressSave</Description>
|
||||||
<Version>1.3.5</Version>
|
<Version>1.3.6</Version>
|
||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>latest</LangVersion>
|
||||||
<TargetFramework>net472</TargetFramework>
|
<TargetFramework>net472</TargetFramework>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class PatchUILoadGame
|
|||||||
private static void OnSelectedChange(UILoadGameWindow __instance)
|
private static void OnSelectedChange(UILoadGameWindow __instance)
|
||||||
{
|
{
|
||||||
var selected = __instance.selected;
|
var selected = __instance.selected;
|
||||||
var compressedType = SaveUtil.SaveGetCompressType(selected == null ? null : selected.saveName);
|
var compressedType = SaveUtil.SaveGetCompressType(selected == null ? null : selected._saveName);
|
||||||
var prop3Text = __instance.prop3Text;
|
var prop3Text = __instance.prop3Text;
|
||||||
prop3Text.text = compressedType switch
|
prop3Text.text = compressedType switch
|
||||||
{
|
{
|
||||||
@@ -64,9 +64,9 @@ class PatchUILoadGame
|
|||||||
|
|
||||||
_decompressButton.onClick += _ =>
|
_decompressButton.onClick += _ =>
|
||||||
{
|
{
|
||||||
if (!SaveUtil.DecompressSave(__instance.selected.saveName, out var newfileName)) return;
|
if (!SaveUtil.DecompressSave(__instance.selected._saveName, out var newfileName)) return;
|
||||||
__instance.RefreshList();
|
__instance.RefreshList();
|
||||||
__instance.selected = __instance.entries.First(e => e.saveName == newfileName);
|
__instance.selected = __instance.entries.First(e => e._saveName == newfileName);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ static class PatchUISaveGame
|
|||||||
private static void OnSelectedChange(UISaveGameWindow __instance)
|
private static void OnSelectedChange(UISaveGameWindow __instance)
|
||||||
{
|
{
|
||||||
var selected = __instance.selected;
|
var selected = __instance.selected;
|
||||||
var compressedType = SaveUtil.SaveGetCompressType(selected == null ? null : selected.saveName);
|
var compressedType = SaveUtil.SaveGetCompressType(selected == null ? null : selected._saveName);
|
||||||
var prop3Text = __instance.prop3Text;
|
var prop3Text = __instance.prop3Text;
|
||||||
prop3Text.text = compressedType switch
|
prop3Text.text = compressedType switch
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,6 +7,9 @@
|
|||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
|
### 1.3.6
|
||||||
|
* Support for using subfolder in save filepath (only MODs are doing this currently).
|
||||||
|
|
||||||
### 1.3.5
|
### 1.3.5
|
||||||
* Fix a crash issue on choosing language other than English and Chinese.
|
* Fix a crash issue on choosing language other than English and Chinese.
|
||||||
|
|
||||||
@@ -143,6 +146,9 @@
|
|||||||
|
|
||||||
## 更新日志
|
## 更新日志
|
||||||
|
|
||||||
|
### 1.3.6
|
||||||
|
* 支持在存档路径中使用子文件夹(目前只有MOD会这么干)。
|
||||||
|
|
||||||
### 1.3.5
|
### 1.3.5
|
||||||
* 修复了选择英文和中文以外的语言时的崩溃问题。
|
* 修复了选择英文和中文以外的语言时的崩溃问题。
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "CompressSave",
|
"name": "CompressSave",
|
||||||
"version_number": "1.3.5",
|
"version_number": "1.3.6",
|
||||||
"website_url": "https://github.com/soarqin/DSP_Mods/tree/master/CompressSave",
|
"website_url": "https://github.com/soarqin/DSP_Mods/tree/master/CompressSave",
|
||||||
"description": "Compress game saves to reduce space use and boost save speed / 压缩游戏存档以降低空间使用并提升保存速度",
|
"description": "Compress game saves to reduce space use and boost save speed / 压缩游戏存档以降低空间使用并提升保存速度",
|
||||||
"dependencies": ["xiaoye97-BepInEx-5.4.17"]
|
"dependencies": ["xiaoye97-BepInEx-5.4.17"]
|
||||||
|
|||||||
Reference in New Issue
Block a user