46 Commits

Author SHA1 Message Date
Artur Jarosik
10f11e3359 Update Amiga OS build 2022-10-24 19:18:22 +02:00
Jerome Duval
fd702d31b5 include haiku.h in setup.c
improve haiku_get_app_path()
2021-03-31 12:56:06 +02:00
Thomas Bernard
0fc6aa12f1
simplify Extract_filename() and Extract_path() 2021-01-30 11:00:55 +01:00
Adrien Destugues
951f58445c Fix path detection on Haiku 2021-01-01 11:41:05 +01:00
Adrien Destugues
32ec828835 Group all copyright statements in a single file.
This gives a much clearer overview of the licensing.

It also shows there are some problems:
- Some files are under GPLv3 only
- Some files have no known license at all.
2020-12-19 21:56:33 +00:00
Thomas Bernard
857ae29be8
Directory_create()
remove #include <windows.h> from setup.c
2020-04-12 00:47:15 +02:00
Thomas Bernard
811cb619b6
remove a few #include <windows.h>
also #include <direct.h>
2020-04-11 22:42:33 +02:00
Thomas Bernard
ef703e319a
Get_program_directory(): return "./" when not found 2020-02-06 21:46:11 +01:00
Thomas Bernard
0e538b99f6
FreeBSD: fix Get_program_directory() when launched from the path 2020-02-06 21:46:11 +01:00
Thomas Bernard
b5751ebda8
error check in Get_program_directory() for linux 2019-07-25 00:04:41 +02:00
Thomas BERNARD
9a084bca66
minor fixes for MacOS 2019-07-24 01:59:16 +02:00
Thomas Bernard
cbc6b96639
more debug output in Get_config_directory() and Get_program_directory()
readlink() returns the number of bytes written
2019-05-16 12:38:10 +02:00
Thomas Bernard
05175292a6
several fixes for WIN32
better handle minimize/maximize
http://pulkomandy.tk/projects/GrafX2/ticket/102
2019-05-07 17:25:18 +02:00
Thomas Bernard
79446a9c72
get rid of MAX_PATH_CHARACTERS in T_Page and T_Selector_Settings
strdup() the dynammicaly allocated filename and directory strings
2019-05-07 17:25:17 +02:00
Thomas Bernard
f5cc3a0aba
Remove some static length strings
There are too many MAX_PATH_CHARACTERS length string.
make Initial_directory, Data_directory, Config_directory
dynamically allocated.
2019-05-07 17:04:45 +02:00
Romain Graillot
d36e59ca9c Add Nintendo Switch support (including gitlab-ci, gitlab-pages etc.) 2019-04-28 11:18:23 +02:00
Thomas Bernard
84b4f76102
GP2X: scripts, fonts, etc. are in data/ 2019-02-20 15:29:08 +01:00
Thomas Bernard
5ebb6dc463
fix warning about M_PI and MAX_PATH redefinition 2019-02-20 13:56:01 +01:00
Thomas Bernard
a1849042de
Win32: use \ instead of / in Get_data_directory() 2019-02-15 13:19:38 +01:00
Thomas Bernard
e7bb7c8684
Enable "Set Rel" for directory bookmarks only with portable installation
add a global variable to store if we are in a portable installation
2019-02-10 11:04:13 +01:00
Thomas Bernard
92facef46d Convert comments to UTF-8
most were encoded in Latin1 / CP1252
but a few lines in op_c.c were using IBM437/850 !
2018-06-26 11:37:19 +02:00
Thomas Bernard
d4746ea72e
Fix MacOS file case in include
<corefoundation/corefoundation.h>
should be
<CoreFoundation/CoreFoundation.h>

Many MacOS FS are case insensitives, but not all, so we must use
the correct case.

