Sorry, I think I misunderstood your first point.
https://github.com/emscripten-core/emscripten/issues/6434
https://emscripten.org/docs/api_reference/module.html#Module.arguments
You could affect the programs execution with Module["arguments"].push()
before. But now it was replaced by `arguments_` so basically in a --post-js
or in your C/CPP source file, you could do something like :
EM_ASM({
arguments_.push("Insert argv[1] here")
})
Then you could access it in an array with `arguments_`
Hope it helps,
Regards,
On Fri, Nov 8, 2019 at 7:28 PM Mehdi Sabwat <[email protected]> wrote:
> Hi,
>
> I am linking the documentation,
>
> * https://emscripten.org/docs/getting_started/Tutorial.html
>
> * https://emscripten.org/docs/compiling/Running-html-files-with-emrun.html
>
> Hope it helps,
>
> Regards,
> On Fri, Nov 8, 2019 at 7:20 PM Joel Longanecker <
> [email protected]> wrote:
>
>> Hello emscripten users!
>>
>> I am planning on building a tool for doing homebrew gameboy development
>> in the web browser. I am hoping to be able to get a compiler and an
>> emulator working to do live reload when a user changes a file, and a bunch
>> of other neat stuff.
>>
>> Anyways, I feel like the first big thing I need to be able to do is port
>> RGBDS or GBDK over to web assembly.
>>
>> https://github.com/rednex/rgbds
>>
>> https://sourceforge.net/projects/gbdk/files/gbdk/2.96/
>>
>> This is mostly straight up C, nothing too tricky, no fancy libraries or
>> flags. It might take me a bit to make these forks work nicely, but I am
>> more concerned how to invoke them and use them from the browser.
>>
>> * How do I invoke these tools so I can pass them command line arguments?
>>
>> * How do I read from stderr / stdout?
>>
>> Thanks
>>
>> -Joel
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "emscripten-discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/emscripten-discuss/c1bb797a-a874-4441-bdf7-bea0002a9308%40googlegroups.com
>> <https://groups.google.com/d/msgid/emscripten-discuss/c1bb797a-a874-4441-bdf7-bea0002a9308%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
--
You received this message because you are subscribed to the Google Groups
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/emscripten-discuss/CANLCaymAsZ%3DZh1PPBVr-1LMymV8SX_Skc9Smpy8yMOVE98%3D3cA%40mail.gmail.com.