Using std::memcpy instead of memcpy

This commit is contained in:
Rodrigo Alfonso
2025-01-03 07:27:56 -03:00
parent a7ca676565
commit 8f9db769d4
2 changed files with 4 additions and 4 deletions

View File

@@ -1,8 +1,8 @@
// (0) Include the header
#include "../../../lib/LinkCableMultiboot.hpp"
#include <string.h>
#include <tonc.h>
#include <cstring>
#include <string>
extern "C" {
@@ -119,7 +119,7 @@ int main() {
(const u8*)gbfs_get_nth_obj(fs, selectedFile, NULL, &fileLength);
void* EWRAM = (void*)0x02000000;
memcpy(EWRAM, romToSend, fileLength);
std::memcpy(EWRAM, romToSend, fileLength);
asm volatile(
"mov r0, %0\n"

View File

@@ -4,8 +4,8 @@
#include "MultibootScene.h"
#include <libgba-sprite-engine/background/text_stream.h>
#include <string.h>
#include <tonc.h>
#include <cstring>
#include <functional>
#include "utils/InputHandler.h"
@@ -157,7 +157,7 @@ void launchROM() {
(const u8*)gbfs_get_nth_obj(fs, selectedFile, NULL, &fileLength);
void* EWRAM = (void*)0x02000000;
memcpy(EWRAM, romToSend, fileLength);
std::memcpy(EWRAM, romToSend, fileLength);
asm volatile(
"mov r0, %0\n"