Skip to content

Commit e363e37

Browse files
committed
Removed duplicate code that appeared while staging changes for GUI branch
1 parent 1d806c7 commit e363e37

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

main.lua

-21
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
love.filesystem.setRequirePath("?.lua;?/init.lua;modules/?.lua;modules/?/init.lua")
22

33
require("util.love2d")
4-
require("util.color")
54

65
local watcher = require("memory.watcher")
76

@@ -33,26 +32,6 @@ function love.update(dt)
3332
watcher.update("Dolphin.exe") -- Look for Dolphin.exe
3433
end
3534

36-
37-
local MAX_PORTS = 4
38-
local PORT = 0
39-
40-
function love.gameLoaded()
41-
love.window.setTitle(string.format("M'Overlay - Port %d", PORT + 1))
42-
end
43-
44-
function love.wheelmoved(x, y)
45-
if not watcher.isReady() then return end
46-
47-
if y > 0 then
48-
PORT = PORT - 1
49-
elseif y < 0 then
50-
PORT = PORT + 1
51-
end
52-
PORT = PORT % MAX_PORTS
53-
love.gameLoaded()
54-
end
55-
5635
local mask_shader = love.graphics.newShader[[
5736
vec4 effect(vec4 color, Image texture, vec2 texture_coords, vec2 screen_coords) {
5837
if (Texel(texture, texture_coords).rgb == vec3(0.0)) {

0 commit comments

Comments
 (0)