equal
deleted
inserted
replaced
4003 luaopen_table(luaState); |
4003 luaopen_table(luaState); |
4004 |
4004 |
4005 // import some variables |
4005 // import some variables |
4006 ScriptSetString(_S'LOCALE', cLocale); |
4006 ScriptSetString(_S'LOCALE', cLocale); |
4007 |
4007 |
4008 {$IFDEF MOBILE} |
4008 {$IFDEF USE_TOUCH_INTERFACE} |
4009 ScriptSetString(_S'PLATFORM', 'Mobile'); |
4009 ScriptSetString(_S'INTERFACE', 'touch'); |
4010 {$ELSE} |
4010 {$ELSE} |
4011 ScriptSetString(_S'PLATFORM', 'Desktop'); |
4011 ScriptSetString(_S'INTERFACE', 'desktop'); |
4012 {$ENDIF} |
4012 {$ENDIF} |
4013 |
4013 |
4014 // Add aliases for amDuck and gtDuck because rubber duck was removed. |
4014 // Add aliases for amDuck and gtDuck because rubber duck was removed. |
4015 // amDuck and gtDuck are deprecated and should be removed later. |
4015 // amDuck and gtDuck are deprecated and should be removed later. |
4016 // TODO: Remove these aliases in a later version. |
4016 // TODO: Remove these aliases in a later version. |