mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 12:11:33 -06:00

* Fixes the socket library for bizhawk 2.9/lua 5.4 by including another one in parallel * Fixes lua 5.4 support by making socket.lua into a "modern" module (the `module` keyword is gone) * Adds the linux version and 32 bit windows socket dlls because why not * Merges common functions into `common.lua` - the only functional change of this should be that: * Some things that were locals are globals now - this can be changed, I just was lazy and it likely doesn't matter * `drawText` now uses middle/bottom for all prints - feel free to do what you like with that change
12 lines
187 B
Lua
12 lines
187 B
Lua
function bit.rshift(a, b)
|
|
return a >> b
|
|
end
|
|
function bit.lshift(a, b)
|
|
return a << b
|
|
end
|
|
function bit.bor(a, b)
|
|
return a | b
|
|
end
|
|
function bit.band(a, b)
|
|
return a & b
|
|
end |