Page 40 of 47 FirstFirst ... 30363738394041424344 ... LastLast
Results 391 to 400 of 468

Thread: New Code Contribution

                  
   
  1. #391

    Default

    thanks

  2. #392
    DCEmu Newbie
    Join Date
    Aug 2007
    Location
    Germany
    Posts
    19
    Rep Power
    0

    Thumbs up

    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:

  3. #393
    DCEmu Regular
    Join Date
    Feb 2007
    Posts
    448
    Rep Power
    66

    Default

    Nice, more and more contributions to Deniska

  4. #394
    DCEmu Pro
    Join Date
    Feb 2007
    Location
    Netherlands
    Posts
    539
    Rep Power
    67

    Default

    Quote Originally Posted by GoDE View Post
    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.
    Good idea . I've changed my version to include this variable. All the changes are:
    • Included AUTOZOOMHYSTERESIS config directive;
    • Included AUTOZOOMENABLED config directive (1 to enable on startup, 0 to disable);
    • R+L trigger toggles autozoomenabled;


    See my original post for the EBOOT (PSP-290)+source code: http://www.dcemu.co.uk/vbulletin/sho...09&page=37#368

  5. #395
    DCEmu Newbie
    Join Date
    Oct 2007
    Posts
    1
    Rep Power
    0

    Default

    Cool app...

  6. #396
    DCEmu Newbie
    Join Date
    Dec 2006
    Posts
    6
    Rep Power
    0

    Default

    Quote Originally Posted by Nieko View Post
    Good idea . I've changed my version to include this variable. All the changes are:
    • Included AUTOZOOMHYSTERESIS config directive;
    • Included AUTOZOOMENABLED config directive (1 to enable on startup, 0 to disable);
    • R+L trigger toggles autozoomenabled;


    See my original post for the EBOOT (PSP-290)+source code: http://www.dcemu.co.uk/vbulletin/sho...09&page=37#368
    Good! Good! Good!
    but... can you compile it to generic gps device?
    it will be great if u can! :thumbup:

    thanks u all!!!

    I Love MapThis!!!

  7. #397
    DCEmu Pro
    Join Date
    Feb 2007
    Location
    Netherlands
    Posts
    539
    Rep Power
    67

    Default

    I tried, but I can't get it to work, neither my version nor the official one.

    I can compile it, but when I start the EBOOT there's a black screen with some red lines (the same red lines I got when a geodata search took too long) and then it goes back to XMB...

  8. #398
    DCEmu Newbie
    Join Date
    Dec 2006
    Posts
    6
    Rep Power
    0

    Default

    i'd love to tried that one!

    ...maybe GoDE can! i try the one he share, but i can't see autozoom work...

    i'd love too to see another autozoom feature, not based on the speed, but to always see the next direction (i hope u can understand what i mean), but i don't know how to do it...

    ...i have much ideas to improve MapThis! the layout, the scrooling, the button assignments and other stuff (some include changes in GMDL too), so many that i'm thinking about learnig psp language coding (i know just i little bit of c and vb)

    Keep up the good work!

  9. #399
    DCEmu Pro
    Join Date
    Feb 2007
    Location
    Netherlands
    Posts
    539
    Rep Power
    67

    Default

    GoDE: if you can tell me how you compiled it, I can try it out . I'm using the latest PSPSDK and toolchain from SVN under Linux.

    DrunphO: if you have good ideas, you could talk to deniska about them . If he thinks they're good too, they might end up in the official version.

  10. #400
    DCEmu Regular
    Join Date
    Feb 2007
    Posts
    448
    Rep Power
    66

    Default

    The makefile is different for the Generic version ?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •