Christoph Oelckers
5e1100096e
- work on reverb save menu.
2017-12-03 17:04:10 +01:00
alexey.lysiuk
31b0fdc9fe
Fixed directory creation for POSIX targets
...
Warning was reported by GCC 7 only:
cmdlib.cpp:550:13: warning: ‘info.stat::st_mode’ may be used uninitialized in this function [-Wmaybe-uninitialized]
2017-12-03 14:57:35 +02:00
alexey.lysiuk
5f50d60eff
Restored handling of tmpfileplus() keep argument for POSIX targets
2017-12-03 14:57:35 +02:00
alexey.lysiuk
31d1018b9a
Fixed compilation warnings reported by GCC/Clang
...
b_game.cpp:537:27: warning: more '%' conversions than data arguments [-Wformat]
g_game.cpp:2982:40: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'long' [-Wsign-compare]
2017-12-03 14:57:34 +02:00
alexey.lysiuk
f25c7ef2d5
Unified implementation of ’directory as resource file' for POSIX targets
2017-12-03 14:57:34 +02:00
Christoph Oelckers
bb2a6a4f7c
- fixed mouse handling of the reverb sliders.
2017-12-03 13:06:23 +01:00
Christoph Oelckers
7e45535669
Merge branch 'master' into reverbedit
2017-12-03 12:46:08 +01:00
alexey.lysiuk
8129afdd1f
Fixed compilation of non-Windows targets
...
These are quick hacks to be improved later
2017-12-03 10:11:54 +02:00
Magnus Norddahl
52be9895b7
- Disable softpoly models
2017-12-03 00:23:28 +01:00
Christoph Oelckers
cc54db6e6d
- let the 3 relevant text functions handle UTF-8 strings
...
These functions are: DCanvas::DrawTextCommon, V_BreakLines and FFont::StringWidth.
This will allow strings from UTF-8 encoded assets to display properly, but also handle the OpenAL device name on international systems, as this will be returned as an UTF-8 string.
Due to backwards compatibility needs the decoding function is rather lax to allow both UTF-8 and ISO 8859-1 to pass through correctly - and this also implies that it will allow mixed encodings which may happen if strings from different sources get concatenated.
2017-12-02 21:21:57 +01:00
Christoph Oelckers
7cbcbe66c0
- sanitization of temporary file stuff for Timidity++.
...
* do not use the global temp directory. Instead create one in the AppData folder.
* removed lots of unneeded code from tmpfileplus.
* use C++ strings in there.
2017-12-02 17:33:43 +01:00
Christoph Oelckers
f6f17fbfb4
- give tmpfileplus its own RNG.
...
This should not interfere with the global one which can be explicitly seeded.
It also seems a bit pointless to constantly re-seed the RNG for something this inconsequential.
2017-12-02 17:05:39 +01:00
Christoph Oelckers
e78503b770
- removed some debug stuff from tmpfileplus.
2017-12-02 16:54:24 +01:00
Christoph Oelckers
4ca3acb0e3
- made tmpfileplus a .cpp file so that it can access ZDoom's own utility code.
2017-12-02 16:51:53 +01:00
Christoph Oelckers
8627a48b34
- consolidation of 'stat' calls.
...
Since this is a non-standard function it's better kept to as few places as possible, so now DirEntryExists returns an additional flag to say what type an entry is and is being used nearly everywhere where stat was used, excluding a few low level parts in the POSIX code.
2017-12-02 16:07:09 +01:00
Christoph Oelckers
1afc3b48a1
- removed Q_filelength which is no longer being used.
2017-12-02 14:27:49 +01:00
Christoph Oelckers
7d0759e2fa
- handled all other uses of fopen that could reasonably converted to FileReader or FileWriter.
2017-12-02 14:24:28 +01:00
Christoph Oelckers
4003e7ca11
- use FileReader for savegame loading in the menu.
...
- simplify the check for existing files here, since a function for doing just that already existed.
2017-12-02 14:10:42 +01:00
Christoph Oelckers
2ba029ec8d
- fixed potential memory leak in M_VerifyPNG.
...
If the 'takereader' parameter is true, the function must delete the reader if it fails before creating the PNGHandle.
2017-12-02 14:02:51 +01:00
Christoph Oelckers
690e7d8a84
- got rid of M_WriteFile as well for the same reasons as M_ReadFile.
2017-12-02 13:18:20 +01:00
Christoph Oelckers
838e52001c
- got rid of M_ReadFile(Malloc) which werew each used only once in the entire code. These were still using the low level POSIX-style file interface which shouldn't really be used anymore.
...
- let FScanner::OpenFile return an error instead of throwing an exception. The exception was never used anyway aside from being caught right away to be ignored.
2017-12-02 13:09:59 +01:00
Christoph Oelckers
e15b23f132
- use FileWriter for writing zip files (i.e. savegames.)
2017-12-02 12:46:25 +01:00
Christoph Oelckers
14af7818b8
- use FileReader for all operations on external lumps.
2017-12-02 12:38:38 +01:00
Christoph Oelckers
8d26760671
- use FileWriter for 'writemidi' CCMD.
2017-12-02 12:33:58 +01:00
Christoph Oelckers
1af42b3d50
- use FileWriter for the OPL dumper.
2017-12-02 12:31:21 +01:00
Christoph Oelckers
ebf5c5763e
- removed the unused bitmap loading and saving features from hqnx_asm/hqnx_asm_Image.
2017-12-02 12:15:26 +01:00
Christoph Oelckers
623f35073c
- use FileReader consistently for loading cached nodes.
2017-12-02 12:08:28 +01:00
Christoph Oelckers
37dc3211f7
- use FileReader for reading the play list.
2017-12-02 12:02:36 +01:00
Christoph Oelckers
ab58e4acb0
- use FileWriter for the AST dump.
2017-12-02 12:01:55 +01:00
Christoph Oelckers
5e7dfa7cce
- use FileWriter for the Timidity MIDI dumper
2017-12-02 12:01:19 +01:00
Christoph Oelckers
e8735e2782
- use FileWriter to save the statistics file.
2017-12-02 11:59:31 +01:00
Christoph Oelckers
20b8c1ef70
- moved buildtexture.cpp from using stdio-based file IO to FileReader.
2017-12-02 11:57:32 +01:00
Christoph Oelckers
e1edb46bbb
- - let FWadLump use the newly added fdopen function.
2017-12-02 11:56:26 +01:00
Christoph Oelckers
9cc8bab102
- only have one fopen call in the entire FileReader hierarchy
...
This is for an eventual implementation of UTF-8 handling. On Windows this will require replacement of fopen with _wfopen so let's try to keep the number of fopen calls low.
2017-12-02 11:55:50 +01:00
Christoph Oelckers
cbd2fd34a0
- added seeking capabilities to FileWriter class.
2017-12-02 11:51:37 +01:00
alexey.lysiuk
0d05b41f22
Fixed incomplete ACS string pool state after loading of saved game
...
https://forum.zdoom.org/viewtopic.php?t=58571
2017-12-02 11:51:52 +02:00
Magnus Norddahl
a8b79a28c8
- Disable model rendering in the software renderer
2017-11-29 22:18:21 +01:00
Rachael Alexanderson
6c4f6f94f4
- fixed: prevent i_timescale from freezing the game if set to too low a value
2017-11-29 08:41:09 -05:00
Rachael Alexanderson
12a44f5bc9
- prevent nanosecond timer from ever casting into a double
2017-11-29 07:43:17 -05:00
Magnus Norddahl
8cad912db1
- Add r_model_distance_cull to control when models turn into sprites
2017-11-29 01:09:26 +01:00
Magnus Norddahl
b621dccb9c
- Improve weapon hud model in the software renderer
2017-11-29 00:33:37 +01:00
Magnus Norddahl
f9fb4a0a17
- Cull back facing triangles for the span drawers
2017-11-29 00:12:15 +01:00
Magnus Norddahl
fae514923a
- Move depth testing out of span drawers
2017-11-28 23:08:28 +01:00
Magnus Norddahl
01fd404133
- Fix palette drawer crash
2017-11-28 22:03:51 +01:00
Magnus Norddahl
e0defb060d
- Add a slightly faster truecolor model drawer
2017-11-28 21:38:02 +01:00
Magnus Norddahl
d43ac8b9ae
- Add model rendering to the software renderer
2017-11-27 23:47:26 +01:00
Christoph Oelckers
a069949482
- connected reverb menu with its backing data
...
- added an entry to the main options menu to open the reverb editor.
2017-11-26 20:11:14 +01:00
Christoph Oelckers
57058ef727
- removed all remains of the old EAX editor.
2017-11-26 15:23:07 +01:00
Christoph Oelckers
1ed1b42c21
Safety commit.
2017-11-26 14:13:56 +01:00
Christoph Oelckers
78184ad6b5
- more work on reverb menu.
2017-11-26 10:16:21 +01:00