Commit Graph

196 Commits

Author SHA1 Message Date
Adam
c679edbd7f window_launcher: use O_TRUNC correctly 2023-07-21 00:55:47 +01:00
Adam
fb4069c1b0 window_launcher: specify a string length 2023-07-21 00:20:01 +01:00
Adam
d0f11950dc window_launcher: save and load credentials 2023-07-20 23:42:33 +01:00
Adam
9eca7c9c2e browser: make inheritable stuff protected 2023-07-20 22:32:55 +01:00
Adam
cc4b4897d5 main: xdg "if unset or empty" 2023-07-17 10:39:40 +01:00
Adam
d23d7fcc17 window_launcher: clean up hash_path stuff
To make it, like, actually do anything
2023-07-16 17:49:12 +01:00
Adam
29421df38a main: lock lockfile with O_CLOEXEC 2023-07-16 16:59:07 +01:00
Adam
536ad19ec3 various: rework resource handlers
CefResourceRequestHandlers are now per-window using polymorphism.
This allows us to have way more maintainable handlers for specific
internal URLs and per-OS implementations, too.
2023-07-16 05:35:13 +01:00
Adam
609c3203bb browser: impl CefRequestHandler
Don't impl CefResourceRequestHandler, it's not actually needed
2023-07-16 04:03:28 +01:00
Adam
218e39692b common: add InternalFile default constructor 2023-07-16 03:32:29 +01:00
Adam
7cb162ea60 browser/client: move InternalFile into common 2023-07-16 03:16:59 +01:00
Adam
c174143b77 browser: impl CefResourceRequestHandler 2023-07-16 02:26:34 +01:00
Adam
65cefd9d52 browser/client: handle file open failures 2023-07-16 01:58:52 +01:00
Adam
965ff1e196 browser/client: setsid for spawned processes
Read up on setsid and POSIX_SPAWN_SETSID for more info, but this
essentially makes the child process become independent of the host
process, so the launcher can close without the game closing.
2023-07-15 04:38:19 +01:00
Adam
77da6b290b browser/client: fix copy-paste error 2023-07-15 04:37:52 +01:00
Adam
9b7df97c6e main: set a cache dir for CEF 2023-07-15 02:31:46 +01:00
Adam
68e4313233 browser/client: rename 'config' to 'data' 2023-07-14 23:39:16 +01:00
Adam
67f4f757e8 main: use XDG_DATA_HOME instead of config
also rename functions and vars to match
2023-07-14 23:38:35 +01:00
Adam
0908cd6a49 browser/client: load existing hash from data file 2023-07-14 23:30:18 +01:00
Adam
a61e69445d browser/client: launch game successfully 2023-07-14 22:42:24 +01:00
Adam
2dad168f55 browser/client: handle /launch-deb 2023-07-14 05:09:00 +01:00
Adam
50fad55ef1 browser/client: clean up request handler function 2023-07-13 23:15:28 +01:00
Adam
f057c215f8 browser: add IsApp, IsLauncher, HasBrowser + Kind
Needed to refactor some things to make this work without segmentation
faults, including storing browser in OnBrowserCreated
2023-07-13 23:00:40 +01:00
Adam
20f6344abd main,client: lock and store config directory 2023-07-13 02:42:22 +01:00
Adam
fe25ee75f7 main: set X11 error handlers for main process only 2023-07-13 00:47:47 +01:00
Adam
7cca5d0b6f browser/client: lock mutex as needed 2023-07-12 18:59:10 +01:00
Adam
433f745073 browser/client: pass platform arg to index.html 2023-07-12 18:19:13 +01:00
Adam
3447026a9e main: refactor + add wWinMain for windows support 2023-07-12 00:38:35 +01:00
Adam
09c7669782 browser/app: add 'content_url' string 2023-07-10 22:36:35 +01:00
Adam
b92c040a79 browser/app: add 'provider' string 2023-07-10 20:58:00 +01:00
Adam
2501e21065 browser,client: add show_devtools flag
I also had to clean up the mutex situation in Client to prevent
double-locking taking place on the UI thread
2023-07-03 11:14:22 +01:00
Adam
8eece28d2b browser: store is_devtools 2023-07-03 04:23:52 +01:00
Adam
4fe5003712 browser,client: add Details::center_on_open 2023-07-03 02:40:37 +01:00
Adam
3e50d47a1d browser,client: pass popupFeatures to popups 2023-07-03 02:26:30 +01:00
Adam
5f83a3cd40 repo: 5563->5735
Permalinks to CEF branch 5563 are outdated since updating from version
111 to 114, which is branch 5735
2023-07-03 02:04:49 +01:00
Adam
47c3966a48 browser/client: remove OnScheduleMessagePumpWork 2023-07-03 02:02:57 +01:00
Adam
1e9fbf0739 browser/client: rename apps to windows 2023-07-03 02:02:01 +01:00
Adam
1db58eeba0 browser,client: handle closing windows correctly 2023-07-03 02:00:25 +01:00
Adam
4fe296b80a browser: child window handling stuff 2023-07-03 01:01:40 +01:00
Adam
4d63c4e504 browser,client: remove min and max size params 2023-07-03 00:01:29 +01:00
Adam
8b7e139c11 browser: better handling for child windows 2023-07-02 23:59:17 +01:00
Adam
ab1f812d87 browser/client: remove unused ipc messages 2023-07-02 23:57:41 +01:00
Adam
1273b9c3fd browser/app: don't include deleted file 2023-07-02 23:56:18 +01:00
Adam
85bc0eee16 browser/app: remove stuff that doesn't work 2023-07-02 20:28:00 +01:00
Adam
54ad96b34b browser: remove misnamed HasFrame() 2023-07-02 18:35:09 +01:00
Adam
0d408512a7 browser/client: remove old native functions 2023-06-29 23:09:57 +01:00
Adam
0e5a0fab06 main: --disable-web-security arg
Hopefully this won't be needed forever, but for now it's necessary
because some API endpoints (that we don't control) don't have correct
access control settings on them.
2023-06-29 13:58:16 +01:00
Adam
c4a4244176 html, client: move cef/files/ to html/ 2023-06-29 13:50:07 +01:00
Adam
03893ee2c3 browser: simplify window-closing
Closing still doesn't actually work, but this is a good start...
2023-06-26 23:53:46 +01:00
Adam
54d747f8a9 browser/app: remove OnLoadError stuff 2023-06-26 23:53:10 +01:00