C/C++ Programming Help Thread
This is a discussion on C/C++ Programming Help Thread within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Ok, I need some help. I have been trying to compile this remote example that I found, but I keep ...
-
10-02-2006, 02:21 PM #1051Give It All

- Registriert seit
- Jan 2006
- Ort
- United States
- Beiträge
- 3.899
- Points
- 18.200
- Level
- 85
- Downloads
- 0
- Uploads
- 0
Ok, I need some help.
I have been trying to compile this remote example that I found, but I keep getting a parse error:

Below I will post the code:
Can anyone help me?
Zitat von main.c

Core 2 Duo E8400 @ 3.6ghz (Multiplier: 9x; Bus: 400mhz; FSB: 1600mhz;)
GeForce 9800 GTX+ 512 MB (Core: 850mhz; Memory: 1200mhz; Shader: 2100mhz;)
ASUS P5K Pro Motherboard
Patriot Extreme (2x2GB) / OCZ HPC (2x1GB)
6GB Total Dual Channel RAM (DDR2 1066mhz)
OCZ GameXstream 700w
2x Seagate 250GB HD (RAID0)
-
10-02-2006, 02:31 PM #1052Developer

- Registriert seit
- Feb 2006
- Ort
- Norway
- Beiträge
- 384
- Points
- 5.359
- Level
- 47
- Downloads
- 0
- Uploads
- 0
thanks, that's what I wanted.
Zitat von LMelior
However I thought I knew how I would do what I wanted. but then i realised that was no where near close to working
Basically what I want is:
I Have the X and Y position of the player. and I have the X and Y position of a mummy. And I want the mummy to be rotated so that it's always looking towards the player.
As I said I tried do figure out how to do it with cos, sin and tan. But I just can't figure out how to do it (I'll be the first to admit that cosine etc isn't my strongest point though). I just want to get the amount of degrees it should be rotated. Anyone got any tips on how to do it?
-
10-02-2006, 02:54 PM #1053
- Registriert seit
- May 2006
- Beiträge
- 7
- Points
- 3.997
- Level
- 40
- Downloads
- 0
- Uploads
- 0
Sorry for hijacking but I was wondering fi there was any way to install the toolchain on a mac and sucessfully compile a file?
-
10-02-2006, 03:41 PM #1054words are stones in my <3

- Registriert seit
- Jul 2005
- Ort
- Spokane
- Beiträge
- 5.008
- Points
- 35.274
- Level
- 100
- My Mood
-
- Downloads
- 1
- Uploads
- 0
xart actually made a small 'compilable' envirorment out of Xcode for TIFF games...

...at what speed must I live.. to be able to see you again?...
Projects
You can support my Open World 3D RPG for PSP by voting for it here
-
10-02-2006, 03:58 PM #1055QJ Gamer Blue
- Registriert seit
- Dec 2005
- Beiträge
- 372
- Points
- 5.631
- Level
- 48
- Downloads
- 0
- Uploads
- 0
Um.. a small question here. How come something that is capable of running in 333MHz can't emulate another thing that only needs about 7 MHz for playing and about 4 Mhz for sound??
-
10-02-2006, 04:43 PM #1056Developer

- Registriert seit
- Jul 2006
- Beiträge
- 205
- Points
- 4.318
- Level
- 41
- Downloads
- 0
- Uploads
- 0
That would be arctangent. I'm pleasantly surprised that C has the MATLAB function "atan2" (although I shouldn't have been, since it's really the other way around) which is exactly what you need. The regular atan only accepts one argument, y/x, but since it can't distinguish if and when the variables are negative or not, it will only return an angle in the correct quadrant about half of the time. atan2 accepts 2 arguments, atan2(y,x), and uses the signs to determine the correct quadrant.
Zitat von waterbottle
Sorry for the long-winded explanation, I was just excited. :ROFL:
-
10-02-2006, 05:48 PM #1057words are stones in my <3

