Hi,
i added a few lines for me to have the same display functionality like Nieko added for the poweradapter (scepowertick) for the battery mode (for short trips or test drives).
You can switch the "full power" mode on or off by pressing R+L Trigger at the same time (without X) in Map mode.
I also added an new variable AUTOZOOMHYSTERESE to the config.txt and implement this to the autozoomcode from Nieko to have the possibilty to change this value without new compiling (not tested yet).
The AUTOZOOMHYSTERESE variable is preseted with 4 if there is no entry in the config.txt.
Search for ... to find my changes.
------------------
int displaypowermode=0;
int autozoomhysterese=4;
------------------
if (strncmp(line,"AUTOZOOMHYSTERESE=",18)==0) {
autozoomhysterese=atoi(&line[18]);
}
------------------
if ((displaypowermode==1) || (scePowerIsPowerOnline() > 0))
{ scePowerTick(0); }
------------------
// GoDE Displaypowermode to change with PSP_CTRL_LTRIGGER and PSP_CTRL_RTRIGGER
if ((cpad.Buttons & PSP_CTRL_LTRIGGER) && (cpad.Buttons & PSP_CTRL_RTRIGGER) && !(cpad.Buttons & PSP_CTRL_CROSS) && timer>10/(333/Clock))
{
displaypowermode++; //more modes possible
if (displaypowermode>1)
{
displaypowermode=0;
}
switch (displaypowermode)
{
case 0:
display_message("DISPLAYPOWERMODE","","PSP SETTINGS OR POWERADAPTER",1200);
break;
case 1:
display_message("DISPLAYPOWERMODE","","FULL ON",1000);
break;
}
// MIB.42_5 Special for recording thread statuses
if ((cpad.Buttons & PSP_CTRL_LTRIGGER) && (cpad.Buttons & PSP_CTRL_RTRIGGER) && (cpad.Buttons & PSP_CTRL_CROSS) && timer>10/(333/Clock))
....
------------------
if (speed*speedfix - (curautozoom + autozoomhysterese/1.8523*speedfix) > autozoom) {
if (zm<TILE_NUM/2) {
curautozoom += autozoom;
zoom++;
zm = powerOf(zoom-1);
mysleep(300000);
}
}
if (speed*speedfix < curautozoom - autozoomhysterese/1.8523*speedfix) {
------------------
Attached my main.c (changed 5.01 from Nieko) and my eboot for generic
GoDE (PSP 3.52#4 M33 & Holux M1000)
MAPTHIS=BEST PSP Outdoor Software :thumbup:
Bookmarks