Compare commits
1 Commits
3dd6cfcdcb
...
3922f51c8e
| Author | SHA1 | Date | |
|---|---|---|---|
| 3922f51c8e |
13
Makefile
13
Makefile
@@ -82,14 +82,17 @@ endef
|
||||
lint:
|
||||
@echo "==> Merging..."
|
||||
@rm -f $(LINT_TMP_LUA) $(LINT_TMP_MAP)
|
||||
@touch $(LINT_TMP_LUA)
|
||||
@line=1; \
|
||||
while IFS= read -r f || [ -n "$$f" ]; do \
|
||||
[ -z "$$f" ] && continue; \
|
||||
linecount=$$(awk 'END{print NR}' "$(SRC_DIR)/$$f"); \
|
||||
echo "$$line $$linecount $(SRC_DIR)/$$f" >> $(LINT_TMP_MAP); \
|
||||
before=$$(wc -l < $(LINT_TMP_LUA)); \
|
||||
cat "$(SRC_DIR)/$$f" >> $(LINT_TMP_LUA); \
|
||||
echo "" >> $(LINT_TMP_LUA); \
|
||||
line=$$((line + linecount + 1)); \
|
||||
printf '\n' >> $(LINT_TMP_LUA); \
|
||||
after=$$(wc -l < $(LINT_TMP_LUA)); \
|
||||
linecount=$$((after - before)); \
|
||||
echo "$$line $$linecount $(SRC_DIR)/$$f" >> $(LINT_TMP_MAP); \
|
||||
line=$$((line + linecount)); \
|
||||
done < $(ORDER)
|
||||
@echo "==> luacheck..."
|
||||
@luacheck --no-max-line-length $(LINT_TMP_LUA) 2>&1 | awk -v map=$(LINT_TMP_MAP) ' \
|
||||
@@ -114,7 +117,7 @@ lint:
|
||||
rest = substr(rest2, colon3); \
|
||||
found = 0; \
|
||||
for (i = 0; i < NR_map; i++) { \
|
||||
end_line = start[i] + count[i]; \
|
||||
end_line = start[i] + count[i] -1; \
|
||||
if (absline >= start[i] && absline <= end_line) { \
|
||||
relline = absline - start[i] + 1; \
|
||||
print fname[i] ":" relline ":" col ":" rest; \
|
||||
|
||||
@@ -8,7 +8,6 @@ local AudioTestWindow = {}
|
||||
local MinigameButtonMashWindow = {}
|
||||
local MinigameRhythmWindow = {}
|
||||
local MinigameDDRWindow = {}
|
||||
|
||||
Util = {}
|
||||
DesitionManager = {}
|
||||
ScreenManager = {} -- New declaration
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
function IntroWindow.draw()
|
||||
local x = (Config.screen.width - 132) / 2 -- Centered text
|
||||
Print.text(Context.intro.text, x, Context.intro.y, Config.colors.green)
|
||||
Print.text(Context.intro.text, x, Context.intro.y, Config.colors.green)
|
||||
end
|
||||
|
||||
function IntroWindow.update()
|
||||
@@ -21,5 +21,4 @@ function IntroWindow.update()
|
||||
if Input.menu_confirm() then
|
||||
GameWindow.set_state(WINDOW_MENU)
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user