reveng -g (model search given just hexstr with crc)

This commit is contained in:
marshmellow42 2015-06-10 01:33:37 -04:00
parent 53ee28cb3a
commit d2219cae51
4 changed files with 139 additions and 25 deletions

View file

@ -397,8 +397,9 @@ static int l_reveng_models(lua_State *L){
if( in_width > 89 ) return returnToLuaWithError(L,"Width cannot exceed 89, got %d", in_width);
uint32_t width = (uint32_t)in_width;
int ans = GetModels(models, &count, &width);
uint8_t width[80];
width[0] = (uint8_t)in_width;
int ans = GetModels(models, &count, width);
if (!ans) return 0;
lua_newtable(L);