Skip to content

Commit 4b6e963

Browse files
committed
Custom decompiler settings
1 parent ab097a4 commit 4b6e963

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

.github/workflows/deploy-dr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
workflow_dispatch:
77

88
jobs:
9-
build:
9+
build-deltarune:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout
@@ -23,7 +23,7 @@ jobs:
2323
STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }}
2424
- name: Extract Deltarune's code
2525
run: |
26-
./utmtcli/UndertaleModCli load game/data.win --scripts 'utmt/UndertaleModTool/Scripts/Resource Unpackers/ExportAllCode.csx'
26+
./utmtcli/UndertaleModCli load game/data.win --scripts 'scripts/ExportCodeFormatted.csx'
2727
mv game/Export_Code decompiled-deltarune
2828
- name: Build
2929
run: ./build.sh deltarune

.github/workflows/deploy-ut.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
workflow_dispatch:
77

88
jobs:
9-
build:
9+
build-undertale:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout
@@ -23,7 +23,7 @@ jobs:
2323
STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }}
2424
- name: Extract Undertale's code
2525
run: |
26-
./utmtcli/UndertaleModCli load game/assets/game.unx --scripts 'utmt/UndertaleModTool/Scripts/Resource Unpackers/ExportAllCode.csx'
26+
./utmtcli/UndertaleModCli load game/assets/game.unx --scripts 'scripts/ExportCodeFormatted.csx'
2727
mv game/assets/Export_Code decompiled-undertale
2828
- name: Build
2929
run: ./build.sh undertale

.github/workflows/deploy-uty.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
workflow_dispatch:
77

88
jobs:
9-
build:
9+
build-undertaleyellow:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout
@@ -19,7 +19,7 @@ jobs:
1919
unzip -p game.zip "Undertale Yellow v1_1/data.win" > data.win
2020
- name: Extract Undertale Yellow's code
2121
run: |
22-
./utmtcli/UndertaleModCli load data.win --scripts 'utmt/UndertaleModTool/Scripts/Resource Unpackers/ExportAllCode.csx'
22+
./utmtcli/UndertaleModCli load data.win --scripts 'scripts/ExportCodeFormatted.csx'
2323
mv Export_Code decompiled-undertaleyellow
2424
- name: Build
2525
run: ./build.sh undertaleyellow

scripts/ExportCodeFormatted.csx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
using System;
2+
EnsureDataLoaded();
3+
4+
Underanalyzer.Decompiler.DecompileSettings decompSettings = Data.ToolInfo.DecompilerSettings;
5+
decompSettings.RemoveSingleLineBlockBraces = true;
6+
decompSettings.OpenBlockBraceOnSameLine = false;
7+
decompSettings.EmptyLineAroundBranchStatements = false;
8+
9+
#load "../utmt/UndertaleModTool/Scripts/Resource Unpackers/ExportAllCode.csx"

0 commit comments

Comments
 (0)