]> Chaos Git - corbenik/corbenik.git/commitdiff
Misc shit
authorchaoskagami <chaos.kagami@gmail.com>
Tue, 31 May 2016 08:17:11 +0000 (04:17 -0400)
committerchaoskagami <chaos.kagami@gmail.com>
Tue, 31 May 2016 08:17:11 +0000 (04:17 -0400)
external/loader/source/loader.c
external/loader/source/lzss.c
external/loader/source/patcher.c

index a50505399edcce3ab05ba7ed207be6ab8af879a5..b7ed35b38d8e50e20733c463d87319a9059b65e3 100644 (file)
@@ -188,7 +188,7 @@ loader_LoadProcess(Handle* process, u64 prog_handle)
     // n3ds speed, -1 force o3ds
     // This is A-OK because the CPU speed parameter isn't passed through to any
     // kernel function; meaning it has already been set.
-    u8 n3ds_mode = g_exheader.arm11systemlocalcaps.flags[1] & 0x3;
+    u8 n3ds_mode = g_exheader.arm11systemlocalcaps.flags[1] & 0x3; // 0x3 -> L2+800Mhz
     u8 cpu_mode = get_cpumode(progid);
     if (cpu_mode != 0xFF) {             // Skip?
         u8 mode = n3ds_mode | cpu_mode; // Keep flags set by exheader.
@@ -196,6 +196,8 @@ loader_LoadProcess(Handle* process, u64 prog_handle)
                                         // sysmodule. It doesn't make sense.
     }
 
+       // TODO - clean up this shit below. Not only is it unoptimized but it reads like garbage.
+
     // What the addressing info would be if not for expansion. This is passed to
     // patchCode.
     original_vaddr.text_size = (g_exheader.codesetinfo.text.codesize + 4095) >>
index a2e508f2c1b3990ee49ca45c23139885c0d75d55..b4f32d08f52c66b570727eafb0beff57142a564e 100644 (file)
@@ -1,5 +1,7 @@
 #include <3ds.h>
 
+// TODO - In the future, why not ADD code compression modes? Like, zlib, for example. Or lzss+zlib.
+
 int
 lzss_decompress(u8* buffer)
 {
index 655911d26238f84e349706dd548fe51cd16da4c2..3b2a3281788613e1a89b0cd9baa006a1ead35511 100644 (file)
@@ -468,7 +468,7 @@ language_emu(u64 progId, u8* code, u32 size)
 void
 overlay_patch(u64 progId, u8* code, u32 size)
 {
-    // TODO - Implement.
+    // TODO - Implement. Needs some thought. This should allow usage of files off SD rather than RomFS.
 }
 
 // This is only for the .data segment.