The WarioSave library is a C library designed to read the player's save data in Super Mario Land 3: Wario Land. It provides functions to initialize player save data and calculate the completion rate for each level in the game.
The library can be built using the provided Makefile. The Makefile is set up to use the GCC compiler, but this can be changed by modifying the CC
variable in the Makefile.
To build the library, navigate to the directory containing the Makefile and run the make
command.
make
This will compile the source files in the src
directory and output the resulting object files to the build/release
directory.
To use the library, include the header files in your C source files and link against the libwariosave.a
library during the linking stage of your build process.
#include "wariosave.h"
For detailed information on the functions provided by the WarioSave library, see the API Documentation.
The WarioSave library includes an example application that demonstrates how to use the library. The example application can be built using the provided Makefile in the root directory of the project.
- GCC compiler
- Make build automation tool
-
Navigate to the root directory of the project where the Makefile is located.
-
Run the
make
command:
make
This command will compile the source files located in the src
directory and output the resulting object files to the build
directory. It will also generate dependency files in the deps
directory.
The Makefile uses the GCC compiler (gcc
) by default, but this can be changed by modifying the CC
variable in the Makefile.
The INCLUDES
variable in the Makefile specifies the directories where the compiler should look for header files. By default, it is set to look in the include/
directory in the root of the project, and the include/
directory in the lib/
directory.
The resulting application will be named wario-save
, as specified by the APP_NAME
variable in the Makefile.
Once the wario-save
application is built, you can run it from the command line. The application takes a single argument, which is the path to the Wario game save file you want to analyze.
Here's an example of how to use the wario-save
application:
./wario-save /path/to/your/savefile.sav
This command will load the specified save file, analyze the data, and print out the player's lives, hearts, total coins, game completion status, and the completion rate for each level.
- Wario Land Disassembly (wl): This project provided valuable insights and code that helped me understand the structure of Wario game save files.
The WarioSave library is distributed under the MIT License. See the accompanying LICENSE.txt
file for more details, or visit http://opensource.org/licenses/MIT.