The above video goes away if you are a member and logged in, so log in now!




 
Would you like to get all the newest Gaming News from
QJ.NET in your email each day?




Want to learn more about the team who brings you the QJ news?

Read about them now!

 


Results 1 to 6 of 6

[RELEASE]LuaPlayerHM Drivers

This is a discussion on [RELEASE]LuaPlayerHM Drivers within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Thx to Dark_Alex, Sakya for the help with the source for the prx's. LuaPlayerHM users. This is for the next ...

  
  1. #1
    QJ Gamer Silver
    Points: 8,667, Level: 62
    Level completed: 73%, Points required for next Level: 83
    Overall activity: 0%

    Join Date
    Sep 2007
    Location
    AUS
    Posts
    282
    QJ Pts
    8,667
    Level
    62
    Downloads
    0
    Uploads
    0

    Lightbulb [RELEASE]LuaPlayerHM Drivers

    Thx to Dark_Alex, Sakya for the help with the source for the prx's.

    LuaPlayerHM users.
    This is for the next release of the player. It will be included in the release zip. But you can install it if you want now.
    This is realy a release for the developers so that they can use the prx's in there own code. It is designed to be in the flash1
    for ease of acsess to all games.

    Copy the folder LPHMDinstall to under the 4.xx or 3.xx kernal folder. Run it and it will install.


    For Developers
    The Following drivers will give you the following functions.

    *****rdriver.prx
    Ability to use all ISO loaders
    pspSdkLoadStartModule("fl ash1:/LPHMDRIVER/rdriver.prx", PSP_MEMORY_PARTITION_KERN EL);
    struct SceKernelLoadExecVSHParam param;
    SEConfig config;

    int apitype = 0x120;

    char *program = "disc0:/PSP_GAME/SYSDIR/EBOOT.BIN";

    char *mode = "game";

    SetUmdFile(isopath);

    sctrlSEGetConfigEx(&confi g, sizeof(config));

    if (config.umdmode == MODE_MARCH33)

    {

    SetConfFile(1);

    }

    else if (config.umdmode == MODE_NP9660)

    {

    SetConfFile(2);

    }

    else

    {

    SetConfFile(0);

    }
    memset(&param, 0, sizeof(param));

    param.size = sizeof(param);

    param.args = strlen(program)+1;

    param.argp = program;

    param.key = mode;

    sctrlKernelLoadExecVSHWit hApitype(apitype, program, &param);

    ******hook.prx and load.pbp
    Ability to hook exit call back of games / umd / iso.
    change the hook.txt to somthing else, but it must be in the seplugins folder with the load.pbp

    SceUID modid;
    int status;
    char args[128];
    strcpy(args,path);
    int len;

    modid = sceKernelLoadModule("flas h1:/LPHMDRIVER/hook.prx", 0, NULL);
    if(modid >= 0)
    {
    len = strlen(path) + 1;
    modid = sceKernelStartModule(modi d, len, (void *) args, &status, NULL);
    SceUID fd = sceIoOpen("ms0:/seplugins/hook.txt", PSP_O_WRONLY | PSP_O_CREAT | PSP_O_TRUNC, 0777);
    sceIoWrite(fd, path, size);
    sceIoClose(fd);
    hooklib = 1;
    }


    *******syslib.prx
    Ability to use the following
    int imposeGetVolume();

    int imposeSetVolume(int volume);

    int imposeGetMute();

    int imposeSetMute(int value);

    int getBrightness();

    void setBrightness(int brightness);

    int imposeSetBrightness(int value);

    int imposeGetBrightness();

    int displayEnable(void);

    int displayDisable(void);

    int getBrightness();

    void setBrightness(int brightness);
    int imposeSetHomePopup(int value);

    Thx to sakya for the prx src and Dark_Alex
    http://homemister.axspace.com/LPHMDinstall.zip
    Homemister.
    Wyvern. That is all

  2. #2
    QJ Gamer Silver
    Points: 8,667, Level: 62
    Level completed: 73%, Points required for next Level: 83
    Overall activity: 0%

    Join Date
    Sep 2007
    Location
    AUS
    Posts
    282
    QJ Pts
    8,667
    Level
    62
    Downloads
    0
    Uploads
    0

    Default

    unhook
    RestoreExitGame();
    Wyvern. That is all

  3. #3
    QJ Gamer Green
    Points: 3,810, Level: 39
    Level completed: 7%, Points required for next Level: 140
    Overall activity: 0%

    Join Date
    May 2008
    Posts
    246
    QJ Pts
    3,810
    Level
    39
    Downloads
    0
    Uploads
    0

    Default

    Is there any chance there will be such function:

    Call.C()
    *Code in C*
    Uncall.C()

    (Hmm I suck at explaining, but the basic idea is that we will be able to use C or C++ codes in our Lua application, this will make Lua a leet programming language - It's the easiest one of course, but now it will also have all the functions that C and C++ got!)

  4. #4
    QJ Gamer Bronze
    Points: 5,628, Level: 48
    Level completed: 39%, Points required for next Level: 122
    Overall activity: 19.0%

    Join Date
    Dec 2007
    Location
    B.F.
    Posts
    328
    QJ Pts
    5,628
    Level
    48
    My Mood
    Psychedelic
    Downloads
    1
    Uploads
    0

    Default

    In the other verse in would be possible i think (i mean call LUA code in a C coded Homebrew)but i really doubt what u're asking for can be done..

  5. #5
    QJ Gamer Green
    Points: 3,721, Level: 38
    Level completed: 48%, Points required for next Level: 79
    Overall activity: 0%

    Join Date
    Jan 2008
    Posts
    612
    QJ Pts
    3,721
    Level
    38
    Downloads
    0
    Uploads
    0

    Default

    Combina, that would be impossible because C has to be compiled and luaplayer cannot do that.

  6. #6
    Developer
    Points: 4,797, Level: 44
    Level completed: 24%, Points required for next Level: 153
    Overall activity: 0%

    Join Date
    Jul 2006
    Posts
    262
    QJ Pts
    4,797
    Level
    44
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by CoMbiNa View Post
    Is there any chance there will be such function:

    Call.C()
    *Code in C*
    Uncall.C()

    (Hmm I suck at explaining, but the basic idea is that we will be able to use C or C++ codes in our Lua application, this will make Lua a leet programming language - It's the easiest one of course, but now it will also have all the functions that C and C++ got!)
    No, but one should always write CPU and graphics-intensive code in C and then bind that to Lua. Of course, this is not dynamic, as C itself must be compiled BUT scripting languages such as Lua could really use a just-in-time compiler that compiles to MIPS assembly dynamically. There ARE real, open-source scripting languages that do that, not for mips of course, but I can name one scripting engine that ONLY runs with a JIT compiler--that would be the Tamarin project: http://www.mozilla.org/projects/tamarin/

    Maybe someone with good coding skills could port that to MIPS, add some standard library functions, or use the code to make a proper JIT for Lua. Either way, both ActionScript or Lua would be a serious development platform for the PSP... Until then, Lua is nothing more than a configuration file parser or a RAD tool at best.


 

Tags for this Thread

Posting Permissions

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





All times are GMT -8. The time now is 09:54 AM.

Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2013, Caputo Media, LLC. All Rights Reserved. Cluster C5.
Contact Us | Free Flash Games | Ad Blockers Suck! Why?