Issue detected by the MacPorts buildbot : https://trac.macports.org/ticket/56490
2018-05-15 15:33:15 +02:00
Thomas Bernard
91e6796b92 Set_program_directory(): check return value of readlink() 2018-03-20 21:58:22 +01:00
Thomas Bernard
06f49685a8 do not use _mkdir() but plain Win32 CreateDirectoryA() 2018-03-19 16:49:40 +01:00
Thomas Bernard
42a08d0f23 remove some warning when compiling with MinGW32 2018-03-19 16:49:37 +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
031f87ad2c remove "warning: ISO C90 forbids mixed declarations and code" 2017-08-08 18:09:42 +02:00
Adrien Destugues
f80bb320bc Use ~/.config/grafx2 when the XDG_CONFIG_HOME is not set
Follow the freedesktop spec.

Thanks to skrzyp for noting this important detail.
2017-05-08 09:43:47 +02:00
Adrien Destugues
317dc5c667 Move settins to XDG_CONFIG_HOME 2017-05-08 09:32:25 +02:00
Adrien Destugues
9c6f343215 Patch by Thomas Bernard to fix compilation on FreeBSD.
Thanks!

Fixes #50.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2173 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2017-01-03 18:25:35 +00:00
Adrien Destugues
702f1835da Support loading PPH files (Amstrad CPC).
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2162 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2016-07-19 20:28:43 +00:00
Adrien Destugues
34ec1d967a Haiu: add missing / at end of data path.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2127 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-08-16 12:33:01 +00:00
Adrien Destugues
f2797f6648 Fix more things for Haiku port
* Add an icon in the native format
* Add "resource definition" to the executable (including icon and version info)
* Use the proper API to find the share directory.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2126 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-08-16 12:27:21 +00:00
Adrien Destugues
6a225eb4ed Fix Haiku build.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2087 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-02-23 19:33:41 +00:00
Adrien Destugues
61c8dca353 Add a port to the GCW Zero, contributed by David Knight.
Untested since I don't have the hardware.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2080 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-02-10 20:13:57 +00:00
Yves Rizoud
1248100ae9 Integrate path fix from Android port (tnanks a lot Pelya)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2071 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2014-03-30 17:31:05 +00:00
Adrien Destugues
e19026860d Update the URLs in several place to stop pointing to googlecode.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2069 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2014-01-13 12:36:22 +00:00
Yves Rizoud
a630a84822 Removed all usage of __attribute__((unused)), replaced by void cast which is supported both on GCC and VBCC
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1984 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-08-11 16:19:07 +00:00
mazzearos
113d6423b4 src/init.c: bail out if skin_name or font_name is "".
Fixes a crash on AROS

src/filesel.c: fixed BSTR conversion routine for AROS.
Without this fix "RAM DISK" was printed as "AM DISK" in
the file selector.

src/setup.c: removed slash to avoid that paths like
"PROGDIR:/share" are created on AROS. That fix should be right
for all Amiga like OS but I don't want to change things
which I can't test.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1970 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-08-02 09:19:07 +00:00
nokturnal
78e1745ef1 replaced hardcoded lua script and libs paths with defines, Atari build stack adjustments (reduced it's size to 8k)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1800 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-06-15 22:40:43 +00:00
Yves Rizoud
d0aaabf6b2 Merge of r1709 into trunk: Atari Falcon port
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1710 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-02-06 19:30:55 +00:00
masta.uy
0bfc627094 Some minor changes to make it compile on AROS.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1649 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-11-13 20:05:12 +00:00
Yves Rizoud
bd13dd93b1 Integrated the changes by PheeL for Caanoo support
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1629 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-09-29 22:21:25 +00:00
Adrien Destugues
2fb79034ac Build fix for gp2x
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1388 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-03-17 20:39:59 +00:00
Yves Rizoud
54317d94ae Fix issue 326: Program doesn't find data directory on some linux (attempt. Tested ok on Debian)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1380 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-03-11 20:40:25 +00:00
Yves Rizoud
3ca5322379 Reorganized source code and directory tree.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1375 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-03-05 02:53:19 +00:00