-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlovely.toml
93 lines (82 loc) · 2 KB
/
lovely.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
[manifest]
version = "1.0"
dump_lua = true
priority = 5
# This manifest assumes the following release structure:
#
# DVHistory/
# ├─ Init.lua
# ├─ RunHistory.lua
# ├─ RunStorage.lua
# ├─ SaveManager.lua
# ├─ UI/
# │ ├─ BaseUI.lua
# │ ├─ RunHistoryUI.lua
# │ ├─ RunStorageUI.lua
# │ ├─ ButtonCallbacks.lua
# ├─ Utils.lua
[[patches]]
[patches.copy]
target = "globals.lua"
position = "append"
sources = [ "Init.lua" ]
[[patches]]
[patches.copy]
target = "main.lua"
position = "append"
sources = [
"RunHistory.lua",
"RunStorage.lua",
"Utils.lua"
]
[[patches]]
[patches.copy]
target = "functions/UI_definitions.lua"
position = "append"
sources = [
"UI/BaseUI.lua",
"UI/RunHistoryUI.lua",
"UI/RunStorageUI.lua"
]
[[patches]]
[patches.copy]
target = "functions/button_callbacks.lua"
position = "append"
sources = [ "UI/ButtonCallbacks.lua" ]
[[patches]]
[patches.pattern]
target = "functions/UI_definitions.lua"
pattern = "G.GAME.stake > 1 and {"
position = "before"
match_indent = true
overwrite = false
payload = "DV.HIST.history_tab(),"
[[patches]]
[patches.pattern]
target = "game.lua"
pattern = "G.FILE_HANDLER.force = false"
position = "before"
match_indent = true
overwrite = false
payload = "DV.HIST.queue_save_manager()"
# Below are extensions to engine/save_manager.lua;
# special considerations are needed, because the save manager runs on a thread.
[[patches]]
[patches.module]
source = "SaveManager.lua"
before = "engine/save_manager.lua"
name = "DV"
load_now = true
# TODO: `load_now` above is a stopgap solution to the lazy module loading introduced in Lovely v0.6.0
# My hunch is that lazy loading breaks something due to the fact that save manager runs on a thread.
[[patches]]
[patches.pattern]
target = "engine/save_manager.lua"
pattern = "compress_and_save(prefix_profile..'save.jkr', request.save_table)"
position = "after"
match_indent = true
overwrite = false
payload = '''
elseif request.type == 'store_run' then
DV.HIST.execute_save_manager(request)
'''