- Registriert seit
- Jul 2005
- Ort
- Spokane
- Beiträge
- 5.008
- Points
- 35.274
- Level
- 100
- My Mood
-
- Downloads
- 1
- Uploads
- 0
SETINEL - Link?

...at what speed must I live.. to be able to see you again?...
Projects
You can support my Open World 3D RPG for PSP by voting for it here
-
10-03-2006, 03:57 AM #1058Developer

- Registriert seit
- Feb 2006
- Ort
- Norway
- Beiträge
- 384
- Points
- 5.359
- Level
- 47
- Downloads
- 0
- Uploads
- 0
thanks.
Zitat von LMelior
but when I try to compile I get the error:
I took a look in 'w_atan2.c' and it seems like errno is a variable that hasn't been defined. Should I just define it? (if I should what should it be defined as? double?).Code:/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libm.a(w_atan2.o): In fu nction `atan2': ../../../../../newlib/libm/math/w_atan2.c:110: undefined reference to `__errno' ../../../../../newlib/libm/math/w_atan2.c:107: undefined reference to `__errno' collect2: ld returned 1 exit status
-
10-03-2006, 04:02 AM #1059I'm Baaaack!

- Registriert seit
- May 2006
- Ort
- Nowhere
- Beiträge
- 2.186
- Points
- 17.067
- Level
- 83
- Downloads
- 0
- Uploads
- 0
You know you can copy and paste code from the bash shell right?
Zitat von GmDude66
1. Right click on the top of the bash shell window
2. Go down to Edit -> Mark
3. Select you Text
4. Press Enter
Congradulations, you just copied text

-
10-03-2006, 05:47 AM #1060QJ Gamer Blue
- Registriert seit
- Sep 2006
- Ort
- Homebrewland, CA
- Beiträge
- 191
- Points
- 4.295
- Level
- 41
- Downloads
- 0
- Uploads
- 0
Yesterday I was trying to set up my psp dev environment, after learning a bit of C++ of course. So when I type in "./toolchain.sh" I get a message something like "make sure you have gnu make installed". What should I do, is there like a packaged cygin pack with all the right files you need. If not how can I install gnu make.
Thx!
-
10-03-2006, 07:54 AM #1061Developer

