summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/lib/osdlib.h
Commit message (Collapse)AuthorAgeFilesLines
* osdlib.h: Add missing #include AJR2023-05-061-0/+1
|
* Miscellaneous improvements: Vas Crabb2023-04-141-14/+14
| | | | | | | | | | | | | | infoxml.cpp: Thread device processing. Gives about a 10% speed improvement overall, and avoids the need to mess with the locale of the ultimate output stream. debugger/win/consolewininfo.cpp: Show image mount/create error messages on the console. emu/devdelegate.h, util/delegate.h: Added deduction guides for common delegate creation patterns (only used in sega/segas16a.cpp so far). More noexcept on things that have no business throwing exceptions.
* Patched up some gaps in functionality and fixed some bugs. Vas Crabb2022-09-021-7/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ui: Added some missing functionality: * Added an option to copy input device IDs to the relevant menus. * Added an item for setting the software lists files path (-hashpath) to the folder setup menu. * Allow pasting text from clipboard in most places that allow typing (searching, entering filenames, entering barcodes). * Changed the software selection menu heading to be a bit less misleading. * Made barcode menu less eager to rebuild itself unnecessarily, and removed some confusing and apparently pointless code. Exposed more Lua bindings: * Added low-level palette objects. * Added indexed bitmap types. * Added a bitmap method for extracting pixels from a rectangular area as a packed binary string. * Changed screen device pixels method to return width and height in addition to the pixels. osd: Added some functionality and cleaned up a little: * Added a function for copying text to the clipboard. * Moved function for converting Windows error codes to standard error conditions to winutil.cpp so it can be used from more places. * Removed duplicate declaration of osd_get_clipboard_text and made the function noexcept (including fixing implementations). * Made macOS implementation of osd_get_clipboard_text skip the encoding conversion if it finds UTF-8 text first. * Changed the default -uimodekey setting so it doesn't lose the "not shift" that stops the default from interfering with UI paste. Various bug fixes: * util/unicode.cpp: Fixed the version of utf8_from_uchar that returns std::string blowing up on invalid codepoints. * util/bitmap.h: Fixed wrapping constructors for indexed bitmaps taking the wrong parameter type (nothing was using them before). * util/bitmap.cpp: Fixed potential use-after-free issues with bitmap palettes. * emu/input.cpp, emu/inputdev.cpp: Log 1-based device numbers, matching what's shown in the internal UI and used in tokens in CFG files. * emu/emumem.cpp: Added the bank tag to a fatal error message where it was missing. docs: Reworked and expanded documentation on configuring stable controller IDs. For translators, the changes are quite minor: * There's a menu item for copying a device ID to the clipboard, and associated success/failure messages. * There's the menu item for setting the software list file search path. * One of the lines in the software selection menu heading has changes as it could be interpreted as implying it showed a software list name.
* Removed extra semicolons after function bodies in remaining headers. (#9277) 0kmg2022-02-071-1/+1
|
* Remove OSD_UWP from rest of code Miodrag Milanovic2021-10-261-11/+0
|
* Bug fixes and usablility enhancements: Vas Crabb2021-01-291-6/+8
| | | | | | * Declare intent when requesting virtual memory (for NetBSD, 7712) * Improve scrolling behaviour in Qt debugger (MT07795) * Added prompts to input mapping menu to make it less intimidating
* cpu: Allow recompilers to work with W^X policy Vas Crabb2021-01-061-2/+86
|
* srcclean (nw) Vas Crabb2019-09-221-1/+1
|
* Changed osd_get_clipboard_text() to return std::string (#5615) npwoods2019-09-111-7/+2
| | | | | | | | | | * Changed osd_get_clipboard_text() to return std::string This change has only been tested on Windows. The Un*x/Mac versions were made blindly; they might not even build. This needs to be checked prior to merging. * Fixing Mac OS X build (hopefully)
* Discord plugin try 2 (#3640) cracyc2018-06-081-1/+0
| | | | | | | | | | | * plugins/discord: discord presence plugin [Carl] * plugins/discord: use domain sockets and pipes [Carl] * winptty: fix connecting to existing socket (nw) plugins/discord: show pause state (nw) * plugins/discord: fix pause behavior (nw)
* Update name of DYNAMIC_API macros (nw) Brad Hughes2016-12-011-9/+9
|
* Simpler low-cost implementation making modules and function pointers class ↵ Brad Hughes2016-11-211-34/+14
| | | | members instead (nw)
* Fix compile issue by using std::ref wrapper (nw) Brad Hughes2016-11-201-1/+1
|
* Changing singleton to be thread safe (nw) Brad Hughes2016-11-201-4/+12
|
* fix gcc compile issue (nw) Brad Hughes2016-11-201-3/+3
|
* Created DYNAMIC_API macros for cleaner definition of dynamically linked ↵ Brad Hughes2016-11-201-0/+38
| | | | functions
* No need for osd_malloc, osd_malloc_array and osd_free (nw) Miodrag Milanovic2016-11-111-4/+1
| | | | MALLOC_DEBUG not applicable anymore since we use new to allocate in 99.9% of cases
* Cleanup and version bumpmame0175 Miodrag Milanovic2016-06-291-1/+0
|
* Introduce dynamic_module Giuseppe Gorgoglione2016-06-111-1/+45
| | | | | This is a central cross-platform facility to dynamically bind functions from shared libraries. Updated all OSD modules to use it.
* moved osdsync to root of OSD, removed osdmini (nw) Miodrag Milanovic2016-04-151-13/+0
|
* move clipboard handling on proper place (nw) Miodrag Milanovic2016-04-031-0/+10
|
* did license settings for OG and Andrew, cleared up OSD part for licenses (nw) Miodrag Milanovic2015-05-091-5/+2
|
* Added license headers to the rest of files (nw) Miodrag Milanovic2015-05-071-0/+2
|
* Promote osd_getenv from osdlib.h to osdcore.h. Change return type to couriersud2015-01-271-13/+0
| | | "const char*". Fixes netlist compile.
* - Moved OS specific low level code to osd/modules/lib. couriersud2015-01-091-0/+78
- Removed duplicate code - Should support LIB/BASELIB separation better going forward