mirror of
https://github.com/afska/gba-link-connection.git
synced 2026-09-08 08:56:42 -05:00
Using std::memcpy instead of memcpy
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user