Fixed the RwStruct problem by adding const to char*.