1
0
Fork 0
mirror of https://github.com/ctruLua/uCompat.git synced 2025-10-27 16:49:31 +00:00

Added the dsUser lib

This commit is contained in:
Firew0lf 2015-10-04 17:35:06 +02:00
parent 5eeb78d9ec
commit 6d3ec78c8c
2 changed files with 86 additions and 1 deletions

View file

@ -1,2 +1,12 @@
# uCompat # uCompat
µLua compatibility layer for ctrµLua µLua compatibility layer for ctrµLua.
Untested.
Actually done:
* Color
* Controls
* dsUser
* Rumble
* screen
* Timer

75
dsUser.lua Normal file
View file

@ -0,0 +1,75 @@
--[[
User's informations related µLua compatibility layer/lib for ctrµLua
Informations are fake ones, until ctrµLua/the ctruLib can deal with it.
]]
-- Module
dsUser = {}
function dsUser.getColor()
return 0
end
function dsUser.getBirthDay()
return 1
end
function dsUser.getBirthMonth()
return 1
end
function dsUser.getName()
return "NDS"
end
function dsUser.getNameLength()
return 3
end
function dsUser.getMessage()
return ""
end
function dsUser.getMessageLength()
return 0
end
function dsUser.getAlarmHour()
return 0
end
function dsUser.getAlarmMinute()
return 0
end
function dsUser.getLanguage()
return 0
end
function dsUser.getGBAScreen()
return false
end
function dsUser.getDefaultBrightness()
return 0
end
function dsUser.getAutoMode()
return false
end
dsUser.color = dsUser.getColor()
dsUser.birthDay = dsUser.getBirthDay()
dsUser.birthMonth = dsUser.getBirthMonth()
dsUser.name = dsUser.getName()
dsUser.nameLength = dsUser.getNameLength()
dsUser.message = dsUser.getMessage()
dsUser.messageLength = dsUser.getMessageLength()
dsUser.alarmHour = dsUser.getAlarmHour()
dsUser.alarmMinute = dsUser.getAlarmMinute()
dsUser.language = dsUser.getLanguage()
dsUser.GBAScreen = dsUser.getGBAScreen()
dsUser.defaultBrightness = dsUser.getDefaultBrightness()
dsUser.getAutoMode = dsUser.getAutoMode() -- strange, isn't it ?