删行末空格

This commit is contained in:
MrZ_26
2023-08-03 10:11:27 +08:00
parent c9cbb0e363
commit 0ae9cbcdaa
11 changed files with 20 additions and 21 deletions

View File

@@ -8,7 +8,7 @@ index c1932555..552e432e 100644
**/ **/
-void vibrate(); -void vibrate();
+void vibrate(const double seconds); +void vibrate(const double seconds);
/** /**
* Enable mix mode (e.g. with background music apps) and playback with a muted device. * Enable mix mode (e.g. with background music apps) and playback with a muted device.
diff --git a/src/common/ios.mm b/src/common/ios.mm diff --git a/src/common/ios.mm b/src/common/ios.mm
@@ -18,16 +18,16 @@ index 7730991e..4ba8e708 100644
@@ -36,6 +36,8 @@ @@ -36,6 +36,8 @@
#include <SDL_video.h> #include <SDL_video.h>
#include <SDL_syswm.h> #include <SDL_syswm.h>
+#include <sys/utsname.h> +#include <sys/utsname.h>
+ +
static NSArray *getLovesInDocuments(); static NSArray *getLovesInDocuments();
static bool deleteFileInDocuments(NSString *filename); static bool deleteFileInDocuments(NSString *filename);
@@ -391,10 +393,40 @@ std::string getExecutablePath() @@ -391,10 +393,40 @@ std::string getExecutablePath()
} }
} }
-void vibrate() -void vibrate()
+void vibrate(const double seconds) +void vibrate(const double seconds)
{ {
@@ -73,7 +73,7 @@ index c8af8596..ae7a5e32 100644
@@ -140,6 +140,10 @@ enum DoneAction @@ -140,6 +140,10 @@ enum DoneAction
DONE_RESTART, DONE_RESTART,
}; };
+extern "C" { +extern "C" {
+ int luaopen_CCloader(lua_State *L); + int luaopen_CCloader(lua_State *L);
+} +}
@@ -84,7 +84,7 @@ index c8af8596..ae7a5e32 100644
@@ -158,6 +162,9 @@ static DoneAction runlove(int argc, char **argv, int &retval) @@ -158,6 +162,9 @@ static DoneAction runlove(int argc, char **argv, int &retval)
lua_State *L = luaL_newstate(); lua_State *L = luaL_newstate();
luaL_openlibs(L); luaL_openlibs(L);
+ // Init CCloader + // Init CCloader
+ luaopen_CCloader(L); + luaopen_CCloader(L);
+ +

View File

@@ -90,7 +90,6 @@ Module.expectedDataFileDownloads++;
function assert(check, msg) { function assert(check, msg) {
if (!check) throw msg + new Error().stack; if (!check) throw msg + new Error().stack;
} }
function DataRequest(start, end, crunched, audio) { function DataRequest(start, end, crunched, audio) {
this.start = start; this.start = start;

View File

@@ -33,8 +33,8 @@ end
local function generateGuide(num) local function generateGuide(num)
local l=#F local l=#F
if l>num then if l>num then
return return
end end
for i=l,num do for i=l,num do
F[i] = {} F[i] = {}

View File

@@ -1,5 +1,5 @@
-- Automatically generated by a Python script, from a markdown source file. -- Automatically generated by a Python script, from a markdown source file.
-- The script can be found here: https://github.com/user670/techmino-dictionary-converter/blob/master/tool.py -- The script can be found here: https://github.com/user670/techmino-dictionary-converter/blob/master/tool.py
return { return {
{"Translator Note 1", {"Translator Note 1",
"", "",

View File

@@ -1,5 +1,5 @@
-- Automatically generated by a Python script, from a markdown source file. -- Automatically generated by a Python script, from a markdown source file.
-- The script can be found here: https://github.com/user670/techmino-dictionary-converter/blob/master/tool.py -- The script can be found here: https://github.com/user670/techmino-dictionary-converter/blob/master/tool.py
return { return {
{"翻訳者からのメッセージ 1", {"翻訳者からのメッセージ 1",
"", "",

View File

@@ -1,5 +1,5 @@
-- Automatically generated by a Python script, from a markdown source file. -- Automatically generated by a Python script, from a markdown source file.
-- The script can be found here: https://github.com/user670/techmino-dictionary-converter/blob/master/tool.py -- The script can be found here: https://github.com/user670/techmino-dictionary-converter/blob/master/tool.py
return { return {
{"新人须知", {"新人须知",
"读我 必读 萌新 xinren new noob readme", "读我 必读 萌新 xinren new noob readme",

View File

@@ -1248,7 +1248,7 @@ C. Tay cầm chơi game (Gamepad)
"Techmino đã đột ngột dừng lại", "Techmino đã đột ngột dừng lại",
-- If you have a real interest in programming, I recommend Lua. Easy installation, simple syntax, and fast execution speed. Stay away from boring school programming (haha) -- If you have a real interest in programming, I recommend Lua. Easy installation, simple syntax, and fast execution speed. Stay away from boring school programming (haha)
{"Nếu bạn thực sự có hứng thú trong lập trình, tôi đề xuất sử dụng Lua. Dễ xài, cú pháp đơn giản, và tốc độ thực thi nhanh. Rồi tránh xa chương trình học nhàm chán ở trên trường luôn! (haha) - ",C.W,"Z",C.white," said."}, {"Nếu bạn thực sự có hứng thú trong lập trình, tôi đề xuất sử dụng Lua. Dễ xài, cú pháp đơn giản, và tốc độ thực thi nhanh. Rồi tránh xa chương trình học nhàm chán ở trên trường luôn! (haha) - ",C.W,"Z",C.white," said."},
-- COLD CLEAR PATH -- COLD CLEAR PATH
"Đường dẫn của Cold Clear: "..( "Đường dẫn của Cold Clear: "..(
SYSTEM=='Windows' and "<root>\\CCloader.dll" or SYSTEM=='Windows' and "<root>\\CCloader.dll" or
SYSTEM=='Linux' and "<root>/CCloader.so" or SYSTEM=='Linux' and "<root>/CCloader.so" or
@@ -1256,7 +1256,7 @@ C. Tay cầm chơi game (Gamepad)
SYSTEM=='OS X' and "<root/CCloader.dylib" or SYSTEM=='OS X' and "<root/CCloader.dylib" or
"(… Tui… không biết :3)" "(… Tui… không biết :3)"
), ),
-- --
-- CHANGELOG -- CHANGELOG
{C.lW, "V0.0.091726",": ",C.white, "Đã thêm hệ thống xoay TRS"}, {C.lW, "V0.0.091726",": ",C.white, "Đã thêm hệ thống xoay TRS"},
{C.lW, "V0.7.9 " ,": ",C.white, "Đã thêm ",C.yellow,"O-spin"}, {C.lW, "V0.7.9 " ,": ",C.white, "Đã thêm ",C.yellow,"O-spin"},

View File

@@ -681,7 +681,7 @@ local function _drawMission(curMission,L,missionkill)
gc_print("×"..RLEMissions[1][2],98,130) gc_print("×"..RLEMissions[1][2],98,130)
gc_translate(-30,0) gc_translate(-30,0)
end end
setFont(35) setFont(35)
gc_print(ENUM_MISSION[RLEMissions[1][1]],85,110) gc_print(ENUM_MISSION[RLEMissions[1][1]],85,110)

View File

@@ -53,7 +53,7 @@ local function drawChar(char,x,y,scale,alignLeft)
end end
local levels={ local levels={
function()-- 1~3 <+> [,10] function()-- 1~3 <+> [,10]
local s=rnd(2,9) local s=rnd(2,9)
local a=rnd(1,s) local a=rnd(1,s)
return a.."+"..s-a,s,function() return a.."+"..s-a,s,function()

View File

@@ -17,7 +17,7 @@ local lastSearch-- Last searched string
local lastSelected -- Last selected item local lastSelected -- Last selected item
local justSearched -- Just searched or not? local justSearched -- Just searched or not?
local currentFontSize=25 -- Current font size, default: 25 local currentFontSize=25 -- Current font size, default: 25
local showingHelp=false -- Help is triggered or not local showingHelp=false -- Help is triggered or not
local zoomWait=0 -- The last time zoom is triggered local zoomWait=0 -- The last time zoom is triggered
@@ -134,7 +134,7 @@ local function _updateInfoBox(c)
CHAR.key.up, CHAR.key.down, CHAR.key.left, CHAR.key.right, CHAR.key.up, CHAR.key.down, CHAR.key.left, CHAR.key.right,
CHAR.controller.dpadU,CHAR.controller.dpadD,CHAR.controller.dpadL,CHAR.controller.dpadR, CHAR.controller.dpadU,CHAR.controller.dpadD,CHAR.controller.dpadL,CHAR.controller.dpadR,
CHAR.controller.xboxX,CHAR.controller.xboxY,CHAR.controller.xboxA,CHAR.controller.xboxB, CHAR.controller.xboxX,CHAR.controller.xboxY,CHAR.controller.xboxA,CHAR.controller.xboxB,
CHAR.icon.help,CHAR.icon.copy, CHAR.icon.globe, CHAR.icon.help,CHAR.icon.copy, CHAR.icon.globe,
CHAR.icon.toUp,CHAR.icon.toDown,CHAR.key.winMenu CHAR.icon.toUp,CHAR.icon.toDown,CHAR.key.winMenu
),true ),true
@@ -245,7 +245,7 @@ function scene.keyDown(key)
-- Switching selected items -- Switching selected items
if key=='up' or key=='down' then if key=='up' or key=='down' then
if not showingHelp then if not showingHelp then
if love.mouse.isDown(2,3) then if love.mouse.isDown(2,3) then
listBox:arrowKey(key) listBox:arrowKey(key)
return return
elseif WIDGET.isFocus(listBox) then elseif WIDGET.isFocus(listBox) then
@@ -415,7 +415,7 @@ scene.widgetList={
infoBox, infoBox,
WIDGET.newKey {name='link', x=1234,y=600,w=60,font=45,fText=CHAR.icon.globe, code=pressKey'application',hideF=function() return not ((not (showingHelp or listBox.selected==0)) and _getList()[listBox.selected].url) end}, WIDGET.newKey {name='link', x=1234,y=600,w=60,font=45,fText=CHAR.icon.globe, code=pressKey'application',hideF=function() return not ((not (showingHelp or listBox.selected==0)) and _getList()[listBox.selected].url) end},
WIDGET.newKey {name='copy', x=1234,y=670,w=60,font=40,fText=CHAR.icon.copy, code=pressKey'cC'}, WIDGET.newKey {name='copy', x=1234,y=670,w=60,font=40,fText=CHAR.icon.copy, code=pressKey'cC'},
WIDGET.newKey {name='openzoom', x=1234,y=300,w=60,font=30,fText="aA", code=function() _openZoom() end,hide=false}, WIDGET.newKey {name='openzoom', x=1234,y=300,w=60,font=30,fText="aA", code=function() _openZoom() end,hide=false},
WIDGET.newKey {name='resetzoom',x=1234,y=370,w=60,font=25,fText="100%", code=function() _resetZoom() end,hide=false}, WIDGET.newKey {name='resetzoom',x=1234,y=370,w=60,font=25,fText="100%", code=function() _resetZoom() end,hide=false},
WIDGET.newKey {name='zoomin', x=1234,y=300,w=60,font=40,fText="A", code=function() _setZoom(5) end,hide=true}, WIDGET.newKey {name='zoomin', x=1234,y=300,w=60,font=40,fText="A", code=function() _setZoom(5) end,hide=true},