shithub: rewise

ref: caba3c6ab89bf631a0c12eab72d51d0353e0f782
dir: /src/wiseoverlay.h/

View raw version
/* This file is part of REWise.
 *
 * REWise is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * REWise is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <https://www.gnu.org/licenses/>.
 */

#ifndef H_WISEOVERLAY
#define H_WISEOVERLAY

#include "errors.h"

typedef struct {
  unsigned char dllNameLen;
  //unsigned char * dllName; // We SKIP this
  //uint32_t dllSize;        // We SKIP this

  int crcFlags;
  unsigned char unknown_86[86];
  unsigned char initTextLen;
  unsigned char * initTexts;
} WiseOverlayHeader;

REWError readWiseOverlayHeader(FILE * fp, WiseOverlayHeader * dest);
void freeWiseOverlayHeader(WiseOverlayHeader * data);

#endif