Embed css and js files in custom builds?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
User avatar
chromo23
Normal user
Posts: 827
Joined: 10 Sep 2020, 16:02
Location: germany

Embed css and js files in custom builds?

#1 Post by chromo23 » 05 Feb 2024, 16:57

What is the right way to do this? I always get lost with defines :shock:
Can it be defined in custom.h?

bidrohini
Normal user
Posts: 105
Joined: 03 Nov 2022, 16:24

Re: Embed css and js files in custom builds?

#2 Post by bidrohini » 26 Feb 2024, 16:30

Convert your CSS and JavaScript files into byte arrays. You can do this manually by converting the contents of each file into a C or C++ array of bytes. Include these byte arrays in your codebase, typically in a separate header file (e.g., custom.h).

User avatar
Ath
Normal user
Posts: 3521
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Embed css and js files in custom builds?

#3 Post by Ath » 26 Feb 2024, 16:34

bidrohini wrote: 26 Feb 2024, 16:30 Convert your CSS and JavaScript files into byte arrays. You can do this manually by converting the contents of each file into a C or C++ array of bytes. Include these byte arrays in your codebase, typically in a separate header file (e.g., custom.h).
Please don't post googled or AI-generated answers, they are wrong by default, and useless 100% of the time. :evil:
/Ton (PayPal.me)

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 36 guests