Changeset 9246 for code/branches/presentation2012/data/gui
- Timestamp:
- May 24, 2012, 11:43:25 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2012/data/gui/scripts/ShipSelectionMenu.lua
r9208 r9246 6 6 P.shipList = {} 7 7 function P.onLoad() 8 local dircmd = "ls ../levels/templates/ -l| awk '{print $9}' | grep \"spaceship\" | sed -e 's/\\.[a-zA-Z]*$//'" -- go to spaceships folder and generate a list of installed shipmodels.8 local dircmd = "ls -l ../levels/templates/ | awk '{print $9}' | grep \"spaceship\" | sed -e 's/\\.[a-zA-Z]*$//'" -- go to spaceships folder and generate a list of installed shipmodels. 9 9 os.execute(dircmd .. " > ../levels/templates/.shipmodels") --saves output in a textfile 10 10 --[[TODO: program a Windows Version / platform independent version here:
Note: See TracChangeset
for help on using the changeset viewer.