Files
Main_MiSTer/support/n64/n64.h
Rikard Bengtsson ba0ae19cd2 N64: Save file fix and fix (#1072)
Got rid of the annoying message you get when opening the menu in a game that uses cpak.
It said "Saving..." even when there wasn't anything to save.
Cleaned up and refactored the save file code. Much easier to follow now.
2025-12-12 13:18:05 +08:00

21 lines
666 B
C

#ifndef N64_H
#define N64_H
#include <stdint.h>
#include <stdio.h>
#include "../../cfg.h"
#include "../../cheats.h"
#include "../../file_io.h"
#include "../../input.h"
#include "../../user_io.h"
struct N64SaveFile;
void n64_reset();
void n64_poll();
void n64_cheats_send(const void* buf_ptr, const uint32_t size);
int n64_rom_tx(const char* name, const unsigned char index, const uint32_t load_addr, uint32_t& file_crc);
bool n64_process_save(const bool use_save, const int op, const uint64_t sector_index, const uint32_t sector_size, const int ack_flags, uint64_t& confirmed_sector, uint8_t* buffer, const uint32_t buffer_capacity, uint32_t chunk_size);
#endif