 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
BlackOwl
Joined: 18 Aug 2007 Posts: 1
|
Posted: Sun Aug 19, 2007 12:52 am Post subject: need coding help music.rpx |
|
|
hi
first sry for my bad english
i have the firmware 3.03 OE-A
and installed Music PRX 0.50
and used it with no problems but accidentally i pressed wrong keys in the music.prx and overclocked my cpu from 222 to 333:166 and crashed and my problem ist that the program saves the last settings and i cant reduce the cpu back to 222
i know press note+o but if i start the musix.prx [VSH] i and start my PSP
but it get freezed
i want use this plugin i know i can remove it or disable it but i want use it
in the config data i found this
i updating my psp to 3.40 OE-A and tryed to use the plugin but same problem and if i use the the 0.55 version it get freezed if i start a mp3 data
can someone help me with this code to reset the settings back to 222
/save settings to flash1 this used to be the ms, but for some reason writing
//to the ms in module_reboot_before causes a crash/corruption
void LoadSettings()
{
SceUID fd;
music->random = 0;
music->volume = 100;
fd = sceIoOpen(SETTINGS_FILE, PSP_O_RDONLY, 0777);
if (fd < 0)
return;
sceIoRead(fd, &saved, sizeof(Settings));
sceIoClose(fd);
if (saved.version != VERSION)
{
sceIoRemove(SETTINGS_FILE);
return;
}
music->random = saved.random;
music->volume = saved.volume;
cpu_speed[0] = saved.cpu_speed[0];
cpu_speed[1] = saved.cpu_speed[1];
set_cpu_speed = 1;
}
void SaveSettings()
{
SceUID fd;
fd = sceIoOpen(SETTINGS_FILE, PSP_O_WRONLY|PSP_O_CREAT|PSP_O_TRUNC, 0777);
if (fd < 0)
return;
saved.version = VERSION;
saved.random = music->random;
saved.volume = music->volume;
if (speed_changed)
{
saved.cpu_speed[0] = (u32)scePowerGetCpuClockFrequency();
saved.cpu_speed[1] = (u32)scePowerGetBusClockFrequency();
}
else
{
saved.cpu_speed[0] = cpu_speed[0];
saved.cpu_speed[1] = cpu_speed[1];
}
sceIoWrite(fd, &saved, sizeof(Settings));
sceIoClose(fd);
} |
|
| Back to top |
|
 |
Fanjita
Joined: 28 Sep 2005 Posts: 217
|
Posted: Sun Aug 19, 2007 4:54 am Post subject: |
|
|
This is hardly the place to get user support for other people's plugins.
Having said that, you might try deleting the settings file - looks like that might work. _________________ Got a v2.0-v2.80 firmware PSP? Download the eLoader here to run homebrew on it!
The PSP Homebrew Database needs you! |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|