Commit graph

18147 commits

Author SHA1 Message Date
Joris Dauphin
31da98aba2
Merge pull request #449 from Wargus/filesystem
Use more `fs::path`
2023-08-04 18:48:53 +02:00
Jarod42
aac47413a0 Move #include <filesystem> in its own file to be consistent with experimental support...
Use `fs::` instead of `std::filesystem`
2023-08-04 18:06:53 +02:00
Jarod42
994e9265fc Use fs::path for paths instead of std::string or char[MAX_PATH]. 2023-08-04 15:29:01 +02:00
Jarod42
f6be62ce8a Fix for UNICODE. 2023-08-03 20:37:50 +02:00
Tim Felgentreff
6187be22ce
Build appimages on CentOS7 2023-08-03 15:11:46 +02:00
Tim Felgentreff
fb2638bc6f
Merge pull request #446 from Jarod42/nullptr
Use `nullptr` instead of `NULL`.
2023-08-01 15:27:59 +02:00
Jarod42
390b143f3d Use nullptr instead of NULL. 2023-08-01 14:13:01 +02:00
Tim Felgentreff
8720f1fbb0
Merge pull request #435 from shinra-electric/mac-use-application-support
Requires Testing - [macOS] Use the Application Support folder for game data
2023-03-14 13:50:10 +01:00
shinra-electric
9b0c04dee3
Use Application Support folder for Mac
Stratagus currently puts data files in `~/Library/`, but it should use `~/Library/Application\ Support/`
2023-03-08 22:38:50 +01:00
shinra-electric
38c3b78bb5
Use the Application Support folder on Mac
Stratagus currently puts data files in `~/Library/`, but it should use `~/Library/Application\ Support/`
2023-03-08 22:37:16 +01:00
Tim Felgentreff
064c23c609
Update README.md 2023-03-01 20:41:27 +01:00
Tim Felgentreff
4c23bcd825
Merge pull request #434 from andreas-volz/master
fix a undefined behaviour for std::string and nullptr access
2023-03-01 20:08:53 +01:00
Andreas Volz
036a8395bb fix a undefined behaviour for std::string and nullptr access 2023-03-01 09:31:03 +01:00
Tim Felgentreff
b2680af967
Merge pull request #433 from shinra-electric/silence-warning-1
Silence warnings: Change a logical || to a bitwise |
2023-02-27 14:48:25 +01:00
shinra-electric
c814f57c25
Use ternary operator instead of |
as suggested

Co-authored-by: Tim Felgentreff <timfelgentreff@gmail.com>
2023-02-26 09:36:25 +01:00
shinra-electric
c4d32332a4
Change a logical || to a bitwise |
Silences the following compiler warning. Was previously being called 33 times: 
```
warning: use of logical '||' with constant operand [-Wconstant-logical-operand]
        int max = selectMax || INT_MAX;
                            ^  ~~~~~~~
note: use '|' for a bitwise operation
```
2023-02-25 09:08:10 +01:00
Tim Felgentreff
52b6bea530
XDG_CONFIG_DIR should be XDG_CONFIG_HOME 2023-02-24 23:15:06 +01:00
Tim Felgentreff
63ccee588b
XDG_DATA_DIR should be XDG_DATA_HOME 2023-02-24 23:14:35 +01:00
Tim Felgentreff
df1775cbf5
Keep appimages as artifacts 2023-02-24 22:55:26 +01:00
Tim Felgentreff
cd6c45aa2c
Merge pull request #427 from Wargus/tim/appimages
Build appimages of wargus and war1gus on push to master
2023-02-24 22:33:57 +01:00
Tim Felgentreff
cc9c9ee297
Update stratagus-game-launcher.h 2023-02-24 22:26:55 +01:00
Tim Felgentreff
3ebc91295c
Merge pull request #428 from nE0sIghT/bugfix/russian
video: font: fixed glyph last pointer calculation
2023-01-22 16:42:52 +01:00
Yuri Konotopov
d9085c742d
video: font: fixed glyph last pointer calculation
After applying fix for russian translation [1] I found that some letters
were missing from words, however they are presented in translation strings.
Debugging this issue I found that `CFont::CharWidth` have no data for those
letters.