- Registriert seit
- Mar 2006
- Beiträge
- 1.026
- Points
- 7.577
- Level
- 58
- Downloads
- 0
- Uploads
- 0
You need to install all of the 'devel' category in cygwin.
Zitat von cloudpjff7
Run the setup.exe again and select to install all the 'devel' category.
(You don't actually need all of the 'devel' category, but you need most so you might as well select them all)
See my tutorial here if you need a walkthrough: http://insomniac.0x89.org/index.php?id=56
Check out my homebrew & C tutorials at http://insomniac.0x89.org/
Coder formerly known as Insomniac197
tshirtz: what is irshell ??
Atarian_: it's where people who work for the IRS go when they die
-
10-03-2006, 08:44 AM #1062Developer

- Registriert seit
- Feb 2006
- Ort
- Norway
- Beiträge
- 384
- Points
- 5.359
- Level
- 47
- Downloads
- 0
- Uploads
- 0
looking a bit further I also found errno.c (in C:\cygwin\home\MyName\psp toolchain\newlib-1.13.0\newlib-1.13.0\newlib\libc\errno)
Zitat von Waterbottle
I tried just adding an include for errno.h, but that didn't help any.The errno variable is stored in the reentrancy structure. This
function returns its address for use by the macro errno defined in
errno.h.
Anyone know how to include errno so it gets defined?
-
10-03-2006, 08:52 AM #1063AKA Homer

- Registriert seit
- Jan 2006
- Ort
- Sweden
- Beiträge
- 1.779
- Points
- 12.596
- Level
- 73
- Downloads
- 0
- Uploads
- 0
Just for the record, the undefined reference is __errno, not errno.
I think it might have something to do with the std though. You could try to change it to c99.
-
10-03-2006, 08:59 AM #1064Developer

- Registriert seit
- Feb 2006
- Ort
- Norway
- Beiträge
- 384
- Points
- 5.359
- Level
- 47
- Downloads
- 0
- Uploads
- 0
hmm, how should I do that?
Zitat von homer
-
10-03-2006, 09:03 AM #1065AKA Homer

- Registriert seit
- Jan 2006
- Ort
- Sweden
- Beiträge
- 1.779
- Points
- 12.596
- Level
- 73
- Downloads
- 0
- Uploads
- 0
In the makefile, add -std=c99 to the CFLAGS.
-
10-03-2006, 09:08 AM #1066Developer

- Registriert seit
- Feb 2006
- Ort
- Norway
- Beiträge
- 384
- Points
- 5.359
- Level
- 47
- Downloads
- 0
- Uploads
- 0
didn't help :/
Zitat von homer
Does it make a difference that it's a prx?
-
10-03-2006, 11:18 AM #1067Heroes never die

- Registriert seit
- Aug 2006
- Ort
- ...........
- Beiträge
- 1.323
- Points
- 8.645
- Level
- 62
- Downloads
- 0
- Uploads
- 0
some problems
when i press the Up or down button it doesnt do anything(it dont do x++ or x--)
(i want that x only one goes up by press or holding the up button)
de sourceCode:$ make kxploit psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -c -o main.o mai n.c main.c: In function 'vermenigvuldigen': main.c:48: warning: initialization makes integer from pointer without a cast main.c:49: warning: initialization makes integer from pointer without a cast main.c:53: warning: comparison between pointer and integer main.c:58: warning: assignment makes integer from pointer without a cast main.c:61: warning: assignment makes integer from pointer without a cast main.c:65: warning: comparison between pointer and integer main.c:69: warning: assignment makes integer from pointer without a cast main.c:72: warning: assignment makes integer from pointer without a cast main.c:94: warning: implicit declaration of function 'menu' main.c: At top level: main.c:106: warning: conflicting types for 'menu' main.c:94: warning: 'menu' declared inline after being called main.c:94: warning: previous implicit declaration of 'menu' was here
Code:#include <math.h>//rekenmachine #include <pspkernel.h> #include <pspdebug.h> #include <pspctrl.h>//controls #define printf pspDebugScreenPrintf PSP_MODULE_INFO("calculator",0,0,1); /* Exit callback */ int exit_callback(int arg1, int arg2, void *common) { sceKernelExitGame(); return 0; } /* Callback thread */ int CallbackThread(SceSize args, void *argp) { int cbid; cbid = sceKernelCreateCallback("Exit Callback", exit_callback, NULL); sceKernelRegisterExitCallback(cbid); sceKernelSleepThreadCB(); return 0; } /* Sets up the callback thread and returns its thread id */ int SetupCallbacks(void) { int thid = 0; thid = sceKernelCreateThread("update_thread", CallbackThread, 0x11, 0xFA0, 0, 0); if(thid >= 0) { sceKernelStartThread(thid, 0, 0); } return thid; } int y = 0; int x =0; SceCtrlData pad; inline void vermenigvuldigen() { printf("Druk op pijltje naar boven/beneden om de waarde van het eerste getal te veranderen :%i\n",x); printf("Druk op pijltje naar links/rechts om de waarde van het tweede getal te veranderen :%i\n",y); char upPressed = "false"; // This initializes "upPressed" // char downPressed = "false"; while(1) { sceCtrlReadBufferPositive(&pad, 1);//start controls if(pad.Buttons & PSP_CTRL_UP) { if (upPressed == "false") { x++; pspDebugScreenClear(); vermenigvuldigen(); } upPressed = "true"; } else { upPressed = "false"; } if(pad.Buttons & PSP_CTRL_DOWN) { if (downPressed == "false") { x--; pspDebugScreenClear(); vermenigvuldigen(); downPressed = "true"; } else { downPressed = "false"; } } if(pad.Buttons & PSP_CTRL_RIGHT) { y++; pspDebugScreenClear(); printf("Druk op pijltje naar boven/beneden om de waarde van het tweede getal te veranderen :%i\n",y); } if(pad.Buttons & PSP_CTRL_LEFT) { y--; pspDebugScreenClear(); printf("Druk op pijltje naar boven/beneden om de waarde van het tweede getal te veranderen :%i\n",y); } if(pad.Buttons & PSP_CTRL_CROSS) { pspDebugScreenClear(); printf("het product is: %i\n",x*y); menu(); } if(pad.Buttons & PSP_CTRL_TRIANGLE) { printf(" deze functie is nog niet af"); vermenigvuldigen(); } } } inline void menu() { printf( " ______ _______ _ ______ \n"); printf( " | ____| | ___ | | | | ____| v0.01 Beta test \n"); printf( " | | | | | | | | | | by roel \n"); printf( " | |____ | --- | | |____ | |____ (HALLO007)\n"); printf( " |______| |__| |__| |______| |______| -=[RP]=- Productions \n\n\n"); printf("welkom bij de beta release van calculator als je van bewerking wilt veranderen moet je driehoekje induwen\n\n\n"); vermenigvuldigen(); } int main(void) { pspDebugScreenInit(); SetupCallbacks(); menu(); }
-
10-03-2006, 01:29 PM #1068Your Fate is Grim...

- Registriert seit
- Oct 2005
- Beiträge
- 2.269
- Points
- 11.640
- Level
- 70
- Downloads
- 0
- Uploads
- 0
Zitat von hallo007
try that. couple of errors in your original code:Code:#include <math.h>//rekenmachine #include <pspkernel.h> #include <pspdebug.h> #include <pspctrl.h>//controls #define printf pspDebugScreenPrintf PSP_MODULE_INFO("calculator",0,0,1); /* Exit callback */ int exit_callback(int arg1, int arg2, void *common) { sceKernelExitGame(); return 0; } /* Callback thread */ int CallbackThread(SceSize args, void *argp) { int cbid; cbid = sceKernelCreateCallback("Exit Callback", exit_callback, NULL); sceKernelRegisterExitCallback(cbid); sceKernelSleepThreadCB(); return 0; } /* Sets up the callback thread and returns its thread id */ int SetupCallbacks(void) { int thid = 0; thid = sceKernelCreateThread("update_thread", CallbackThread, 0x11, 0xFA0, 0, 0); if(thid >= 0) { sceKernelStartThread(thid, 0, 0); } return thid; } int y = 0; int x =0; char upPressed = "false"; // This initializes "upPressed" // char downPressed = "false"; SceCtrlData pad; inline void vermenigvuldigen() { printf("Druk op pijltje naar boven/beneden om de waarde van het eerste getal te veranderen :%i\n",x); printf("Druk op pijltje naar links/rechts om de waarde van het tweede getal te veranderen :%i\n",y); sceCtrlReadBufferPositive(&pad, 1);//start controls if(pad.Buttons & PSP_CTRL_UP) { if (upPressed == "false") { pspDebugScreenClear(); x++; } upPressed = "true"; } else { upPressed = "false"; } if(pad.Buttons & PSP_CTRL_DOWN) { if (downPressed == "false") { pspDebugScreenClear(); x--; downPressed = "true"; } else { downPressed = "false"; } } if(pad.Buttons & PSP_CTRL_RIGHT) { y++; pspDebugScreenClear(); printf("Druk op pijltje naar boven/beneden om de waarde van het tweede getal te veranderen :%i\n",y); } if(pad.Buttons & PSP_CTRL_LEFT) { y--; pspDebugScreenClear(); printf("Druk op pijltje naar boven/beneden om de waarde van het tweede getal te veranderen :%i\n",y); } if(pad.Buttons & PSP_CTRL_CROSS) { pspDebugScreenClear(); printf("het product is: %i\n",x*y); menu(); } if(pad.Buttons & PSP_CTRL_TRIANGLE) { printf(" deze functie is nog niet af"); vermenigvuldigen(); } } inline void menu() { printf( " ______ _______ _ ______ \n"); printf( " | ____| | ___ | | | | ____| v0.01 Beta test \n"); printf( " | | | | | | | | | | by roel \n"); printf( " | |____ | --- | | |____ | |____ (HALLO007)\n"); printf( " |______| |__| |__| |______| |______| -=[RP]=- Productions \n\n\n"); printf("welkom bij de beta release van calculator als je van bewerking wilt veranderen moet je driehoekje induwen\n\n\n"); vermenigvuldigen(); } int main(void) { pspDebugScreenInit(); SetupCallbacks(); while (1) { menu(); flipScreen(); sceDisplayWaitVblankStart(); } }
1. use a main loop in your main function. (easier as well as faster)
2. youre not flipping anything...
3.why are you calling the function everytime you press a button??? once is enough.--------------------------------------------------------------------------------------
-
10-03-2006, 03:18 PM #1069QJ Gamer Blue
- Registriert seit
- Sep 2006
- Ort
- Homebrewland, CA
- Beiträge
- 191
- Points
- 4.295
- Level
- 41
- Downloads
- 0
- Uploads
- 0
Thanks man seems to be working installing toolchain as we speak!!!
Zitat von Insomniac197
:Jump:
Damn This is taking forever to install toolchain
-
10-03-2006, 05:35 PM #1070Developer

- Registriert seit
- Jul 2006
- Beiträge
- 205
- Points
- 4.318
- Level
- 41
- Downloads
- 0
- Uploads
- 0
Sorry, I'm not very good at C but I would like to know if you get it worked out. To show my noobness, errno sounds like some error checking, so I would just try to comment it out. :)
Zitat von waterbottle
But actually you could always try a workaround...see if just plain old "atan" compiles okay. If it does, you could check for the correct quadrant yourself, e.g. if x is negative then angle = angle + 180 degrees. Or however you are supposed to fix the angle (I don't remember offhand).
-
10-04-2006, 01:08 AM #1071QJ Gamer Platinum

- Registriert seit
- Sep 2005
- Ort
- Edinburgh, UK
- Beiträge
- 2.388
- Points
- 25.089
- Level
- 95
- Downloads
- 0
- Uploads
- 0
hallo007: your problem is that you're using 'char' for upPressed and downPressed, and then assigning the address of a string literal ("false") to it. You should be getting lots of compiler warnings about that, and it's always best to try to investigate those to avoid this sort of problem.
To make what you're trying to do work, use 'char*' for those variables instead, which would work.
But what you're doing is somewhat strange. Better yet, is to make these variables truly boolean, since that's what you really want to do. There is no boolean type in C, so you'd need to use int, e.g.:
Code:#define TRUE 1 #define FALSE 0 int upPressed = FALSE; ... if(pad.Buttons & PSP_CTRL_UP) { if (!upPressed) { x++; pspDebugScreenClear(); vermenigvuldigen(); } upPressed = TRUE; } else { upPressed = FALSE; } ...Using firmware v2.00-v3.50? Open up a whole world of homebrew here
The PSP Homebrew Database needs YOU!
Your ISP may be illegally wiretapping all your web activity. Stop Phorm Now!
Visiting the Edinburgh Festivals? Get practical advice from experts.
-
10-04-2006, 06:39 AM #1072Heroes never die

- Registriert seit
- Aug 2006
- Ort
- ...........
- Beiträge
- 1.323
- Points
- 8.645
- Level
- 62
- Downloads
- 0
- Uploads
- 0
dam it's still doing x+1,2,3,4,5,6,.... when you hold the up button


the compille warningsinline void vermenigvuldigen()
{
int upPressed = FALSE; // This initializes "upPressed" //
int downPressed = FALSE;
printf("Druk op pijltje naar boven/beneden om de waarde van het eerste getal te veranderen :%i\n",x);
printf("Druk op pijltje naar links/rechts om de waarde van het tweede getal te veranderen :%i\n",y);
while(1) {
sceCtrlReadBufferPositive (&pad, 1);//start controls
if(pad.Buttons & PSP_CTRL_UP) {
if (!upPressed) {
x++;
pspDebugScreenClear();
vermenigvuldigen();
}
upPressed = TRUE;
}
else {
upPressed = FALSE;
}
if(pad.Buttons & PSP_CTRL_DOWN) {
if (!downPressed) {
x--;
pspDebugScreenClear();
vermenigvuldigen();
}
downPressed = TRUE;
}
else {
downPressed = FALSE;
}
if(pad.Buttons & PSP_CTRL_RIGHT) {
y++;
pspDebugScreenClear();
vermenigvuldigen();
}
if(pad.Buttons & PSP_CTRL_LEFT) {
y--;
pspDebugScreenClear();
vermenigvuldigen();
}
if(pad.Buttons & PSP_CTRL_CROSS) {
pspDebugScreenClear();
printf("het product is: %i\n",x*y);
menu();
}
if(pad.Buttons & PSP_CTRL_TRIANGLE) {
printf(" deze functie is nog niet af");
vermenigvuldigen();
}
}
}
main.c: In function 'vermenigvuldigen':
main.c:100: warning: implicit declaration of function 'menu'
main.c: At top level:
main.c:112: warning: conflicting types for 'menu'
main.c:100: warning: 'menu' declared inline after being called
main.c:100: warning: previous implicit declaration of 'menu' was here
-
10-04-2006, 06:44 AM #1073AKA Homer

- Registriert seit
- Jan 2006
- Ort
- Sweden
- Beiträge
- 1.779
- Points
- 12.596
- Level
- 73
- Downloads
- 0
- Uploads
- 0
Pretty sure this would work:
EDIT: Just tested it, worked fine.Code:inline void vermenigvuldigen() { int upPressed = FALSE; // This initializes "upPressed" // int downPressed = FALSE; printf("Druk op pijltje naar boven/beneden om de waarde van het eerste getal te veranderen :%i\n",x); printf("Druk op pijltje naar links/rechts om de waarde van het tweede getal te veranderen :%i\n",y); while(1) { sceCtrlReadBufferPositive (&pad, 1);//start controls if(pad.Buttons & PSP_CTRL_UP) { if (!upPressed) { x++; pspDebugScreenClear(); vermenigvuldigen(); upPressed = TRUE; } } else { upPressed = FALSE; } if(pad.Buttons & PSP_CTRL_DOWN) { if (!downPressed) { x--; pspDebugScreenClear(); vermenigvuldigen(); downPressed = TRUE; } } else { downPressed = FALSE; } if(pad.Buttons & PSP_CTRL_RIGHT) { y++; pspDebugScreenClear(); vermenigvuldigen(); } if(pad.Buttons & PSP_CTRL_LEFT) { y--; pspDebugScreenClear(); vermenigvuldigen(); } if(pad.Buttons & PSP_CTRL_CROSS) { pspDebugScreenClear(); printf("het product is: %i\n",x*y); menu(); } if(pad.Buttons & PSP_CTRL_TRIANGLE) { printf(" deze functie is nog niet af"); vermenigvuldigen(); } } }
-
10-04-2006, 07:47 AM #1074Developer

- Registriert seit
- Feb 2006
- Ort
- Norway
- Beiträge
- 384
- Points
- 5.359
- Level
- 47
- Downloads
- 0
- Uploads
- 0
got it to work using atan instead of atan2,
Zitat von LMelior
mummyrot = atan(((mummyy-*pposy)/(mummyx-*pposx))*-1);
if(mummyx-*pposx<0) mummyrot += 180.0f*(3.1415/180);
thanks for all the help :)
-
10-04-2006, 07:58 AM #1075Heroes never die

- Registriert seit
- Aug 2006
- Ort
- ...........
- Beiträge
- 1.323
- Points
- 8.645
- Level
- 62
- Downloads
- 0
- Uploads
- 0
thnx homer;)
-
10-04-2006, 03:08 PM #1076QJ Gamer Blue
- Registriert seit
- Sep 2006
- Ort
- Homebrewland, CA
- Beiträge
- 191
- Points
- 4.295
- Level
- 41
- Downloads
- 0
- Uploads
- 0
yes......got my pspdev environment all set up. Well now I am having trouble with including, I don't know what to include its a little different for coding for a pc or mac. I am learning C++ do you reccomend me switching to C or am I good. Any help or tutorials on that kind of stuff:Cry: :Cry:
-
10-04-2006, 04:50 PM #1077words are stones in my <3

- Registriert seit
- Jul 2005
- Ort
- Spokane
- Beiträge
- 5.008
- Points
- 35.274
- Level
- 100
- My Mood
-
- Downloads
- 1
- Uploads
- 0
A few extra includes are necessary, as well as some restrictions to what is able to be included... All basic general libraries are there (math, std*) but anything like MP3 playing, OGG playing , SDL_*, etc. requires you to install them from the svn. (svn co svn://svn.ps2dev.org/psp/trunk/__________).

...at what speed must I live.. to be able to see you again?...
Projects
You can support my Open World 3D RPG for PSP by voting for it here
-
10-04-2006, 05:00 PM #1078Developer

- Registriert seit
- Jul 2006
- Beiträge
- 205
- Points
- 4.318
- Level
- 41
- Downloads
- 0
- Uploads
- 0
Ah, so my memory serves me correctly! Excellent! Just wondering...not that it matters, but did you notice that you multiply pi by 180 and then divide by 180? Strange that you had to multiply by -1 in atan, too. Oh well, I'm glad it works. :)
Zitat von waterbottle
-
10-05-2006, 03:29 AM #1079QJ Gamer Blue
- Registriert seit
- Apr 2006
- Beiträge
- 146
- Points
- 4.464
- Level
- 42
- Downloads
- 0
- Uploads
- 0
EBOOT Graphics
Is there an easy way to get the icon/background of a homebrew game (What you see on the xmb)? Is there a function in C that can accomplish this?
P.S. I just realized that it is possible (irshell does it), but now I need to find out how to do it in c.Geändert von Cheater (10-05-2006 um 03:46 AM Uhr)
-
10-05-2006, 06:03 AM #1080words are stones in my <3

- Registriert seit
- Jul 2005
- Ort
- Spokane
- Beiträge
- 5.008
- Points
- 35.274
- Level
- 100
- My Mood
-
- Downloads
- 1
- Uploads
- 0
Yes. You can extract all of it from either the % folder eboot, or a 'true' 1.0 BEOOT. Not qite sure how, may just want to test my taking a small blan eboot, add an image to it, open the image up in a hex editor and find its start and last hex, search through the eboot for hte start hex, mark it, search for hte end hex, mark it. Now you should be able to copy and paste all in between into a text document and rename it to .png and have it still work meaning you can do the same on the PSP...
P.S. I actually havent any evidecne or proof that works, just an idea I had, so if it doesnt work, sorry.
...at what speed must I live.. to be able to see you again?...
Projects
You can support my Open World 3D RPG for PSP by voting for it here


LinkBack URL
About LinkBacks
Mit Zitat antworten

Hello everyone I am new here and I am glad to be part of this amazing community and I think there...
New to forum