Skip to content

Commit 748e62f

Browse files
committed
调整一些addConsoleCommand使用相关
框架跟进
1 parent 7bb964a commit 748e62f

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

Zenitha

main.lua

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,14 @@ ZENITHA.addConsoleCommand('regurl',{
126126
[HKEY_CLASSES_ROOT\techmino\shell\open],
127127
[HKEY_CLASSES_ROOT\techmino\shell\open\command],
128128
@="\"EXEPATH\" %1",
129-
]=]
130-
regCode=regCode:gsub('EXEPATH',path)
129+
]=]:gsub('EXEPATH',path)
131130
love.filesystem.write('RegisterURL.reg',regCode)
132-
love.system.openURL(love.filesystem.getSaveDirectory())
131+
_CL{COLOR.G,".reg script generated, check it carefully then run it"}
132+
_CL("Check the file with command 'explorer'.")
133133
elseif bool=="off" then
134134
love.filesystem.write('UnregisterURL.reg',[=[Windows Registry Editor Version 5.00\n[-HKEY_CLASSES_ROOT\techmino]]=])
135-
love.system.openURL(love.filesystem.getSaveDirectory())
135+
_CL{COLOR.G,".reg script generated, check it carefully then run it"}
136+
_CL("Check the file with command 'explorer'.")
136137
end
137138
else
138139
_CL{COLOR.lR,"Only",COLOR.lS,"available",COLOR.lY,"on",COLOR.lG,"Windows"}
@@ -152,17 +153,17 @@ ZENITHA.addConsoleCommand('supernova',{
152153
if not PROGRESS.getStyleUnlock('acry') then
153154
PROGRESS.setStyleUnlock('acry')
154155
PROGRESS.setExteriorUnlock('action')
155-
_CL("Extraordinary!")
156156
end
157+
_CL("Extraordinary!")
157158
end,
158159
},true)
159160
ZENITHA.addConsoleCommand('chain',{
160161
code=function()
161162
if not PROGRESS.getStyleUnlock('gela') then
162163
PROGRESS.setStyleUnlock('gela')
163164
PROGRESS.setExteriorUnlock('chain')
164-
_CL("Ice storm!")
165165
end
166+
_CL("Fever!")
166167
end,
167168
},true)
168169

0 commit comments

Comments
 (0)