From: K.Ohta Date: Wed, 22 May 2019 13:54:45 +0000 (+0900) Subject: [VM][MEMORY] Add debug message to load_bios(). X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=638a42b59566c0ae0b801ab590a63c096ccb902f;p=csp-qt%2Fcommon_source_project-fm7.git [VM][MEMORY] Add debug message to load_bios(). --- diff --git a/source/src/vm/memory.cpp b/source/src/vm/memory.cpp index 6f30e6d22..656f280c4 100644 --- a/source/src/vm/memory.cpp +++ b/source/src/vm/memory.cpp @@ -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; }