Add instructions about when to preload the ROM vs not.

This commit is contained in:
Empathic Qubit 2021-04-30 01:05:55 -04:00
parent fa94206df2
commit 7fed47983d
2 changed files with 12 additions and 0 deletions

View file

@ -10,8 +10,16 @@ local hasThreads =
config.NeatConfig.Threads > 1 config.NeatConfig.Threads > 1
local Runner = nil local Runner = nil
if hasThreads then if hasThreads then
local warn = '========== When using threads, the ROM file to use comes from config.lua. Also, you do not need to start any ROM in the parent process.'
io.stderr:write(warn)
print(warn)
Runner = dofile(base.."/runner-wrapper.lua") Runner = dofile(base.."/runner-wrapper.lua")
else else
local warn = '========== The ROM must already be running when you only have one thread.'
io.stderr:write(warn)
print(warn)
Runner = dofile(base.."/runner.lua") Runner = dofile(base.."/runner.lua")
end end

View file

@ -2,6 +2,10 @@ local base = string.gsub(@@LUA_SCRIPT_FILENAME@@, "(.*[/\\])(.*)", "%1").."/.."
local set_timer_timeout, memory, memory2, gui, input, bit = set_timer_timeout, memory, memory2, gui, input, bit local set_timer_timeout, memory, memory2, gui, input, bit = set_timer_timeout, memory, memory2, gui, input, bit
local warn = '========== The ROM must be running before running this script'
io.stderr:write(warn)
print(warn)
local util = dofile(base.."/util.lua") local util = dofile(base.."/util.lua")
local mem = dofile(base.."/mem.lua") local mem = dofile(base.."/mem.lua")
local spritelist = dofile(base.."/spritelist.lua") local spritelist = dofile(base.."/spritelist.lua")