Skip to content

Commit

Permalink
remove debug file write
Browse files Browse the repository at this point in the history
  • Loading branch information
usrshare committed Oct 13, 2016
1 parent bfbae4d commit 86c8ae0
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/snescity.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,12 +319,6 @@ int city2png (const char* sfname, const char* mfname, int citynum) {
city_decompress2((const uint16_t*)citytemp,(uint16_t*)citytemp2,&citysize);
city_decompress3((const uint16_t*)citytemp2,(uint16_t*)citydata,&citysize);

FILE* dbgfile = fopen("debug.bin","wb");

fwrite(citydata,citysize,1,dbgfile);

fclose(dbgfile);

write_png_map(mfname,citydata);

fclose(cityfile);
Expand Down Expand Up @@ -663,13 +657,6 @@ int replace_city(const char* sfname, const uint16_t* citydata, int citynum) {
fprintf(stderr,"Unable to compress map for SRAM.\n");
return 1; }

//debug
FILE* dbgout = fopen("debug_out.bin","wb");
if (dbgout) { fwrite(citydata,CITYWIDTH * CITYHEIGHT * 2,1,dbgout); fclose(dbgout); }
FILE* dbgout2 = fopen("debug_cmp.bin","wb");
if (dbgout2) { fwrite(citycomp,CITYMAPLEN,1,dbgout2); fclose(dbgout2); }
//end debug

uint8_t citysram [0x8000];
memset(citysram,0,sizeof citysram);

Expand Down

0 comments on commit 86c8ae0

Please sign in to comment.