diff options
Diffstat (limited to 'utils/hwstub/tools')
-rw-r--r-- | utils/hwstub/tools/hwstub_shell.cpp | 18 | ||||
-rw-r--r-- | utils/hwstub/tools/lua/load.lua | 3 |
2 files changed, 2 insertions, 19 deletions
diff --git a/utils/hwstub/tools/hwstub_shell.cpp b/utils/hwstub/tools/hwstub_shell.cpp index 1e77e511ba..d70fd6dc06 100644 --- a/utils/hwstub/tools/hwstub_shell.cpp +++ b/utils/hwstub/tools/hwstub_shell.cpp | |||
@@ -826,24 +826,6 @@ int main(int argc, char **argv) | |||
826 | goto Lerr; | 826 | goto Lerr; |
827 | } | 827 | } |
828 | } | 828 | } |
829 | |||
830 | // dump ROM | ||
831 | if(!g_quiet) | ||
832 | { | ||
833 | void *rom = malloc(64 * 1024); | ||
834 | ret = hwstub_rw_mem(&g_hwdev, 1, 0xc0000000, rom, 64 * 1024); | ||
835 | if(ret != 64 * 1024) | ||
836 | { | ||
837 | printf("Cannot read ROM: %d\n", ret); | ||
838 | goto Lerr; | ||
839 | } | ||
840 | |||
841 | printf("ROM successfully read!\n"); | ||
842 | FILE *f = fopen("rom.bin", "wb"); | ||
843 | fwrite(rom, 64 * 1024, 1, f); | ||
844 | fclose(f); | ||
845 | } | ||
846 | |||
847 | /** Init lua */ | 829 | /** Init lua */ |
848 | 830 | ||
849 | // create lua state | 831 | // create lua state |
diff --git a/utils/hwstub/tools/lua/load.lua b/utils/hwstub/tools/lua/load.lua index 24c0f6b619..2875b74f1a 100644 --- a/utils/hwstub/tools/lua/load.lua +++ b/utils/hwstub/tools/lua/load.lua | |||
@@ -3,4 +3,5 @@ package.path = string.sub(string.gsub(debug.getinfo(1).source, "load.lua", "?.lu | |||
3 | if hwstub.dev.target.id == hwstub.dev.target.STMP then | 3 | if hwstub.dev.target.id == hwstub.dev.target.STMP then |
4 | require "stmp" | 4 | require "stmp" |
5 | end | 5 | end |
6 | require "dumper" \ No newline at end of file | 6 | |
7 | require "dumper" | ||