Thomas Bernard
4b4a66d65c
Load_CM5() remove uneeded buffer
2018-03-05 13:55:35 +01:00
Thomas Bernard
524bdfba90
improve Test_CM5()
2018-03-05 13:55:35 +01:00
Thomas Bernard
8a1781df09
Delete_safety_backups() fix memory leaks
2018-03-05 09:22:03 +01:00
Thomas Bernard
f32eacaa01
Make compilers happy, remove warnings...
...
unsigned/signed comparaison in miscfileformat.c
unused argument in readline.c
2018-03-05 09:22:03 +01:00
Thomas Bernard
b98b743d21
Look_for_alternate_ext() fix uninitialized memory access
2018-03-05 09:22:02 +01:00
Thomas Bernard
3870cc8afb
Program_shutdown() free all images, backups, brushes.
2018-03-05 09:22:02 +01:00
Thomas Bernard
37eac890c2
memory leak fix : free the main page on exit
2018-03-05 09:22:02 +01:00
Thomas Bernard
5acf27c1b4
call iconv_close() to free iconv resources
2018-03-05 09:22:02 +01:00
Thomas Bernard
03d0d5e882
Save_XPM() properly add a , after each line
2018-03-02 22:03:15 +01:00
Thomas Bernard
9bd758acdc
Save_XPM(): Save transparency information.
...
As XPM is mainly designed for Icons, that is useful.
2018-03-02 22:03:15 +01:00
Thomas Bernard
999458d047
Save_XPM(): save 1 char per pixel if possible
...
" and \ are not valid characters for XPM pixels
2018-03-02 22:03:15 +01:00
Thomas Bernard
b6c3852aad
Display unicode names in script factory as well
...
So in windows the long filename is shown instead of the short filename
2018-02-23 18:46:28 +01:00
Thomas Bernard
db39392411
Update MSVC project to compile with lua
...
minor changes to remove need for C features unsupported by MS Visual C
2018-02-23 18:46:22 +01:00
Thomas Bernard
c29a52a4b2
WIN32 Cross build now includes lua
2018-02-22 11:26:40 +01:00
Thomas Bernard
8ec19f523b
Easy leakchecks with "make valgrind"
...
result is readable thanks to the suppression file
2018-02-20 17:24:00 +01:00
Thomas Bernard
3a6968c97c
Save_IFF() fix: Remove file after fclose()
2018-02-20 15:45:45 +01:00
Thomas Bernard
854d787e59
io.c: Add Remove_directory() and Remove_path()
...
Also implement WIN32 version of File_length()
2018-02-20 15:45:45 +01:00
Thomas Bernard
60beebc9ac
fixes for MSVC non-standard C library
...
strcase => _stricmp
strncase => _strnicmp
strdup => _strdup
snprintf => _snprintf
a compliant snprintf() is supposed to be available
in MS Visual Studio 2015 and later
2018-02-20 15:45:45 +01:00
Thomas Bernard
87e4cfad94
MSVC fix: no arithmetics on void * pointers
2018-02-20 15:45:45 +01:00
Thomas Bernard
3d4f39fe36
Use Open_file_write() in Save_GPL() Save_PAL() and Save_XPM()
...
They are Text format, correctly handle line endings
according to the type
2018-02-20 15:45:45 +01:00
Thomas Bernard
d1426c61c5
Generate version.c in MSVC project
2018-02-20 15:45:45 +01:00
Thomas Bernard
c24e752ec3
unicode.h: Comment what we support about unicode
2018-02-20 15:45:45 +01:00
Thomas Bernard
519994e005
Add unicoode font files to archives
2018-02-20 15:45:45 +01:00
Thomas Bernard
dc4926b7c0
Fix to compile windows build with MinGW32
2018-02-20 15:45:45 +01:00
Thomas Bernard
3c3ef150a6
improve Test_PPH()
...
remove one TODO :)
2018-02-20 15:45:45 +01:00
Thomas Bernard
be824627ce
loadsave.c: Add functions to open file with alternate extension.
...
Used by CPC format which are in several files :
PPH format uses PPH, ODD, EVE
CM5 uses CM5 + GFX
2018-02-20 15:45:45 +01:00
Thomas Bernard
fda4708756
implement Unicode Copy/Paster for win32
2018-02-20 15:45:45 +01:00
Thomas Bernard
6e6f8ca3f4
Open_popup() fix dropdown outside of the screen
2018-02-20 15:45:45 +01:00
Thomas Bernard
ea7fdb1927
fix Get_full_filename() prototype
2018-02-20 15:45:45 +01:00
Thomas Bernard
ad219c84d2
Make saving of unicode named files work under Win32
...
the "Long" name is converted to short (DOS 8.3) name
as soon as possible.
2018-02-20 15:45:45 +01:00
Thomas Bernard
74818299a3
use Open_file_read()/Open_file_write()
2018-02-20 15:45:45 +01:00
Thomas Bernard
3a0e187d73
loadsave.c: function Remove_file()
2018-02-20 15:45:45 +01:00
Thomas Bernard
3ed5dc5786
loadsave.c: add Open_file_write/Open_file_read() functions
2018-02-20 15:45:45 +01:00
Thomas Bernard
bbdee15990
Filename input in unicode for Win32
2018-02-20 15:45:45 +01:00
Thomas Bernard
c48e881a54
WIN32 versions of io functions
2018-02-20 15:45:45 +01:00
Thomas Bernard
6f48d7fefe
Add MSVC 2010 project file and a make the project compile
2018-02-20 15:45:45 +01:00
Thomas Bernard
ee1ec1a1b0
Load_Unicode_font(): Warning_with_format(), better filename parsing
2018-02-20 15:44:39 +01:00
Thomas Bernard
39c4466db0
use sprintf(xxx,"%s%s...", x, y ..) for string concatenation
2018-02-20 15:44:39 +01:00
Thomas Bernard
339e37663f
readline.c: fix cursor display with unicode characters
2018-02-20 15:44:39 +01:00
Thomas Bernard
2ad59e1686
add Get_font_character_pixel() to get font pixels
2018-02-20 15:44:39 +01:00
Thomas Bernard
144d10b682
Support Unicode Keyboard Input
2018-02-20 15:44:39 +01:00
Thomas Bernard
689aebf264
Unicode support in keyboard editable field for filename
2018-02-20 15:44:39 +01:00
Thomas Bernard
9fb6d650b5
pass unicode name when clicking Load or Save button
2018-02-20 15:44:39 +01:00
Thomas Bernard
2911d61ab1
Load_Unicode_fonts() loads all unicode_XXXX-XXX.png files from skins directory
2018-02-20 15:44:39 +01:00
Thomas Bernard
4a2754321f
update For_each_file() to pass both full path and file name only to the callback
...
All callbacks need to extract the filename anyway, so it simplify the code
2018-02-20 15:44:39 +01:00
Thomas Bernard
a4593da4d4
display unicode filename in menu
2018-02-20 15:44:39 +01:00
Thomas Bernard
de8379aab8
Print_current_directory(): use ELLIPSIS_CHARACTER instead of ...
2018-02-20 15:44:39 +01:00
Thomas Bernard
9a03a54fef
Display the current directory in unicode
...
rename function Print_in_window_utf16() to Print_in_window_unicode()
2018-02-20 15:44:39 +01:00
Thomas Bernard
b882eb9fe4
Print highlighted filename in unicode
...
Print_filename_in_fileselector()
2018-02-20 15:44:39 +01:00
Thomas Bernard
3322529804
Support for unicode names in directory listing
2018-02-20 15:44:39 +01:00