Skip to content

Commit

Permalink
Bump version number to 2013-08-08
Browse files Browse the repository at this point in the history
  • Loading branch information
nmlgc committed Aug 8, 2013
1 parent 9de60fc commit e67b4ee
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion thcrap/src/global.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const char* PROJECT_NAME_SHORT()
}
const DWORD PROJECT_VERSION()
{
return 0x20130805;
return 0x20130808;
}
const char* PROJECT_VERSION_STRING()
{
Expand Down
9 changes: 3 additions & 6 deletions thcrap_tsa/src/anm.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/// --------------------------------
int struct_get(void *dest, size_t dest_size, void *src, json_t *spec)
{
if(!dest || !dest_size || !src || !spec || !spec) {
if(!dest || !dest_size || !src || !spec) {
return -1;
}
{
Expand Down Expand Up @@ -134,11 +134,9 @@ int png_load_for_thtx(png_image_exp image, const char *fn, thtx_header_t *thtx)
}

if(png_image_begin_read_from_memory(&image->img, file_buffer, file_size)) {
size_t png_size;

image->img.format = format_png_equiv(thtx->format);
if(image->img.format) {
png_size = PNG_IMAGE_SIZE(image->img);
size_t png_size = PNG_IMAGE_SIZE(image->img);
image->buf = (png_bytep)malloc(png_size);

if(image->buf) {
Expand Down Expand Up @@ -222,8 +220,6 @@ int patch_anm(BYTE *file_inout, size_t size_out, size_t size_in, json_t *patch,
size_t nextoffset;
size_t sprites;

size_t i;

if(
STRUCT_GET(size_t, x, anm_entry_out, format) ||
STRUCT_GET(size_t, y, anm_entry_out, format) ||
Expand Down Expand Up @@ -252,6 +248,7 @@ int patch_anm(BYTE *file_inout, size_t size_out, size_t size_in, json_t *patch,
}
// ... add texture boundaries...
if(headersize) {
size_t i;
DWORD *sprite_ptr = (DWORD*)(anm_entry_out + headersize);
bounds_resize(&bounds, x + thtx->w, y + thtx->h);
for(i = 0; i < sprites; i++) {
Expand Down
2 changes: 1 addition & 1 deletion thcrap_tsa/src/spells.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ int BP_spell_comment_line(x86_reg_t *regs, json_t *bp_info)

size_t cmt_key_str_len = strlen("comment_") + 16 + 1;
VLA(char, cmt_key_str, cmt_key_str_len);
sprintf(cmt_key_str, "comment_%d", comment_num);
sprintf(cmt_key_str, "comment_%u", comment_num);

// Count down from the real number to the given number
// until we find something
Expand Down
1 change: 1 addition & 0 deletions thcrap_tsa/src/thcrap_tsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ int __stdcall thcrap_init_plugin(json_t *run_cfg)
patchhook_register("*.std", patch_std);
patchhook_register("*.anm", patch_anm);

// All component initialization functions that require runconfig values
spells_init();
return 0;
}
Expand Down

0 comments on commit e67b4ee

Please sign in to comment.