View Single Post
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#1
Hi

NEW
Use preenv-hd: http://talk.maemo.org/showpost.php?p...postcount=2630 by santiago


OLD:
I found here talk.maemo.org/showthread.php?p=1094540 a script webos2hd.sh which swaps libsdlpre.so and libsdlpre-tab.so.
But:
1. You need to remember which is which (their names are swapped)
2. It ain't cool to run it all the time

SO

I used the concept and made a script which swaps the libraries, runs the app, and swaps 'em back right after. Handy, ain't it?

REQUIREMENTS:
1. preenv - you want to run preenv games, aren't you?
2. sudser - I'm using sudo in install script.

USAGE

1. DOWNLOAD
download
2. INSTALL
install script - To use the install script save it in the directory with mar-hdrun.sh. Note: if you haven't made MyDocs, you can't run it from there: you need to save it somewhere else.
to run it, type in terminal (assuming files are in /home/user/MyDocs)
Code:
cd /home/user/MyDocs
cp *mar-hdrun.sh ../
cd ..
chmod +x install-mar-hdrun.sh
./install-mar-hdrun.sh
Now you can run just mar-hdrun instead full path
3. PLAY
assuming your game is Angry Birds Rio HD and the executable is in /home/user/Games/AngryBirdsRioHD/angrybirdsriohd
so you should run
Code:
mar-hdrun "/home/user/Games/AngryBirdsRioHD/angrybirdsriohd"
But it still isn't that handy. You can create a shortcut!
So
navigate in terminal to the game dir and type:
Code:
sudo preenv
desktopgen appinfo.json
Then edit the created shortcut. The line
Code:
Exec="/opt/preenv/wrapper.sh" "com.rovio.angrybirdsriohd" "/home/user/Games/AngryBirdsRioHD/angrybirdsriohd"
to
Code:
Exec=mar-hdrun /home/user/Games/AngryBirdsRioHD/angrybirdsriohd
And you can normally run via the menu



on my N900 executable location was actually /home/user/Games/AngryBirdsRioHD/usr/palm/applications/com.rovio.angrybirdsriohd

Last edited by marmistrz; 2011-09-24 at 15:12. Reason: File relocated on my Dropbox
 

The Following 7 Users Say Thank You to marmistrz For This Useful Post: