diff options
Diffstat (limited to 'utils/hwstub/tools/hwstub_shell.cpp')
-rw-r--r-- | utils/hwstub/tools/hwstub_shell.cpp | 18 |
1 files changed, 0 insertions, 18 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 |