Rename a function

This commit is contained in:
Jesse Talavera-Greenberg 2023-08-16 21:22:17 -04:00
parent 673c0684c3
commit fda6c4a8fd
3 changed files with 4 additions and 4 deletions

View File

@ -604,7 +604,7 @@ static void melonds::load_games(
if (!_loaded_nds_cart->GetHeader().IsDSiWare()) {
// If this ROM represents a cartridge, rather than DSiWare...
sram::InitNdsSram(*_loaded_nds_cart);
sram::InitNdsSave(*_loaded_nds_cart);
}
}

View File

@ -157,8 +157,8 @@ retro::task::TaskSpec melonds::sram::FlushGbaSramTask() noexcept {
// Does not load the NDS SRAM, since retro_get_memory is used for that.
// But it will allocate the SRAM buffer
void melonds::sram::InitNdsSram(const NdsCart &nds_cart) {
ZoneScopedN("melonds::sram::InitNdsSram");
void melonds::sram::InitNdsSave(const NdsCart &nds_cart) {
ZoneScopedN("melonds::sram::InitNdsSave");
using std::runtime_error;
if (nds_cart.GetHeader().IsHomebrew()) {
// If this is a homebrew ROM...

View File

@ -34,7 +34,7 @@ struct retro_game_info;
namespace melonds::sram {
void init();
void deinit() noexcept;
void InitNdsSram(const NdsCart &nds_cart);
void InitNdsSave(const NdsCart &nds_cart);
void InitGbaSram(GbaCart& gba_cart, const struct retro_game_info& gba_save_info);
void FlushGbaSram(const retro_game_info& gba_save_info) noexcept;