Homebrew [Project] 3FHex. PkHex on 3ds

Stracker

Well-Known Member
Newcomer
Joined
Sep 7, 2015
Messages
86
Trophies
0
Age
28
XP
167
Country
France
Oh shit, forgot the xml, I'll add it right over

EDIT : alright, try the latest commit, if you don't choose a game at start there's a problem
 

eremyja

New Member
Newbie
Joined
Sep 8, 2015
Messages
3
Trophies
0
Age
32
XP
51
Country
United States
Now I'm getting an error when i try to compile
Code:
C:\Users\eremyja\Documents\Strackeror\PCHex>make
Makefile:4: /c/devkitPro/devkitARM
/c/Users/eremyja/Documents/Strackeror/PCHex/Makefile:4: /c/devkitPro/devkitARM
main.c
arm-none-eabi-gcc -MMD -MP -MF /c/Users/eremyja/Documents/Strackeror/PCHex/build
/main.d -g -Wall -O2 -mword-relocations -fomit-frame-pointer -ffast-math -march=
armv6k -mtune=mpcore -mfloat-abi=hard -I/c/Users/eremyja/Documents/Strackeror/PC
Hex/include -I/c/devkitPro/libctru/include -I/c/Users/eremyja/Documents/Stracker
or/PCHex/build -DARM11 -D_3DS -std=c99 -c /c/Users/eremyja/Documents/Strackeror/
PCHex/source/main.c -o main.o
In file included from c:/devkitPro/libctru/include/3ds.h:9:0,
                 from c:/Users/eremyja/Documents/Strackeror/PCHex/source/main.c:
4:
c:/devkitPro/libctru/include/3ds/svc.h: In function 'getThreadLocalStorage':
c:/devkitPro/libctru/include/3ds/svc.h:182:2: error: 'asm' undeclared (first use
in this function)
  asm volatile("mrc p15, 0, %[data], c13, c0, 3" : [data] "=r" (ret));
  ^
c:/devkitPro/libctru/include/3ds/svc.h:182:2: note: each undeclared identifier i
s reported only once for each function it appears in
c:/devkitPro/libctru/include/3ds/svc.h:182:6: error: expected ';' before 'volati
le'
  asm volatile("mrc p15, 0, %[data], c13, c0, 3" : [data] "=r" (ret));
      ^
c:/Users/eremyja/Documents/Strackeror/PCHex/source/main.c: In function 'loadFile
':
c:/Users/eremyja/Documents/Strackeror/PCHex/source/main.c:50:5: warning: format
'%d' expects argument of type 'int', but argument 2 has type 'u32' [-Wformat=]
     printf("file read : size %d \n", bytesRead);
     ^
c:/Users/eremyja/Documents/Strackeror/PCHex/source/main.c:50:5: warning: format
'%d' expects argument of type 'int', but argument 2 has type 'u32' [-Wformat=]
c:/Users/eremyja/Documents/Strackeror/PCHex/source/main.c: In function 'getPokem
on':
c:/Users/eremyja/Documents/Strackeror/PCHex/source/main.c:135:3: warning: format
'%d' expects argument of type 'int', but argument 2 has type 'u32' [-Wformat=]
   printf("array test %d : ", offset);
   ^
c:/Users/eremyja/Documents/Strackeror/PCHex/source/main.c:135:3: warning: format
'%d' expects argument of type 'int', but argument 2 has type 'u32' [-Wformat=]
c:/Users/eremyja/Documents/Strackeror/PCHex/source/main.c: In function 'main':
c:/Users/eremyja/Documents/Strackeror/PCHex/source/main.c:165:10: warning: varia
ble 'ret' set but not used [-Wunused-but-set-variable]
   Result ret;
          ^
make[1]: *** [main.o] Error 1
make: *** [build] Error 2
 

MOBSTER_X

Well-Known Member
Newcomer
Joined
Sep 5, 2015
Messages
60
Trophies
0
XP
77
Country
United States
windows 7 and yes im using a batch file to run it as its easier for me.
Code:
cd c:\host\3DSHomebrew\PCHex-master
make clean
make
pause
 

MOBSTER_X

Well-Known Member
Newcomer
Joined
Sep 5, 2015
Messages
60
Trophies
0
XP
77
Country
United States
Untitled.png
 

NicEXE

Well-Known Member
Member
Joined
Dec 6, 2009
Messages
411
Trophies
1
XP
706
Country
Cyprus
Once you know the offsets of each value all you have to do is provide a way to the user to change them. You don't really have to "port PkHex to 3DS". You can of course look at PkHex's source for hints.

Bonus obstacle: checksums
 

MOBSTER_X

Well-Known Member
Newcomer
Joined
Sep 5, 2015
Messages
60
Trophies
0
XP
77
Country
United States
Rebuilt library and got it to work. Im going to leave this code for anyone else who needs it.
Code:
cd c:\devkitPro\libctru
make clean
make
pause

--------------------- MERGED ---------------------------

how do i load the main file save? i exported it.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: Keep current Gen consoles stock mod last gen imo