OSDN Git Service

[VM][MEMORY] Add debug message to load_bios().
authorK.Ohta <whatisthis.sowhat@gmail.com>
Wed, 22 May 2019 13:54:45 +0000 (22:54 +0900)
committerK.Ohta <whatisthis.sowhat@gmail.com>
Wed, 22 May 2019 13:54:45 +0000 (22:54 +0900)
source/src/vm/memory.cpp

index 6f30e6d..656f280 100644 (file)
@@ -455,12 +455,12 @@ int MEMORY::read_bios(const _TCHAR *file_name, uint8_t *buffer, int size)
 {
        FILEIO* fio = new FILEIO();
        int length = 0;
-       
        if(fio->Fopen(create_local_path(file_name), FILEIO_READ_BINARY)) {
                fio->Fread(buffer, size, 1);
                length = fio->Ftell();
                fio->Fclose();
        }
+       out_debug_log("LOADING ROM %s REQ_SIZE=%d PRESENTED_SIZE=%d", create_local_path(file_name), size, length);
        delete fio;
        return length;
 }