Создать ответ 
 
Рейтинг темы:
  • Голосов: 0 - Средняя оценка: 0
  • 1
  • 2
  • 3
  • 4
  • 5
DreamShell 4.0.0 RC 1
Автор Сообщение
SWAT Не на форуме
Администратор
*******

Сообщений: 7533
Зарегистрирован: 04.01.2005
Рейтинг: 32
Сказал спасибо: 167
Поблагодарили 1457 раз(а) в 907 сообщ.
Сообщение: #7
RE: DreamShell 4.0.0 RC 1
This problem is due to the lack of the old command sdiso (now it's isoldr) and with some changes.
You need to change the XML file.

Instead of:
PHP код:
<?xml version="1.0" encoding="UTF-8"?>
<app name="The Game" version="1.0" icon="cover.png">
    <resources>
    <module src="../../modules/lua/luaDS.klf" />
    <module src="../../modules/lua/luaKOS.klf" />
    <script type="text/lua" src="./lua/main.lua" />
    <font src="../../fonts/arial.ttf" type="ttf" size="16" name="arial" />
    <image src="./images/bg.jpg" name="back" />
    <image src="./images/play.png" name="play" />
    <image src="./images/exit.png" name="exit" />
    </resources>
    <body x="0" y="0" width="640" height="480" background="back" onload="Icon:InitApp()" onunload="Icon:GoToMainApp()" >
        <input type="button" onclick="DS.dsystem('sdiso /sd/DS/apps/game/game.iso')" normal="play" highlight="play" pressed="play" disabled="play" x="440" y="280" width="200" height="100" name="playbut" />
        <input type="button" onclick="Icon:GoToMainApp()" normal="exit" highlight="exit" pressed="exit" disabled="exit" x="440" y="380" width="200" height="100" name="exitbut" />
    </body>
</app> 

Create new XML. You need to clear main.lua, remove all from this file, now you can do without it, but not remove this file fully, it's need for initialize lua thread for this app, because we use it in onclick event.
PHP код:
<?xml version="1.0" encoding="UTF-8"?>
<app name="The Game" version="1.0" icon="cover.png">
    <resources>
        <module src="../../modules/minilzo.klf" />
        <module src="../../modules/isofs.klf" /> 
        <module src="../../modules/isoldr.klf" />
        <script type="text/lua" src="./lua/main.lua" />
        <font src="../../fonts/ttf/arial_lite.ttf" type="ttf" size="16" name="arial" />
        <image src="./images/bg.jpg" name="back" />
        <image src="./images/play.png" name="play" />
        <image src="./images/exit.png" name="exit" />
    </resources>
    <body x="0" y="0" width="640" height="480" background="back">
        <input type="button" 
                onclick="os.execute(string.format('isoldr -f %s/apps/game/game.iso', os.getenv('PATH')));" 
                normal="play" highlight="play" pressed="play" disabled="play" 
                x="440" y="280" width="200" height="100" name="playbut" />
        <input type="button" 
                onclick="console:app -o -n Main" 
                normal="exit" highlight="exit" pressed="exit" disabled="exit" 
                x="440" y="380" width="200" height="100" name="exitbut" />
    </body>
</app> 

Please forgive me for the lack of backward compatibility, but this DS version is very different from the all Betas.
But this has its advantages, this application will load faster than before old ones Wink

[Изображение: barbers.png]
(Последний раз сообщение было отредактировано 07.02.2012 в 08:08, отредактировал пользователь SWAT.)
07.02.2012 08:03
Вебсайт Найти все сообщения Цитировать это сообщение
Создать ответ 


Сообщения в этой теме
DreamShell 4.0.0 RC 1 - aldair - 03.02.2012, 08:13
RE: DreamShell 4.0.0 RC 1 - SWAT - 03.02.2012, 08:53
RE: DreamShell 4.0.0 RC 1 - SWAT - 04.02.2012, 23:05
RE: DreamShell 4.0.0 RC 1 - SWAT - 07.02.2012 08:03
RE: DreamShell 4.0.0 RC 1 - JnL - 21.02.2012, 14:18
RE: DreamShell 4.0.0 RC 1 - SWAT - 21.02.2012, 17:38
RE: DreamShell 4.0.0 RC 1 - JnL - 22.02.2012, 13:18
RE: DreamShell 4.0.0 RC 1 - JnL - 23.02.2012, 17:19
RE: DreamShell 4.0.0 RC 1 - SWAT - 23.02.2012, 19:38
RE: DreamShell 4.0.0 RC 1 - JnL - 26.02.2012, 15:13
RE: DreamShell 4.0.0 RC 1 - filner - 12.03.2012, 23:17
RE: DreamShell 4.0.0 RC 1 - SWAT - 13.03.2012, 21:12
RE: DreamShell 4.0.0 RC 1 - filner - 14.03.2012, 23:59
RE: DreamShell 4.0.0 RC 1 - SWAT - 15.03.2012, 08:47
RE: DreamShell 4.0.0 RC 1 - filner - 16.03.2012, 00:07
RE: DreamShell 4.0.0 RC 1 - candela - 23.07.2012, 01:00
RE: DreamShell 4.0.0 RC 1 - SWAT - 23.07.2012, 07:53

Похожие темы
Тема: Автор Ответов: Просмотров: Посл. сообщение
  This is Dreamshell in 2026! aldair 0 355 01.02.2026 15:57
Посл. сообщение: aldair
  Now it's compact! / Dreamshell aldair 0 586 22.01.2026 00:48
Посл. сообщение: aldair
  A mini-documentary I made about DreamShell EduardoKmus 1 991 04.01.2026 17:46
Посл. сообщение: fafadou
  Windows CE Games on Dreamshell SD Card aldair 0 863 02.01.2026 17:48
Посл. сообщение: aldair
  Homebrew 100% on Dreamshell/DUX/Dreamcast aldair 3 3718 28.10.2025 14:20
Посл. сообщение: fafadou
  Dreamshell suddenly stopped working DreamBol 2 3625 18.08.2025 18:12
Посл. сообщение: DreamBol
  DreamShell Game Menu Covers GamerGhosts 4 4738 05.08.2025 16:50
Посл. сообщение: GamerGhosts
  MAME4ALL in Dreamshell HDD IDE (Why it does not show the game list ?) Ro Magnus Larsson 3 7160 21.04.2025 05:00
Посл. сообщение: Ro Magnus Larsson
  No apps on desktop - Dreamshell Release 4.0 kikeminchas 2 6381 16.11.2024 06:38
Посл. сообщение: SWAT
  Dreamshell Serial Port SD card problem massouji 0 4734 08.09.2024 22:25
Посл. сообщение: massouji

Переход:


Пользователи просматривают эту тему: