mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-03 00:39:14 +00:00
[makerom] Cleaned keyset.c
This commit is contained in:
+1
-15
@@ -4,21 +4,7 @@
|
||||
#include "polarssl/base64.h"
|
||||
|
||||
// Memory
|
||||
void endian_memcpy(u8 *destination, u8 *source, u32 size, int endianness)
|
||||
{
|
||||
for (u32 i = 0; i < size; i++){
|
||||
switch (endianness){
|
||||
case(BE):
|
||||
destination[i] = source[i];
|
||||
break;
|
||||
case(LE):
|
||||
destination[i] = source[((size-1)-i)];
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int CopyData(u8 **dest, u8 *source, u64 size)
|
||||
int CopyData(u8 **dest, const u8 *source, u64 size)
|
||||
{
|
||||
if(!*dest){
|
||||
*dest = malloc(size);
|
||||
|
||||
Reference in New Issue
Block a user