Создать ответ 
 
Рейтинг темы:
  • Голосов: 0 - Средняя оценка: 0
  • 1
  • 2
  • 3
  • 4
  • 5
Help with LUA scripting.
Автор Сообщение
MastaG Не на форуме
Пользователь
**

Сообщений: 87
Зарегистрирован: 13.04.2011
Рейтинг: 0
Сказал спасибо: 31
Поблагодарили 12 раз(а) в 12 сообщ.
Сообщение: #7
RE: Help with LUA scripting.
You're correct about the iso loader, in later versions it seems most games work fine.

Well my goal is to turn on the DC.
It should Download an iso file from a http server and then run the iso loader.

My first goal is to not have it show the DreamShell logo, but actually show what is going on by showing the conole.
I've edited main.c to read:
Код:
setenv("HOST", "DreamShell", 1);
        setenv("OS", getenv("HOST"), 1);
        setenv("USER", getenv("HOST"), 1);
        setenv("ARCH", hardware_sys_mode(&tmpi) == HW_TYPE_SET5 ? "Set5.xx" : "Dreamcast", 1);

        setenv("NET_IPV4", "0.0.0.0", 1);

        setenv("SDL_DEBUG", "0", 1);
        setenv("SDL_VIDEODRIVER", "dcvideo", 1);

        snd_stream_init();
        // Do not play startup audio
        // ds_sfx_play(DS_SFX_STARTUP);

        InitVideoHardware();
        // Do not show bootlogo
        // ShowLogo();

        vmu_draw_string(getenv("HOST"));
        dbglog(DBG_INFO, "Initializing DreamShell Core...\n");

        SetConsoleDebug(1);
        // Show the console
        ShowConsole();

        setenv("HOME", getenv("PATH"), 1);
        setenv("$PATH", getenv("PATH"), 1);
        setenv("LUA_PATH", getenv("PATH"), 1);
        setenv("LUA_CPATH", getenv("PATH"), 1);
        setenv("PWD", fs_getwd(), 1);
        setenv("APP", (settings->app[0] != 0 ? settings->app : "Main"), 1);

Without any edits to startup.lua.

But it hangs now..
09.08.2024 18:40
Найти все сообщения Цитировать это сообщение
Создать ответ 


Сообщения в этой теме
Help with LUA scripting. - MastaG - 07.08.2024, 12:31
RE: Help with LUA scripting. - MastaG - 07.08.2024, 13:09
RE: Help with LUA scripting. - SWAT - 08.08.2024, 05:57
RE: Help with LUA scripting. - MastaG - 08.08.2024, 11:59
RE: Help with LUA scripting. - MastaG - 08.08.2024, 14:23
RE: Help with LUA scripting. - SWAT - 09.08.2024, 06:11
RE: Help with LUA scripting. - MastaG - 09.08.2024 18:40
RE: Help with LUA scripting. - MastaG - 09.08.2024, 19:28
RE: Help with LUA scripting. - MastaG - 09.08.2024, 19:44
RE: Help with LUA scripting. - MastaG - 12.08.2024, 11:56
RE: Help with LUA scripting. - SWAT - 13.08.2024, 06:51

Переход:


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