e1dbdf5228
speed up make pp from 23 seconds to almost instant
...
this is done by removing all headers from the top of the file using that
awk written by the amazing Jappie3 from the hyprland discord
g++ -E itself was pretty fast but clang-format took a while to format a
52k line file (wonder why), removing std makes the files considerably
smaller and makes the whole operation almost instant
one small issue is currently the script removes every single header
unless it hits something else - not ideal since my own headers will get
wiped too and in the preprocessed output not all macros will be
evaluated (e.g. FOR_EACH from for_each.hpp in config.hpp)
2024-04-24 23:25:15 +02:00
3c4f5ababa
rename make preprocess to make pp
...
thanks for the suggestion krizej
2024-04-24 20:14:35 +02:00
d4d0822eff
simplify make preprocess using clang-format's -i
...
thanks for letting me know krizej I wouldn't have found this myself
2024-04-24 20:09:04 +02:00
2e259e946d
improve make preprocess
...
fun story - I had this exact piece of code without a single changed not
work the prior 2 times, then I changed a bit, a part started working so
I changed it back to this and the 3rd time it somehow works
2024-04-24 20:03:18 +02:00
d2342cad28
src -> $(SRC) in da makefile
2024-04-24 19:53:08 +02:00
cf110103ad
add make preprocess
2024-04-24 19:30:34 +02:00
29d00653eb
minor issue
2024-04-23 16:42:24 +02:00
1f4416aa0a
major formatting change
2024-04-23 16:23:29 +02:00
43f138b7b2
formatting fix
2024-04-21 13:34:18 +02:00
a824c09cee
add initial broken implementations of list macros
2024-04-21 10:41:03 +02:00
becc44a098
add separated list with a prefix
2024-04-21 10:40:43 +02:00
019d55afd2
whoops forgot about that
2024-04-21 10:40:07 +02:00
05ce1f309b
put timingPoints and hitObjects into sections
2024-04-21 10:39:43 +02:00
3d847e9da2
amazing
2024-04-20 14:11:53 +02:00
79441b46fd
update beatmap option and help text
2024-04-20 14:08:55 +02:00
8d7b193cf6
remove newline in struct output stream op
2024-04-20 13:41:03 +02:00
c5491dbc9f
refactor a huge part of the code
...
this allows for creating only input and output streams and allows me to
finally print out the generated config struct
2024-04-20 13:37:06 +02:00
82929e16bf
add util stream ops and print difficulty on -p
2024-04-20 12:08:55 +02:00
810f81370a
remove one unnecessary header from osuparser
2024-04-19 14:52:55 +02:00
512bbeac51
remove unnecessary undefs in config
2024-04-19 10:15:57 +02:00
a8ae6b931e
add prefixed vars and fix format version parsing
2024-04-19 10:14:45 +02:00
9b5e643c42
silence warnings by initializing all HitObject fields
2024-04-19 09:44:11 +02:00
8c401c785b
generate the parse function in the header from macros
2024-04-19 09:39:57 +02:00
f4490f2c6c
push entire parse function into CONFIG macro
2024-04-19 09:31:32 +02:00
0e05eee14a
make trimString more readable
2024-04-18 22:59:40 +02:00
04adf4b42c
fix parsing when there's no space after the colon
2024-04-18 22:53:34 +02:00
3fb74a4f09
add break to enum stream op (smartest c++ dev)
2024-04-18 22:32:01 +02:00
9cfc1da940
add nix build instructions to readme
2024-04-18 22:10:12 +02:00
cf05e5787a
make nix build/run work by adding installPhase
2024-04-18 22:08:44 +02:00
8c86ee649c
placeholders in list parsing parts to make it compile
2024-04-18 21:09:22 +02:00
f2f9e9211c
fix my stupidity (opposite way stream ops)
2024-04-18 20:56:18 +02:00
d77de45c84
define struct stream ops to nothing
2024-04-18 20:45:04 +02:00
1d506e50e9
undef struct stream ops for a second time
2024-04-18 20:42:57 +02:00
35e53c239d
undef stream op macros
2024-04-18 20:41:40 +02:00
af4a1bacf2
add back struct and enum defines into osuparser.cpp
2024-04-18 20:34:54 +02:00
48a9905449
why was this here
2024-04-18 20:33:29 +02:00
9af4bc02e1
Revert "remove another macro"
...
This reverts commit 00e4f89cc1
.
2024-04-18 20:30:10 +02:00
00e4f89cc1
remove another macro
2024-04-18 20:29:33 +02:00
c1463fabbc
remove more type macros
2024-04-18 20:29:06 +02:00
fb653b492e
and remove the use of those macros
2024-04-18 20:26:33 +02:00
8988065395
remove redundant type macros
2024-04-18 20:24:38 +02:00
1e7b355480
and fix the rest of lists
2024-04-18 20:18:57 +02:00
a3efb3f9d7
fix removed type macro
2024-04-18 20:17:54 +02:00
f6784c2848
get rid of VAR_BITS
...
I hate this stupid fucking thing you can't print them normally
2024-04-18 20:16:01 +02:00
7d34861da8
a LOT of things (read description)
...
I might not list everything in this commit but:
- fix struct stream operators while making them a bit less convenient
- refactor some stuff around like the FOR_EACH macros
- fix 2/3 minor bugs I stumbled upon when actually trying to compile
2024-04-18 20:11:33 +02:00
19910fa8bc
refactor shell out into nix/ and add nix package
2024-04-18 17:46:50 +02:00
8f574a8d39
format flake with alejandra
2024-04-18 17:19:37 +02:00
5c01e7157f
update game name in readme
2024-04-18 17:14:54 +02:00
c959fe1c31
fix the default value for enums (we're so back)
2024-04-18 17:11:10 +02:00
559e0a27ca
move list var macros to the others
2024-03-19 19:47:06 +01:00