Commit Graph

15 Commits

Author SHA1 Message Date
Azamat H. Hackimov
cc7fbd46ed Don't rebuild HogMaker on each commit
Remove configure-time dependency get_git_hash that cause to rebuild whole graph of dependencies (like HOG files).
2024-10-21 18:20:32 +03:00
Bernhard M. Wiedemann
8e31928756 Stop storing mtime in hog files
This allows for reproducible builds.

I could not even find where the timestamp value is used.
Maybe it is write-only-data.
2024-09-25 08:13:19 +02:00
Azamat H. Hackimov
f5e936e939 Move IOOpts.h into main tree
Added bin_read function for reading capabilities. Force checking types to arithmetic (int and float)
2024-06-17 01:55:02 +03:00
GravisZro
1618040db5 Replace "unsigned char" with "uint8_t" 2024-05-23 22:58:46 -04:00
Jeod
bfb3fc1980
Merge pull request #302 from winterheart/hog-tcp-ip 2024-05-08 14:21:13 -04:00
C.W. Betts
c6da74b069
Mark functions and variables as static (#185)
* Begin by marking functions and variables as static when needed.

* More work.

* More work.

* More pokes.

* More work.

* More work.

* Initial work on the netgames.

* Revert changes to the license header on source files.

* clutter.cpp poke.

* One final poke.

* Move some declarations to headers:

Move paged_in_count and paged_in_num to gamesequence.h
Move DoneLightInstance and StartLightInstance to polymodel.h

* Look over the AI script/plug-ins.

* Going over the changes one last time.

* Fix rebase errors.

* More migration from bare statics to static inlines.
2024-05-07 23:35:28 +02:00
Azamat H. Hackimov
d3a2161ceb Extending HogMaker functionality
Add access to private fields and simplify HOG creation. HogFileEntry now contains path to real file that allows change its attributes internally.
2024-05-07 19:13:50 +03:00
Azamat H. Hackimov
bee21a89a1 Add search path functionality to HogMaker
Now HogMaker can be supplied with search paths where it tries to find files.
2024-05-07 12:23:12 +03:00
Ryan C. Gordon
6c8977caf0
Heavy patching for compiler warnings.
The vast majority of this is fixing up `char *` that should be `const char *`
but a handful of other fixes, like potential buffer overflows that GCC
noticed, etc, were applied as well.

This removes `-Wno-write-strings` from CMakeLists.txt, as it is no longer
necessary, as there is no longer a flood of compiler warning spam when
building.

This does not fix all compiler warnings; there are still a handful, and they
are legitimate, but they can be dealt with in a future commit.
2024-04-29 00:18:56 -04:00
Azamat H. Hackimov
79c7749242 Adding version to HogMaker 2024-04-28 22:05:26 +03:00
Azamat H. Hackimov
c3e0102a4f Implementing C++ byteswap functions
Implementing byteswap functions by using "backported" from C++23 std::byteswap.
Adding unittests based on GoogleTests. To enable it add `-DBUILD_TESTING=ON` to cmake.
2024-04-23 21:18:07 +03:00
Thomas Otto
86d9fb8c13 HogMaker: don't modify data when printing it
- Create reserved bytes when constructing HogHeader
- Only byteswap a copy of the data
- Other small cleanups
2024-04-22 21:51:49 +02:00
Azamat H. Hackimov
e8809973b8 Replace vector with array
Arrays has fixed length, that prevents of possibility accidentally expand them.
2024-04-22 03:27:17 +03:00
Azamat H. Hackimov
6352ab21b9 Fix possible heap buffer overflow
Strict size of name of entry with 36 bytes.
Thanks to MaddTheSane for pointing out.
2024-04-22 02:37:42 +03:00
Azamat H. Hackimov
fb0dabc367 Implementing HogMaker replacement of HogUtils
Currently, this tool can make only create HOG from list of files taken from text file (one line per file).
2024-04-21 19:15:23 +03:00