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:
5235e1e
)
[FMGEN][OPN][OPNBASE] Force to calculate frequency factors around prescaler when...
author
K.Ohta
<whatisthis.sowhat@gmail.com>
Mon, 25 Jun 2018 14:57:33 +0000
(23:57 +0900)
committer
K.Ohta
<whatisthis.sowhat@gmail.com>
Mon, 25 Jun 2018 14:57:33 +0000
(23:57 +0900)
source/src/vm/fmgen/opna.cpp
patch
|
blob
|
history
diff --git
a/source/src/vm/fmgen/opna.cpp
b/source/src/vm/fmgen/opna.cpp
index
e0a7285
..
c440ee5
100644
(file)
--- a/
source/src/vm/fmgen/opna.cpp
+++ b/
source/src/vm/fmgen/opna.cpp
@@
-214,7
+214,6
@@
void OPNBase::SaveState(void *f)
bool OPNBase::LoadState(void *f)
{
FILEIO *state_fio = (FILEIO *)f;
-
if(state_fio->FgetUint32_BE() != OPN_BASE_STATE_VERSION) {
return false;
}
@@
-229,6
+228,12
@@
bool OPNBase::LoadState(void *f)
status = state_fio->FgetUint32_BE();
interrupt = state_fio->FgetBool();
prescale = state_fio->FgetUint8();
+ {
+ // Make force-restore around prescaler and timers. 20180625 K.O
+ uint bak = prescale;
+ prescale = 10;
+ SetPrescaler(bak);
+ }
if(!chip.LoadState(f)) {
return false;
}