Common Source Code Project for Qt (a.k.a for FM-7).
Revision | 75a444e210f4f76cb391a4b09e792d0a45694a4e (tree) |
---|---|
Zeit | 2022-11-27 15:25:23 |
Autor | K.Ohta <whatisthis.sowhat@gmai...> |
Commiter | K.Ohta |
[VM][FM16PI] .
@@ -441,11 +441,8 @@ bool VM::process_state(FILEIO* state_fio, bool loading) | ||
441 | 441 | return false; |
442 | 442 | } |
443 | 443 | 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); | |
449 | 446 | |
450 | 447 | if(!state_fio->StateCheckInt32(len)) { |
451 | 448 | if(loading) { |