• R/O
  • HTTP
  • SSH
  • HTTPS

common_source_project-fm7: Commit

Common Source Code Project for Qt (a.k.a for FM-7).


Commit MetaInfo

Revision75a444e210f4f76cb391a4b09e792d0a45694a4e (tree)
Zeit2022-11-27 15:25:23
AutorK.Ohta <whatisthis.sowhat@gmai...>
CommiterK.Ohta

Log Message

[VM][FM16PI] .

Ändern Zusammenfassung

Diff

--- a/source/src/vm/fm16pi/fm16pi.cpp
+++ b/source/src/vm/fm16pi/fm16pi.cpp
@@ -441,11 +441,8 @@ bool VM::process_state(FILEIO* state_fio, bool loading)
441441 return false;
442442 }
443443 for(DEVICE* device = first_device; device; device = device->next_device) {
444- // Note: typeid(foo).name is fixed by recent ABI.Not dec 6.
445- // const char *name = typeid(*device).name();
446- // But, using get_device_name() instead of typeid(foo).name() 20181008 K.O
447- const char *name = device->get_device_name();
448- int len = (int)strlen(name);
444+ const _TCHAR *name = char_to_tchar(typeid(*device).name() + 6); // skip "class "
445+ int len = (int)_tcslen(name);
449446
450447 if(!state_fio->StateCheckInt32(len)) {
451448 if(loading) {
Show on old repository browser