EzioisAwesome56 / sm64ex-win98

Fork of sm64ex, tweaked to compile for Windows 98 via tdm-gcc5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Super Mario 64 EX for Windows 98

Fork of sm64ex that has been tweaked to build for Windows 98 using a custom msys2 toolchain.

Toolchain Setup (Windows only!)

Download and install the newest version of Msys2
Open a msys2 32bit terminal and run the following commands:

pacman -Syy
pacman -S unzip make git python3

Do not install any version of gcc.
Download and install TDM-GCC 5.1
Download SDL1 for MinGW, extract its contents to the respective folders in your TDM-GCC install (I.E. contents of include go to TDM's include folder)
Download GLEW, version 2.1.0, for MinGW, extract its contents into your TDM-GCC install like you did for SDL.
Open include/sys/types.h from your TDM install in a text editor. Comment out the following line:

#ifndef _SSIZE_T_
#define _SSIZE_T_
typedef int _ssize_t;

#ifndef	_NO_OLDNAMES
//typedef _ssize_t ssize_t; <--- comment out this line, found at line 118
#endif
#endif /* Not _SSIZE_T_ */ 

Save the file and exit
Copy a rom of us 1.0 mario 64 as baserom.us.z64 to the respository root.
Add your TDM's bin folder to your Msys2 terminal using the following command:

export PATH=$PATH:/driveletter/path/to/tdm/bin

Replace driverletter with the drive you installed TDM on, and fill in the path to the folder.
Run ezmake.sh to build. The result will be placed into the build folder in the repo root.
Before playing, open the copy of SDL you downloaded eariler, and copy SDL.dll from the archive's bin folder to the same location as your game's EXE
Download glew32.dll compiled for Windows 98 that I have provided. The copy included with the glew archive is compiled for Windows vista, and would thus require KernelEX. This version does not need KernelEX.
Place this file in the same folder as your game EXE. You can now enjoy Super Mario 64 on Windows 98!

Additional notes

Building on Linux is untested and unsupported.

Todo:

Nothing atm

About

Fork of sm64ex, tweaked to compile for Windows 98 via tdm-gcc5


Languages

Language:C 93.5%Language:C++ 4.5%Language:Assembly 1.2%Language:Python 0.6%Language:Makefile 0.1%Language:Shell 0.0%Language:Dockerfile 0.0%