Commit Graph

64 Commits

Author SHA1 Message Date
npwoods
3d553eda60 Attempted to sanitize/rationalize how we access UTF-8 command line arguments (#2532)
Specifically, this creates a call osd_get_command_line() that returns UTF-8 command line arguments as std::vector<std::string>.  On non-Windows platforms, this does nothing more than build the vector.  On Windows, this invokes GetCommandLineW() and CommandLineToArgvW().  This also attempts to unwind usage of wmain()/_tmain() on Windows, which is not standard.

Related to this, this fixes a bug in Imgtool; specifically, non-7 bit ASCII was not being handled correctly in Windows.

This is really an admission that the way that Windows handles Unicode and command line arguments sucks, and it is my belief that having a wmain() or _tmain() declaration specific for Windows is a worse solution.  C'est la vie.

I'm very open to the idea that src/osd/osdcore.[cpp|h] is not the best place to do this.  Let me know if I should move it.
2017-09-18 20:28:53 -04:00
yz70s
5ebe819cce In the windows debugger log window add a Log/Clear menu to remove all logged messages (nw) 2017-07-30 19:09:59 +02:00
Vas Crabb
234e91f9fb Add Lua-cleaning ability to srcclean 2016-08-30 14:57:38 +10:00
Vas Crabb
5cee9e9bc4 POSIX implementation for new directory read features, cleanup of Windows implementation, return directory handle as smart pointer, fix full build [Vas Crabb] 2016-06-25 03:35:23 +10:00
Giuseppe Gorgoglione
58dc78b6eb Introduce dynamic_module
This is a central cross-platform facility to dynamically bind functions from shared libraries.
    Updated all OSD modules to use it.
2016-06-11 20:14:09 +02:00
Miodrag Milanovic
dba7c1ac94 Placed back old output system as module "-output windows" need more things cleaned (nw) 2016-06-05 21:11:56 +02:00
Miodrag Milanovic
59662e6c71 moved osdsync to root of OSD, removed osdmini (nw) 2016-04-15 15:19:24 +02:00
Miodrag Milanovic
39c9c8c5dc Remove os dependant output handling (nw) 2016-04-09 15:19:43 +02:00
Miodrag Milanovic
5e80a732aa move clipboard handling on proper place (nw) 2016-04-03 17:55:10 +02:00
Miodrag Milanovic
9b3788035c scrclean on lua scripts (nw) 2016-03-29 08:49:47 +02:00
Vas Crabb
42fbb9c396 Make osd_file a polymorphic class that's held with smart pointers
Make avi_file a class that's held with smart pointers, encapsulate various AVI I/O structures
Make zip_file and _7z_file classes rather than having free functions everywhere
Hide zip/7z class implementation behind an interface, no longer need to call close() to send back to the cache
Don't dump as much crap in global namespace
Add solaris PTY implementation
Improve variable expansion for SDL OSD - supports ~/$FOO/${BAR} syntax
Rearrange stuff so the same things are in file module for all OSDs
Move file stuff into its own module

7z/zip open and destruct are still not thread-safe due to lack of interlocks around cache access
Directory functions still need to be moved to file module
SDL OSD may not initialise WinSock on Windows
2016-03-14 18:55:00 +11:00
Miodrag Milanovic
5fc2774703 Clang 3.8.0 supports -municode (nw) 2016-03-14 07:55:17 +01:00
Miodrag Milanovic
626a13ae1a Fixing issue compiling on GCC 4.9 till 5.1 (nw) 2016-03-05 14:12:51 +01:00
Brad Hughes
ad6aaa81a9 link ole32 on Windows. Needed for CoInitializeEx() 2016-03-02 16:23:08 -05:00
Miodrag Milanovic
d9510ed04d Used std::thread and std::condition_variable (nw) 2016-03-01 20:52:56 +01:00
Brad Hughes
630edadf9c Dynamically load xinput 2016-03-01 11:08:05 -05:00
Brad Hughes
5cc9973a0a Add XInput support for Windows OSD 2016-02-29 21:48:14 -05:00
Miodrag Milanovic
4224b67779 cleanup (nw) 2016-02-29 08:52:04 +01:00
Brad Hughes
f68ad66131 Merge input modules work. 2016-02-28 14:56:54 -05:00
Brad Hughes
7dfb578559 Refactor OSD input into modules 2016-02-28 14:25:10 -05:00
therealmogminer@gmail.com
9a47a870df First take on render API reorg, nw 2016-02-21 03:03:23 +01:00
dankan1890
97f515d8c4 removed old entries. nw 2016-02-17 11:26:40 +01:00
Miodrag Milanovic
e756a66b14 qtdebugger as separate lib (nw) 2015-12-26 15:56:13 +01:00
Miodrag Milanovic
46471ac080 Can't do override checks due to QT headers (nw) 2015-12-07 06:57:05 +01:00
Miodrag Milanovic
6a765a95ec Added addprojectflags function and added -Wsuggest-override for all that are not 3rdparty projects.
It is place where all additional checks we should put
2015-12-06 17:07:50 +01:00
Scott Stone
31cca9ea63 Added info header at the top of each .lua file (nw) 2015-11-14 12:51:21 -05:00
Miodrag Milanovic
d0a4ae59ad added more h files missing in lua scripts (nw) 2015-11-12 13:33:00 +01:00
Miodrag Milanovic
033227778e Remove not longer needed ForceCpp flag (nw) 2015-11-08 13:44:34 +01:00
Miodrag Milanovic
5deec43cbc update build scripts for rename c - > cpp (nw) 2015-11-08 13:26:29 +01:00
Miodrag Milanovic
ee7ff77255 update build scripts and code change in order to fix compile (nw) 2015-09-13 09:20:24 +02:00
Miodrag Milanovic
a4ea92de24 Update scripts for compile with latest BGFX (nw) 2015-09-12 11:06:14 +02:00
Miodrag Milanovic
fa32ced4ce Fixed VS build (nw) 2015-08-01 10:07:05 +02:00
Cowering
9d0e2427a4 hmm.. new 5.2 mingw seems to need this to pickup sprintf for lto (NW) 2015-07-23 10:46:11 -05:00
Olivier Galibert
511762fa2d Allow compiling with shared libraries [O. Galibert]
Put SHLIB=1 in the main makefile, or on the command line.

The idea is to get a *way* faster link with symbols.  It works at
least on linux, with one annoying caveat: you have to be in the
build/projects/sdl/mame/gmake-linux directory to start mame
afterwards.  We're going to move some things around to be able to use
LD_LIBRARY_PATH or have it start as-is from the root.
2015-05-31 13:25:17 +02:00
Miodrag Milanovic
5ba57c6cde propagate _subtarget in maintargetosdoptions call (nw) 2015-05-21 08:37:59 +02:00
Miodrag Milanovic
ca37d40f69 Removed comments and added generic license for whole team on top (nw) 2015-05-09 16:05:30 +02:00
Miodrag Milanovic
3060bb0637 fix for few more executable files (nw) 2015-04-16 15:26:26 +02:00
Miodrag Milanovic
cc35d05ec0 added SEPARATE_BIN option to put executable files in bin folder and not in main (useful for continuous integration )(nw) 2015-04-08 08:52:02 +02:00
Miodrag Milanovic
abf7d057d2 Supported mingw-clang builds (nw) 2015-04-06 11:58:24 +02:00
Miodrag Milanovic
0f3be0c321 back (nw) 2015-04-05 15:04:46 +02:00
Miodrag Milanovic
2c38dd1f34 rolled back, not worth of it (nw) 2015-04-05 14:22:46 +02:00
Miodrag Milanovic
6e0007b83d Made all windows build use icons (nw) 2015-04-05 12:48:28 +02:00
Miodrag Milanovic
6f0fd1a366 Merge branch 'master' of https://github.com/mamedev/mame 2015-04-04 14:44:22 +02:00
Miodrag Milanovic
1026d09afa Moved creation of most non-layout files out of makefile (nw) 2015-04-04 14:44:06 +02:00
Vas Crabb
73f53bb15e * Take more link dependencies caused by OSD out of genie.lua
* Always dynamically link SDL on Windows
* Fix SDL1 build on Windows
2015-04-04 18:25:04 +11:00
Vas Crabb
4cd434246d Bring back USE_SDL, CYGWIN_BUILD and malloc debugging for Windows OSD 2015-04-04 14:53:47 +11:00
Miodrag Milanovic
86e36b4912 removed includeosd (nw) 2015-04-02 18:04:21 +02:00
Miodrag Milanovic
627b7c61dc Ok shuffling done 2015-04-01 12:02:13 +02:00
Miodrag Milanovic
9207811ed5 fix it properly (nw) 2015-04-01 11:06:53 +02:00
Miodrag Milanovic
ec0553414d MSVC build fix (nw) 2015-04-01 10:27:34 +02:00