I added printf() here and the cycle was stopped at y=196 (russian letter
`ф`), so all letters including `ф` were ignored.

Comparing gp with surface size I found, that gp is calculated as first
pointer of same columnt glyph in next row. This is ok for all rows except
last as well as for all fonts that not using upper codepoints.

So let's recalculate gp as last pointer of current glyph so all glyphs will
be used in width measurement.

[1] https://github.com/Wargus/wargus/pull/436
2023-01-22 15:49:14 +04:00
Tim Felgentreff
6a4a19570e only deploy on master pushes 2023-01-15 08:38:39 +01:00
Tim Felgentreff
d7f557c730 upload appimages to the respective games 2023-01-15 08:37:37 +01:00
Tim Felgentreff
c7ede9f211 warn when there's no ffmpeg 2023-01-15 08:06:59 +01:00
Tim Felgentreff
9c0f93b82b build war1gus images, too 2023-01-15 08:04:01 +01:00
Tim Felgentreff
a9c3f4722e don't require xterm, try to make innoextract go in the right folder 2023-01-15 07:58:05 +01:00
Tim Felgentreff
93acd4ed0d fix 2023-01-14 22:41:21 +01:00
Tim Felgentreff
efd60ef5e9 only wrgus 2023-01-14 21:55:23 +01:00
Tim Felgentreff
3d0b7428c0 build appimage in-script 2023-01-14 21:49:46 +01:00
Tim Felgentreff
dfbbc40f7c install squashfstools 2023-01-14 21:23:34 +01:00
Tim Felgentreff
c7ee37479b try fix yml 2023-01-14 21:09:33 +01:00
Tim Felgentreff
961e4624e6 update build script 2023-01-14 20:11:05 +01:00
Tim Felgentreff
f3d371b538 update buildscript 2023-01-14 17:37:36 +01:00
Tim Felgentreff
7eb39f25b6 fix buildscript 2023-01-14 16:55:23 +01:00
Tim Felgentreff
231fac8231 update workflow file 2023-01-14 13:16:01 +01:00
Tim Felgentreff
01837c6f52 update workflow 2023-01-14 09:23:28 +01:00
Tim Felgentreff
93b38852b0 update workflow 2023-01-14 09:22:22 +01:00
Tim Felgentreff
c9003dd867 add github action to build appimage 2023-01-14 09:18:29 +01:00
Tim Felgentreff
f82a0ecb69 add appimage builder script 2023-01-14 08:58:10 +01:00
Tim Felgentreff
1c5794d6a3 use XDG_DATA/CONFIG_DIRs for data and config 2023-01-14 08:40:00 +01:00
Tim Felgentreff
d701d7a43b
Merge pull request #426 from Wargus/tim/402-undefined-behaviour
Fix undefined behaviour
2023-01-10 19:56:43 +01:00
Tim Felgentreff
6e69241528 avoid undefined behaviour. fix #402 2023-01-10 17:44:34 +01:00
Tim Felgentreff
33a8211a69 a little docs on astar debugging 2023-01-10 17:01:52 +01:00
Tim Felgentreff
e5ca6aa17f clarify expected bit width of our sync rand numbers 2023-01-07 16:44:59 +01:00
Tim Felgentreff
f5205b201f only print 'play sample' when we are actually going to 2023-01-07 16:42:05 +01:00
Tim Felgentreff
bb46155328 do not load samples when sound is disabled 2023-01-07 16:39:58 +01:00
Tim Felgentreff
b2e3b3b8ac expose button methods in parent class 2023-01-07 08:31:32 +01:00
Tim Felgentreff
358c1ef3f3 fix another error message, and stratagus launching with argv0 2023-01-05 12:50:34 +01:00