I just hit a problem and tried to find a solution, and I think I have one.
I have a modified default.src in my mods directory, because I use the DDMsgReader instead of the built in. However this means I have to manually update my default.src each time there's a change.
What if all the commands in default.src were includes?
Take this for example
cmdkey R
msg_read
end_cmd
This uses the built in reader, but I changed it to
cmdkey R
exec "?../xtrn/DDMsgReader/DDMsgReader.js -startMode=read"
end_cmd
So now I'm using the DDMsgReader instead.
But what if...
cmdkey R
!include ../text/msg_read.menu
end_cmd
text/msg_read.menu could contain just
msg_read
or it could contain
exec "?../xtrn/DDMsgReader/DDMsgReader.js -startMode=read"
That means I could update default.src any time I wanted and still retain my specific settings.
Now..apply the same !include principal to all the shells, and you only have to change one file for all your shells (wildcat.src wwiv.src etc)
And the good thing is that since baja is compiled, it'll read in the incldes at compile time (at least you'd assume?) so no extra i/o.
Digitalman, does this make sense? If I did the work would it be worth it to commit for everyone to use?
Digitalman, does this make sense? If I did the work would it be worth it to
commit for everyone to use?
Sure, but notice that "all the shells" aren't identical.
I'm not too hip on the ".menu" filenames though. Why not .src or .inc, the existing Baja "standards"?
Digital wrote:
[Snip a load of stuff[
Digitalman, does this make sense? If I did the work would it be worth it to
commit for everyone to use?
Sure, but notice that "all the shells" aren't identical.
I'm not too hip on the ".menu" filenames though. Why not .src or .inc, the existing Baja "standards"?
That's fine. I just used that to make it stand out from something else. I hate to fill exec with .src or .inc files Where would you suggest is the best place for them? Should I name them something like menu_msg_read.inc
or whatever ?
Sysop: | KrAAB |
---|---|
Location: | Donna, TX |
Users: | 4 |
Nodes: | 20 (0 / 20) |
Uptime: | 05:41:07 |
Calls: | 558 |
Calls today: | 3 |
Files: | 2,285 |
Messages: | 46,208 |