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

Сообщений: 7585
Зарегистрирован: 04.01.2005
Рейтинг: 33
Сказал спасибо: 169
Поблагодарили 1487 раз(а) в 933 сообщ.
Сообщение: #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

Похожие темы
Тема: Автор Ответов: Просмотров: Посл. сообщение
  Is this 2.5 IDE to SD adapter compatible with dreamshell? Imito 5 3253 07.04.2026 21:04
Посл. сообщение: ands
  Dreamshell is approaching 100%! aldair 0 1559 15.03.2026 19:14
Посл. сообщение: aldair
  This is evolution in Dreamshell! aldair 0 1560 11.03.2026 05:33
Посл. сообщение: aldair
  This is Dreamshell in 2026! aldair 0 2022 01.02.2026 15:57
Посл. сообщение: aldair
  Now it's compact! / Dreamshell aldair 0 2043 22.01.2026 00:48
Посл. сообщение: aldair
  A mini-documentary I made about DreamShell EduardoKmus 1 2827 04.01.2026 17:46
Посл. сообщение: fafadou
  Windows CE Games on Dreamshell SD Card aldair 0 2338 02.01.2026 17:48
Посл. сообщение: aldair
  Homebrew 100% on Dreamshell/DUX/Dreamcast aldair 3 6943 28.10.2025 14:20
Посл. сообщение: fafadou
  Dreamshell suddenly stopped working DreamBol 2 5921 18.08.2025 18:12
Посл. сообщение: DreamBol
  DreamShell Game Menu Covers GamerGhosts 4 7822 05.08.2025 16:50
Посл. сообщение: GamerGhosts

Переход:


Пользователи просматривают эту тему: 1 Гость(ей)