merge some old code in
RLE调试，tools里用上了Palette