summaryrefslogtreecommitdiff
path: root/src/i_system.c
AgeCommit message (Collapse)Author
2014-04-30system: Refactor error dialog box.Simon Howard
When showing error message via Zenity, show the expanded (sprintf'ed) error, not the format string. Refactor the sprintf part to be part of the common code to avoid duplication.
2014-04-30system: Escape special characters for Zenity.Simon Howard
When invoking Zenity to display an error message, some characters can have special meanings to the shell. Escape these properly so that the error message is always shown correctly. This fixes #355.
2014-04-29Add native notification box for errors on linux.Willy Barro
Errors will now be shown as a message box, instead of only a console message. This fixes the user not seeing error messages, like if the IWAD is not provided. - Add zenity notification box call on I_Error
2014-04-01Replace all snprintf() calls with M_snprintf().Simon Howard
The Windows API has an _snprintf function that is not the same as Unix's snprintf(): if the string is truncated then no trailing NUL character is appended. This makes the function unsafe. Define a replacement/wrapper called M_snprintf that works the same but always appends a trailing NUL, for safety on Windows and other OSes that behave like this. Do the same thing for vsnprintf(), and update HACKING to list snprintf/vsnprintf as forbidden functions. This fixes #375; thanks to Quasar for pointing out the different behavior of these functions.
2013-08-11Remove Windows CE support.Simon Howard
What support exists is for obsolete devices I no longer possess; I've never been contacted about the port and it's been several years since I even bothered to build a new version. All the extra overrides are clutter that can just be removed. Subversion-branch: /branches/v2-branch Subversion-revision: 2615
2011-10-21Add command line parameter to disable the GUI pop-up window that appearsSimon Howard
when an error occurs (or -timedemo finishes). Subversion-branch: /branches/v2-branch Subversion-revision: 2451
2011-09-11Merge from trunk.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 2365
2011-09-11Don't show error dialog if running from the console on OS X.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2364
2011-06-14Add missing include so that the OS X error window is displayed.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 2349
2011-06-13Merge from trunk.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 2347
2011-05-14Fix display of ENDOOM screen.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2339
2011-03-30On OS X, display a dialog box when exiting with I_Error, like onSimon Howard
Windows. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2317
2011-03-09Add null sector dereference emulation code from Prboom+, to fix desyncSimon Howard
with CLNJ-506.LMP (thanks entryway). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2298
2011-02-12Merge from trunk.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 2258
2010-12-18Add a M_CheckParmWithArgs function, that behaves like M_CheckParm butSimon Howard
also checks that extra options were provided on the command line (thanks Sander van Dijk). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2223
2010-12-10Merge from trunk.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 2214
2010-12-10Fix build problem (thanks Proteh).Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2211
2010-12-10Remove "Error:" from the message displayed by I_Error, to match Vanilla.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2210
2009-07-13Merge from trunk.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1626
2009-07-12On Windows CE, use the Windows API to find the amount of availableSimon Howard
memory, so that at least two megabytes are always left available to the OS. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1619
2009-07-09Merge from trunk.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1610
2009-06-16Automatically allocate a smaller zone size if it was not possible toSimon Howard
allocate the default 16 MiB. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1603
2009-06-10Add key bindings for pause, message refresh.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1586
2009-06-09Merge from trunk.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1579
2009-06-07Exit with an error on failure to allocate zone memory.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1564
2009-06-07Use MessageBoxW instead of MessageBox (doesn't exist on Windows CE)Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1563
2008-12-10Undo previous change.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1417
2008-12-10Set icon before calling TXT_Init, for setup and ENDOOM screens.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1416
2008-11-21Move setup/ into src/ and merge with main codebase. Remove duplicatedSimon Howard
code. Split out I_Endoom to separate i_endoom.c file. Subversion-branch: /branches/raven-branch Subversion-revision: 1384
2008-09-27Split out startup banner code into common code; display copyright noticeSimon Howard
in Heretic. Subversion-branch: /branches/raven-branch Subversion-revision: 1295
2008-09-25Make ENDOOM screen work on Heretic.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1284
2008-09-11Refactor configuration file system to allow configuration file variablesSimon Howard
to be bound in a distributed fashion around the program. Remove dependency of m_config.c on doom/. Subversion-branch: /branches/raven-branch Subversion-revision: 1222
2008-09-08Remove i_system.c dependency on doom/ code and add a generic I_AtExit()Simon Howard
API for scheduling functions to call on quit. Subversion-branch: /branches/raven-branch Subversion-revision: 1216
2008-09-07Move dehacked code to doom/. Split dehacked string replacement code intoSimon Howard
common code and remove dependencies on deh_main.h. Subversion-branch: /branches/raven-branch Subversion-revision: 1210
2008-09-06Remove dependencies of i_video.c on doom/ code.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1205
2008-09-06Remove includes of doomdef.h where possible, move generic parts into topSimon Howard
level. Subversion-branch: /branches/raven-branch Subversion-revision: 1204
2008-07-31Automatically load chex.deh on startup if playing in chex mode.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1165
2008-03-09Split out configuration file code from m_misc.c into m_config.c. MoveSimon Howard
screenshot code into v_video.c Add M_FileLength common function for finding the length of an open file. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1102
2008-02-10Fix compiler warnings. Refactor the intercepts overrun code so that itSimon Howard
should work properly on big endian machines as well as little endian machines. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1074
2008-02-09Fix up the R_Main startup progress dots. If stdout is a file, don'tSimon Howard
display the surrounding box. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1069
2008-02-09Define WIN32_LEAN_AND_MEAN to fix windows build of i_system.c.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1066
2008-02-09Remove some unneeded functions from i_system.c. Make I_Error exit usingSimon Howard
exit() rather than abort(). Display a message box with the error on Windows. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1065
2007-05-31Initial joystick support.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 887
2007-05-24Use I_Sleep in i_system.c instead of SDL_Delay directly.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 884
2007-05-16Add FEATURE_SOUND.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 877
2007-02-14Make I_Error call abort() instead of exit(), so that we can get aSimon Howard
backtrace in the debugger. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 836
2006-12-24Javadoc-style self-documenting system for command line options.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 806
2006-12-24Include "SDL.h", not <SDL.h>, as per http://www.libsdl.org/faq.phpSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 805
2006-11-14Support running as a screensaver under X!Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 750
2006-10-18Strip out CVS logs, RCS Id tags.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 704