ADD: @marshmellow42 's new "-g" search for crc in a hexstring *great*

ADD: fixes in the reveng calling methods
This commit is contained in:
iceman1001 2015-06-10 08:46:16 +02:00
commit 99789601dc
3 changed files with 126 additions and 17 deletions

View file

@ -397,11 +397,10 @@ 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);
if (!ans){
return 0;
}
uint8_t width[80];
width[0] = (uint8_t)in_width;
int ans = GetModels(models, &count, width);
if (!ans) return 0;
lua_newtable(L);