![]() |
2008-03-24
, 09:54
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#12
|
![]() |
2008-03-24
, 10:03
|
|
Posts: 58 |
Thanked: 49 times |
Joined on Feb 2008
|
#13
|
Can I make a suggestion here? Me and ArnimS have been using /media/mmcX/share/gamename for data files. User will most likely want the datafiles on either card. So:
use maemo-confirm-text in preinst to ask which card user wants
symlink something like /tmp/gameinstaller to card/share/gamename
make package install data files in /tmp/gameinstaller (i guess if the files are owned by user it doesn't try to chown them. Not sure so check the pingus data package)
remove link in postinst
Make game look for datafiles from cwd. Then use a script to launch the game that checks which card the data files are on and cd into it before running the binary. That way user could actually swap cards on N800 and the game would still work.
Finally make prerm delete the datafiles from either card.
Most of this work is already done in Tower Toppler package. You would only need to add that symlink thing.
![]() |
2008-03-24
, 10:05
|
|
Posts: 58 |
Thanked: 49 times |
Joined on Feb 2008
|
#14
|
![]() |
2008-03-24
, 10:07
|
Posts: 882 |
Thanked: 1,310 times |
Joined on Mar 2007
|
#15
|
The Following User Says Thank You to ukki For This Useful Post: | ||
![]() |
2008-03-24
, 12:04
|
|
Posts: 4,708 |
Thanked: 4,649 times |
Joined on Oct 2007
@ Bulgaria
|
#16
|
gxmessage -center -buttons root:0,MMC1:1,MMC2:2 -title "Choose Storage" "Where do you want your data files installed? Free space left on your devices: `printf "\n\n"; df -h | grep \"mmc\"`"
The Following 4 Users Say Thank You to Bundyo For This Useful Post: | ||
![]() |
2008-03-24
, 13:21
|
|
Posts: 58 |
Thanked: 49 times |
Joined on Feb 2008
|
#17
|
![]() |
2008-03-24
, 14:37
|
|
Posts: 4,708 |
Thanked: 4,649 times |
Joined on Oct 2007
@ Bulgaria
|
#18
|
./gxmessage -center -buttons root:100,MMC1:101,MMC2:102 -title "Choose Storage" "Where do you want your data files installed? Free space left on your devices: `printf "\n\n"; df -h | grep \"mmc\"`"
The Following User Says Thank You to Bundyo For This Useful Post: | ||
![]() |
2008-03-24
, 22:33
|
|
Posts: 4,708 |
Thanked: 4,649 times |
Joined on Oct 2007
@ Bulgaria
|
#19
|
./gxmessage -center -buttons root:0,MMC1:1,MMC2:2 -geometry 640x250 -title "Choose Storage" "Where do you want your data files installed? Free space left on your devices: `printf "\n\n"; df -h | grep \"mmc\"`"
./gxmessage -center -entry -alignbuttons left -buttons GTK_STOCK_NEW:100,GTK_STOCK_CLOSE:102 -geometry 400x50 -title "Name your folder" "Please give a name to your game folder."
![]() |
2008-03-25
, 00:01
|
|
Posts: 58 |
Thanked: 49 times |
Joined on Feb 2008
|
#20
|
while (FALSE == FALSE) fork();