OSDN Git Service
(root)
/
csp-qt
/
common_source_project-fm7.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3015504
)
[VM][MEMORY] Add debug message to load_bios().
author
K.Ohta
<whatisthis.sowhat@gmail.com>
Wed, 22 May 2019 13:54:45 +0000
(22:54 +0900)
committer
K.Ohta
<whatisthis.sowhat@gmail.com>
Wed, 22 May 2019 13:54:45 +0000
(22:54 +0900)
source/src/vm/memory.cpp
patch
|
blob
|
history
diff --git
a/source/src/vm/memory.cpp
b/source/src/vm/memory.cpp
index
6f30e6d
..
656f280
100644
(file)
--- 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;
}