Skip to content

Commit 95dd237

Browse files
Better logging + installer CI merge artifacts
1 parent 733ca20 commit 95dd237

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

.github/workflows/installer_ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,8 @@ jobs:
3030
with:
3131
name: ${{ matrix.os }}
3232
path: installer/dist/
33+
- uses: actions/upload-artifact/merge@v4
34+
with:
35+
name: artifacts
36+
delete-merged: true
3337

installer/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ def _install(path):
7474
config_file = open(path + "/BepInEx/config/BepInEx.cfg", "a+")
7575
config = configparser.ConfigParser()
7676
config.read_file(config_file)
77+
logs = not bool(disable_logs_button.get())
7778
if "Logging.Console" in config:
78-
config["Logging.Console"]["Enabled"] = not bool(
79-
disable_logs_button.get())
79+
config["Logging.Console"]["Enabled"] = logs
8080
else:
8181
config["Logging.Console"] = {
82-
"Enabled": not bool(disable_logs_button.get())}
82+
"Enabled": logs}
8383
config.write(config_file)
8484
progress_bar.step()
8585

src/Plugin.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
using System.Reflection;
22
using BepInEx;
3+
using BepInEx.Configuration;
34
using BepInEx.Logging;
45
using Il2CppInterop.Runtime;
56
using Il2CppInterop.Runtime.Injection;
7+
using LibCpp2IL;
68
using Newtonsoft.Json.Linq;
79

810
namespace PolyMod
@@ -26,6 +28,7 @@ public override void Load()
2628
ModLoader.Init();
2729
Visual.Init();
2830
SpritesLoader.Init();
31+
ConfigFile.CoreConfig[new("Logging.Disk", "WriteUnityLog")].BoxedValue = true;
2932
//PolyBreaker.Init();
3033
}
3134

0 commit comments

Comments
 (0)