Learn from others, make romfs.c more readable