QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

Good idea for Coolj's and Ketchup's screenshot plugin.

This is a discussion on Good idea for Coolj's and Ketchup's screenshot plugin. within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; The people say that want different combination buttons. Reading a configuration file, would be good for alternate the combination buttons. ...

Reply
 
LinkBack Thread Tools
Old 09-27-2007, 10:13 AM   #1
 
Dark_Moon's Avatar
 
Join Date: Aug 2006
Posts: 171
Trader Feedback: 0
Default Good idea for Coolj's and Ketchup's screenshot plugin.

The people say that want different combination buttons.
Reading a configuration file, would be good for alternate the combination buttons.
The code would be this more or less :

Code:
char input_text[2]; 
void read_configfile(const char *configfile_path)
{
    char line[2];
    int result;

    FILE *myfile = fopen(configfile_path, "r");
    
    sprintf(input_text, "%s", fgets(line, 2, myfile));
    
    fclose(myfile);
}

int main blablablalba {
...
read_configfile("screenshot_configfile.txt"); // For example.
    if((pad.Buttons & PSP_CTRL_RTRIGGER) && (strcmp(input_text, "1") == 0))
    { // code... }
}
Using it (I not proved if work as prx, but as pbp should work) the program will read a configfile and using this code if the configfile contain number 1, the screenshot would do with RTRIGGER.

Is a idea for Coolj and theKetchupMan.

Greetings.

EDIT : Ketchup had done it. Good work ketchup and coolj.

Last edited by becus25; 09-27-2007 at 10:29 AM..
Dark_Moon is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-27-2007, 10:22 AM   #2
 
Join Date: Oct 2006
Posts: 237
Trader Feedback: 0
Default

Quote:
Originally Posted by becus25
The people say that want different combination buttons.
Reading a configuration file, would be good for alternate the combination buttons.
The code would be this more or less :

Code:
char input_text[2]; 
void read_configfile(const char *configfile_path)
{
    char line[2];
    int result;

    FILE *myfile = fopen(configfile_path, "r");
    
    sprintf(input_text, "%s", fgets(line, 2, myfile));
    
    fclose(myfile);
}

int main blablablalba {
...
read_configfile("screenshot_configfile.txt"); // For example.
    if((pad.Buttons & PSP_CTRL_RTRIGGER) && (strcmp(input_text, "1") == 0))
    { // code... }
}
Using it (I not proved if work as prx, but as pbp should work) the program will read a configfile and using this code if the configfile contain number 1, the screenshot would do with RTRIGGER.

Is a idea for Coolj and theKetchupMan.

Greetings.
already done (release soon) but thanks
theketchupman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-27-2007, 10:30 AM   #3
 
Dark_Moon's Avatar
 
Join Date: Aug 2006
Posts: 171
Trader Feedback: 0
Default

Quote:
Originally Posted by theketchupman
already done (release soon) but thanks
Of nothing. Good work Ketchup.

Greetings.
Dark_Moon is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-27-2007, 11:29 AM   #4

 
Test30's Avatar
 
Join Date: Apr 2007
Posts: 107
Trader Feedback: 0
Default

yes becus25 good idea
Test30 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
coolj , good , idea , ketchup , plugin , screenshot

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 06:31 PM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us