Add load-rom command
This is not really complete: There are three ROM load modes, this is just one of those.
This commit is contained in:
parent
c51cfe9099
commit
2842b76907
4 changed files with 30 additions and 7 deletions
12
manual.lyx
12
manual.lyx
|
@ -947,11 +947,19 @@ Misc.
|
|||
\end_layout
|
||||
|
||||
\begin_layout Subsubsection
|
||||
reload-rom [<file>]
|
||||
load-rom <file>
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
Reloads the main ROM image from <file>.
|
||||
Loads ROM (format autodetected) from <file>.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Subsubsection
|
||||
reload-rom
|
||||
\end_layout
|
||||
|
||||
\begin_layout Standard
|
||||
Reloads the main ROM image from.
|
||||
\end_layout
|
||||
|
||||
\begin_layout Subsubsection
|
||||
|
|
14
manual.txt
14
manual.txt
|
@ -448,20 +448,24 @@ Enable/Disable sound.
|
|||
|
||||
5.8 Misc.
|
||||
|
||||
5.8.1 reload-rom [<file>]
|
||||
5.8.1 load-rom <file>
|
||||
|
||||
Reloads the main ROM image from <file>.
|
||||
Loads ROM (format autodetected) from <file>.
|
||||
|
||||
5.8.2 +tangent
|
||||
5.8.2 reload-rom
|
||||
|
||||
Reloads the main ROM image from.
|
||||
|
||||
5.8.3 +tangent
|
||||
|
||||
Tangent for recording voice for commentary track. While pressed,
|
||||
record a stream.
|
||||
|
||||
5.8.3 advance-subframe-timeout
|
||||
5.8.4 advance-subframe-timeout
|
||||
|
||||
Subframe advance timeout in milliseconds. Default is 100.
|
||||
|
||||
5.8.4 set-speed <speed>
|
||||
5.8.5 set-speed <speed>
|
||||
|
||||
Set the speed multiplier. <speed> may be positive number (1 is
|
||||
normal speed) or “turbo” for turbo.
|
||||
|
|
|
@ -164,6 +164,10 @@
|
|||
"flushslots", "Flush slotinfo cache",
|
||||
{"":"Flush slotinfo cache"}
|
||||
],
|
||||
"load-rom":[
|
||||
"lrom", "Load specified ROM",
|
||||
{"<file>":"Load <file> as packfile"}
|
||||
],
|
||||
"reload-rom":[
|
||||
"rlrom", "Reload the current ROM",
|
||||
{"":"Reload the currently loaded ROM from disk"}
|
||||
|
|
|
@ -561,6 +561,13 @@ namespace
|
|||
mark_pending_save(args, SAVE_MOVIE, 0);
|
||||
});
|
||||
|
||||
command::fnptr<command::arg_filename> CMD_load_rom(lsnes_cmds, CLOADSAVE::lrom,
|
||||
[](command::arg_filename args) throw(std::bad_alloc, std::runtime_error) {
|
||||
romload_request req;
|
||||
req.packfile = args;
|
||||
load_new_rom(req);
|
||||
});
|
||||
|
||||
command::fnptr<> CMD_reload_rom(lsnes_cmds, CLOADSAVE::rlrom,
|
||||
[]() throw(std::bad_alloc, std::runtime_error) {
|
||||
reload_current_rom();
|
||||
|
|
Loading…
Add table
Reference in a new issue