![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on Printing to the Screen Using a PRX ? within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; I've got the following code for a PRX, just as a test really, but anyway, here it is, i'm new ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() |
I've got the following code for a PRX, just as a test really, but anyway, here it is, i'm new to creating PRX's so i'm wondering if the techniques are any diff.
O yea, why doesnt it do my desired result ? Code:
/*
* PSP Software Development Kit - http://www.pspdev.org
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
*
* main.c - Basic PRX template
*
* Copyright (c) 2005 Marcus R. Brown <mrbrown@ocgnet.org>
* Copyright (c) 2005 James Forshaw <tyranid@gmail.com>
* Copyright (c) 2005 John Kelley <ps2dev@kelley.ca>
*
* $Id: main.c 1888 2006-05-01 08:47:04Z tyranid $
* $HeadURL$
*/
#include <pspkernel.h>
#include <pspdebug.h>
#include <pspdisplay.h>
#include <stdio.h>
#include <psppower.h>
#include <pspctrl.h>
#define printf pspDebugScreenPrintf
PSP_MODULE_INFO("oc_mod", 0, 1, 1);
PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER | THREAD_ATTR_VFPU);
int main(int argc, char *argv[]){
SceCtrlData pad;
while(1) {
sceCtrlReadBufferPositive(&pad, 1);
if (pad.Buttons & PSP_CTRL_LEFT) {
scePowerSetClockFrequency(222, 222, 166);
printf("CPU Set at 222mhz");
} else if(pad.Buttons & PSP_CTRL_RIGHT) {
scePowerSetClockFrequency(333, 333, 166);
printf("CPU Set at 333mhz");
}
}
return 0;
}
|
|
|
|
|
|
#2 | |
![]() ![]() ![]() Developer
|
Quote:
follow devhook guidelines for makefile |
|
|
|
|
|
|
#3 |
![]() |
Theres no Pre-Worked Out Way of printing to the Screen... I did many Trial and Error Attempts on doing a proper Text-Blitting (Output) to Screen...
The Way it works without relying on the DebugScreen Stuff is calling to the VRAM Framebuffer and directly write Color Values in the currently used BPP Rate to the Screen... I enhanced the Code Booster used for his VSH Extender a bit myself using Information I gathered over Time... You can find a extensive and proper working Blit-Library of mine inside the Musou-Cheating Device R5 Sources you can find on my Devspace http://coldbird.lan.st This should help you out...
__________________
[B]PS2*NFO Hatelist[/B] [SIZE=1]Peaple who hate PS2*NFO: [COLOR="Orange"][I]Coldbird[/I][/COLOR], [COLOR="Green"]Macca[/COLOR], [COLOR="Blue"][I]Mathieulh[/I][/COLOR], [COLOR="Burgundy"][I]Dark_Alex[/I][/COLOR], [COLOR="Red"][I]harleyg[/I][/COLOR], [COLOR="Yellow"]wakAwooki[/COLOR], [COLOR="Purple"]mr_dank[/COLOR], [COLOR="Grey"]dedb33t[/COLOR], [COLOR="Orange"]Moose_Island[/COLOR], [COLOR="Green"]myschoo[/COLOR], [COLOR="Blue"][I]jas0nuk[/I][/COLOR], [COLOR="Burgundy"]pyro_person6493[/COLOR], [COLOR="Red"]Train[/COLOR], [COLOR="Yellow"]MaSt3r_ShAk3[/COLOR], [COLOR="Purple"]duh[/COLOR], [COLOR="Grey"]jacksmyhro[/COLOR], [COLOR="Orange"]Axionkt[/COLOR], [COLOR="Green"]Swasagon[/COLOR], [COLOR="Blue"]poohter[/COLOR], [COLOR="Burgundy"]duncans_pumpkin[/COLOR], [COLOR="Red"]xsorifc28[/COLOR], [COLOR="Yellow"]vb_master[/COLOR], [COLOR="Purple"][I]spectroplasm[/I][/COLOR], [COLOR="Grey"]frylock[/COLOR], [COLOR="Orange"]UChessmaster[/COLOR], [COLOR="Green"]AndyMosh[/COLOR], [COLOR="Blue"]Looroll91[/COLOR], [COLOR="Burgundy"]kompas[/COLOR], [COLOR="Red"]Pspbricker[/COLOR], [COLOR="Yellow"]Hag2bard[/COLOR], [COLOR="Purple"]PSP Pro_1[/COLOR], [COLOR="Grey"]vicecity31[/COLOR], [COLOR="Orange"]ab88[/COLOR], [COLOR="Green"]ipodlinux[/COLOR], [COLOR="Blue"]afiser[/COLOR], [COLOR="Burgundy"]PsPumPkin[/COLOR][/SIZE] [CENTER][IMG]http://amasora.com/pass/image_7_Coldbird.png[/IMG][/CENTER] |
|
|
|
|
|
#4 | |
![]() |
Quote:
quick edit - i cant find the "Mosou-Cheating Device" you reffered to in your post. *scratches head* |
|
|
|
|
|
|
#5 |
![]() |
coldbird.lan.st
Subsection Cheating Devices / Shin Sangokumusou 2nd Evolution / Musou[J]R5.rar That was it I think... haha
__________________
[B]PS2*NFO Hatelist[/B] [SIZE=1]Peaple who hate PS2*NFO: [COLOR="Orange"][I]Coldbird[/I][/COLOR], [COLOR="Green"]Macca[/COLOR], [COLOR="Blue"][I]Mathieulh[/I][/COLOR], [COLOR="Burgundy"][I]Dark_Alex[/I][/COLOR], [COLOR="Red"][I]harleyg[/I][/COLOR], [COLOR="Yellow"]wakAwooki[/COLOR], [COLOR="Purple"]mr_dank[/COLOR], [COLOR="Grey"]dedb33t[/COLOR], [COLOR="Orange"]Moose_Island[/COLOR], [COLOR="Green"]myschoo[/COLOR], [COLOR="Blue"][I]jas0nuk[/I][/COLOR], [COLOR="Burgundy"]pyro_person6493[/COLOR], [COLOR="Red"]Train[/COLOR], [COLOR="Yellow"]MaSt3r_ShAk3[/COLOR], [COLOR="Purple"]duh[/COLOR], [COLOR="Grey"]jacksmyhro[/COLOR], [COLOR="Orange"]Axionkt[/COLOR], [COLOR="Green"]Swasagon[/COLOR], [COLOR="Blue"]poohter[/COLOR], [COLOR="Burgundy"]duncans_pumpkin[/COLOR], [COLOR="Red"]xsorifc28[/COLOR], [COLOR="Yellow"]vb_master[/COLOR], [COLOR="Purple"][I]spectroplasm[/I][/COLOR], [COLOR="Grey"]frylock[/COLOR], [COLOR="Orange"]UChessmaster[/COLOR], [COLOR="Green"]AndyMosh[/COLOR], [COLOR="Blue"]Looroll91[/COLOR], [COLOR="Burgundy"]kompas[/COLOR], [COLOR="Red"]Pspbricker[/COLOR], [COLOR="Yellow"]Hag2bard[/COLOR], [COLOR="Purple"]PSP Pro_1[/COLOR], [COLOR="Grey"]vicecity31[/COLOR], [COLOR="Orange"]ab88[/COLOR], [COLOR="Green"]ipodlinux[/COLOR], [COLOR="Blue"]afiser[/COLOR], [COLOR="Burgundy"]PsPumPkin[/COLOR][/SIZE] [CENTER][IMG]http://amasora.com/pass/image_7_Coldbird.png[/IMG][/CENTER] |
|
|
|
|
|
#6 | |
![]() |
Quote:
for instance, the keys are unresponsive and the in game camera is allover the place
|
|
|
|
|
|
|
#8 |
![]() |
yup... keep peekbuffer positive...
I still suggest you take a close look at my Musou Device... It should have everything ready for use - even stuff the DHSDK cant offer you... Like Multi-BPP Blitting and of course Resetting of Screen (that one thought aint too exclusive - as its easy to code...)
__________________
[B]PS2*NFO Hatelist[/B] [SIZE=1]Peaple who hate PS2*NFO: [COLOR="Orange"][I]Coldbird[/I][/COLOR], [COLOR="Green"]Macca[/COLOR], [COLOR="Blue"][I]Mathieulh[/I][/COLOR], [COLOR="Burgundy"][I]Dark_Alex[/I][/COLOR], [COLOR="Red"][I]harleyg[/I][/COLOR], [COLOR="Yellow"]wakAwooki[/COLOR], [COLOR="Purple"]mr_dank[/COLOR], [COLOR="Grey"]dedb33t[/COLOR], [COLOR="Orange"]Moose_Island[/COLOR], [COLOR="Green"]myschoo[/COLOR], [COLOR="Blue"][I]jas0nuk[/I][/COLOR], [COLOR="Burgundy"]pyro_person6493[/COLOR], [COLOR="Red"]Train[/COLOR], [COLOR="Yellow"]MaSt3r_ShAk3[/COLOR], [COLOR="Purple"]duh[/COLOR], [COLOR="Grey"]jacksmyhro[/COLOR], [COLOR="Orange"]Axionkt[/COLOR], [COLOR="Green"]Swasagon[/COLOR], [COLOR="Blue"]poohter[/COLOR], [COLOR="Burgundy"]duncans_pumpkin[/COLOR], [COLOR="Red"]xsorifc28[/COLOR], [COLOR="Yellow"]vb_master[/COLOR], [COLOR="Purple"][I]spectroplasm[/I][/COLOR], [COLOR="Grey"]frylock[/COLOR], [COLOR="Orange"]UChessmaster[/COLOR], [COLOR="Green"]AndyMosh[/COLOR], [COLOR="Blue"]Looroll91[/COLOR], [COLOR="Burgundy"]kompas[/COLOR], [COLOR="Red"]Pspbricker[/COLOR], [COLOR="Yellow"]Hag2bard[/COLOR], [COLOR="Purple"]PSP Pro_1[/COLOR], [COLOR="Grey"]vicecity31[/COLOR], [COLOR="Orange"]ab88[/COLOR], [COLOR="Green"]ipodlinux[/COLOR], [COLOR="Blue"]afiser[/COLOR], [COLOR="Burgundy"]PsPumPkin[/COLOR][/SIZE] [CENTER][IMG]http://amasora.com/pass/image_7_Coldbird.png[/IMG][/CENTER] |
|
|
|
![]() |
| Tags |
| printing , prx , screen |
| Thread Tools | |
|
|