summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/devdelegate.h
Commit message (Collapse)AuthorAgeFilesLines
* (nw) So we're back to MSVC blowing up on non-trivial templates. Lovely. Vas Crabb2018-12-301-7/+8
| | | | | | | | Someone needs to get MS QA to put some non-trivial modern C++ compliation tests in the acceptance tests for their C++ compiler. Maybe MAME could even be a candidate. Well, that might be a plan if MS still had any QA. At least this makes some lines shorter (at the cost of needing more lines).
* Start cleaning up palette configuration: Vas Crabb2018-12-291-6/+0
| | | | | | | | | | * Basically, initialisers go in the constructor arguments, and things for setting format go in set_format. * Initialisation patterns can be specified with an enum discriminator or with a FUNC and optionally a tag. * Formats can be specified with an enum discriminator or a size and function pointer. * You must always supply the number of entries when setting the format. * When initislising with a paletter initialisation member, you can specify the entries and indirecte entries together. * The palette_device now has a standard constructor, so use .set_entries if you are specifying entry count with no format/initialisation. * Also killed an overload on delegates that wasn't being useful.
* Allow devcb to be bound to a device/mixin or the target of a device Vas Crabb2018-05-021-28/+38
| | | | | | | | | | finder. This works outside machine configuration context so the workarounds in ATA HLE and MSX slots are no longer necessary. It also allows reduction in tag repetition in machine configuration (see converted osborne1.cpp, zorba.cpp or the more extreme tranz330.cpp). Allow reimagined device instantiation to take a device finder based on current device being configured to reduce repetition (see tranz330.cpp).
* std::function and delegate both require runtime relocations, slowing down ↵ Vas Crabb2018-01-181-4/+3
| | | | startup - just use function pointers; also, most downcast, and get rid of a circular dependency between gamedrv.h and mconfig.h (nw)
* Warning: implicit private inheritance may be hazardous to your build (nw) AJR2018-01-171-1/+1
|
* std::function is too inefficient, use a device delegate instead (nw) AJR2018-01-171-3/+4
|
* Introduce u8/u16/u32/u64/s8/s16/s32/s64 Vas Crabb2016-11-191-4/+4
| | | | | | | | | | | | * New abbreviated types are in osd and util namespaces, and also in global namespace for things that #include "emu.h" * Get rid of import of cstdint types to global namespace (C99 does this anyway) * Remove the cstdint types from everything in emu * Get rid of U64/S64 macros * Fix a bug in dps16 caused by incorrect use of macro * Fix debugcon not checking for "do " prefix case-insensitively * Fix a lot of messed up tabulation * More constexpr * Fix up many __names
* Do not use FUNC in delegate where applicable (nw) Miodrag Milanovic2016-11-061-7/+26
|
* Delegate support for lambdas and std::functions in general, also supporting ↵ Miodrag Milanovic2016-11-051-7/+11
| | | | const members now [Miodrag Milanovic]
* gcc 6.1.1 warning fixes (nw) Olivier Galibert2016-06-161-1/+1
|
* reverting: Miodrag Milanovic2016-01-201-11/+11
| | | | | | | SHA-1: 1f90ceab075c4869298e963bf0a14a0aac2f1caa * tags are now strings (nw) fix start project for custom builds in Visual Studio (nw)
* tags are now strings (nw) Miodrag Milanovic2016-01-161-11/+11
| | | | fix start project for custom builds in Visual Studio (nw)
* Refactoring memory map validity checking AJR2015-12-191-1/+4
|
* cleanup Miodrag Milanovic2015-12-061-4/+4
|
* clang-modernize part 5 Miodrag Milanovic2015-12-041-1/+1
|
* clang-modernize part 1 (nw) Miodrag Milanovic2015-12-031-4/+4
|
* delegate.h now supports mingw 32 bit builds with INTERNAL configuration. couriersud2015-05-311-0/+4
| | | | Member functions are called in this case using __thiscall ABI. [Couriersud]
* Bulk convert files that already had standard BSD license in my name Aaron Giles2013-10-161-31/+2
| | | | to new license tagged form.
* Cleanups and version bumpmame0148 Miodrag Milanovic2013-01-111-1/+1
|
* srcclean (nw) Curt Coder2012-10-071-1/+1
|
* Moved device_delegates into their own files. Employed a Aaron Giles2012-09-261-0/+106
non-templatized helper class so that the code can live co-located, rather than invading device.h. Changed the read/write delegates to derive from device_delegate. Updated the address map macros to create these properly. Removed remnants of the old AM_BASE/SIZE macros from the memory system.