Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Palm Pre gets SDL! native gaming

    Reply
    Page 11 of 75 | Prev |   9     10   11   12     13   21 | Next | Last
    Airtux | # 101 | 2010-10-25, 04:52 | Report

    @maluka looks here: http://talk.maemo.org/showpost.php?p...1&postcount=77

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to Airtux For This Useful Post:
    maluka

     
    maluka | # 102 | 2010-10-25, 05:00 | Report

    Originally Posted by Airtux View Post
    @maluka looks here: http://talk.maemo.org/showpost.php?p...1&postcount=77
    got it already thanks

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Bundyo | # 103 | 2010-10-25, 05:07 | Report

    @javispedro: I have some additions, according to the SDK (All functions return Pre-related stuff).

    Code:
    --- PDL.h       2010-10-25 07:46:35.980774034 +0300
    +++ PDL.h--     2010-10-25 07:51:22.065576828 +0300
    @@ -49,14 +49,25 @@
            double aspectRatio;
     } PDL_ScreenMetrics;
     
    +typedef struct {
    +       int majorVersion;
    +       int minorVersion;
    +       int revision;
    +       const char *versionStr;
    +} PDL_OSVersion;
    +
     PDL_Err PDL_BannerMessagesEnable(PDL_bool enable);
     PDL_Err PDL_CustomPauseUiEnable(PDL_bool enable);
     PDL_Err PDL_GetCallingPath(char *buffer, int bufferLen);
     PDL_Err PDL_GetDeviceName(char *buffer, int bufferLen);
    +const char * PDL_GetError();
     PDL_Err PDL_GetLanguage(char *buffer, int bufferLen);
     PDL_Err PDL_GetNetInfo(const char *interfaceName, PDL_NetInfo * interfaceInfo);
     PDL_Err PDL_GetScreenMetrics(PDL_ScreenMetrics* metrics);
     PDL_Err PDL_GetUniqueID(char *buffer, int bufferLen);
    +PDL_Err PDL_GetOSVersion(PDL_OSVersion *version);
    +const char * PDL_GetHardware();
    +int PDL_isAppLicensedForDevice(const char *appid);
     PDL_Err PDL_LaunchBrowser(const char* url);
     PDL_Err PDL_NotifyMusicPlaying(PDL_bool musicPlaying);
     PDL_Err PDL_ScreenTimeoutEnable(PDL_bool enable);
    Code:
    --- pdl.c       2010-10-25 07:46:35.980774034 +0300
    +++ pdl.c--     2010-10-25 07:56:01.502404858 +0300
    @@ -217,6 +217,12 @@
            return PDL_NOERROR;
     }
     
    +const char * PDL_GetError()
    +{
    +       // Not implemented
    +       return "Something happened!";
    +}
    +
     PDL_Err PDL_GetLanguage(char *buffer, int bufferLen)
     {
            if (!buffer || bufferLen <= 0) {
    @@ -242,6 +248,16 @@
            return PDL_INVALIDINPUT;
     }
     
    +const char * PDL_GetHardware()
    +{
    +       return "pre";
    +}
    +
    +int PDL_isAppLicensedForDevice(const char *appid)
    +{
    +       return 1;
    +}
    +
     PDL_Err PDLNet_Get_Info(const char *interfaceName, PDL_NetInfo * interfaceInfo)
     {
            return PDL_GetNetInfo(interfaceName, interfaceInfo);
    @@ -249,8 +265,21 @@
     
     PDL_Err PDL_GetScreenMetrics(PDL_ScreenMetrics* metrics)
     {
    -       TRACE("Application asks for screen metrics; what to say here?");
    -       return PDL_EOTHER;
    +       metrics->horizontalPixels = 480;
    +       metrics->verticalPixels = 800;
    +       metrics->horizontalDPI = 213;
    +       metrics->verticalDPI = 183;
    +       metrics->aspectRatio = 1.164;
    +       return PDL_NOERROR;
    +}
    +
    +PDL_Err PDL_GetOSVersion(PDL_OSVersion *version)
    +{
    +       version->majorVersion = 1;
    +       version->minorVersion = 4;
    +       version->revision = 5;
    +       version->versionStr = "Palm WebOS 1.4.5.1";
    +       return PDL_NOERROR;
     }
     
     PDL_Err PDL_GetUniqueID(char *buffer, int bufferLen)
    Also you wrote TODO in PDL_GetCallingPath, but according to the SDK docs it is deprecated and returns "./" every time.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    anwar71839 | # 104 | 2010-10-25, 05:31 | Report

    Someone please help me I am a 'extreme noob' when it comes to terminal. I am trying to launch nfsuc. It always given an error like can't cd path/path. I have been trying for over an hour.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Bratag | # 105 | 2010-10-25, 07:01 | Report

    Very cool Javis. Had some issues with undefined symbol SDL_memcmp. That should hopefully be an easy one to add a tag for.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Frappacino | # 106 | 2010-10-25, 07:35 | Report

    javispedro: do you have a paypal donation link ?

    If not, please consider setting one up.

    I realize you are not doing it for $$$, but in a way allows those of us to make it less tedious for you (and maybe help motivate you to fix more bugs.

    I am sure many here wont mind chipping in some money for coke and pizza at least for you

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 3 Users Say Thank You to Frappacino For This Useful Post:
    cedlmw, mece, oldnetdog

     
    osama | # 107 | 2010-10-25, 08:20 | Report

    Need For Speed Undercover

    http://www.youtube.com/watch?v=JD98O0rVev0

    Edit | Forward | Quote | Quick Reply | Thanks

     
    longcat | # 108 | 2010-10-25, 08:36 | Report

    stupid question: i've installed preenv, but where to get those fancy games ?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Turkishflavor | # 109 | 2010-10-25, 08:45 | Report

    Originally Posted by maluka View Post
    got it already thanks
    how did YOU solve the problem?!

    PREENV is down! where can i get it now?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    porselinaheart | # 110 | 2010-10-25, 09:47 | Report

    @zehjotkah, hi bro mind sharing how u overcame the 'segmentation fault' error when using SSH to transfer the game files??

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 11 of 75 | Prev |   9     10   11   12     13   21 | Next | Last
vBulletin® Version 3.8.8
Normal Logout