Nico de Poel
75b9427296
Fixed compatibility issues with Scourge Done Slick:
- Implement Sys_DoubleTime with a clock function that keeps running and doesn't update only once per frame. Fixes infinite loop in Host_ShutdownServer.
- Readded missing "play" and "playvol" console commands.
- Ignore console messages that contain only whitespace.
5 years ago
Nico de Poel
1a5ff9b64b
Send normal logs to Unity again, but for the Update loop collect all logs and flush the contents only once per frame
5 years ago
Nico de Poel
78f42d9c9a
Return result of directory creation, so that the game may handle creation errors
5 years ago
Nico de Poel
754812d63e
Split all of the callback modules' native interop boilerplate code off into separate partial class files, to keep the actual logic code clean and easy to read.
5 years ago
Nico de Poel
e416868650
Modifications to make UniQuake work with a new engine DLL based on QuakeSpasm:
- Extended QuakeParms with additional fields required by QuakeSpasm, and marshal it to a fixed memory block so that the engine can hold on to a reference.
- Increased heap size to 128 MB
- Some minor renaming and refactoring
5 years ago
Nico de Poel
3b4382954a
Some renaming and reorganization
5 years ago
Nico de Poel
276d66434e
Moved time registration to the main UniQuake class
5 years ago
Nico de Poel
fa50659490
Use custom exceptions to stop control flow in the Quake engine on Error and Quit, and shut down the engine. Doesn't work quite as intended yet (Quit will terminate the entire Unity application for some reason, instead of just Quake) but it's a step in the right direction.
5 years ago
Nico de Poel
cb8bb17c63
Replaced native file I/O functions with managed versions implemented in Unity. Worked first try! :D
5 years ago
Nico de Poel
d268e8794a
Declare callback delegates as using Cdecl calling convention, so it's consistent with the rest of the code and also consistent across all platforms.
5 years ago
Nico de Poel
0fafaf32ad
Callback target pointer is now contained within the struct passed to native. Organized yet more code to move generic GCHandle stuff into the base class.
5 years ago
Nico de Poel
c2f4d854e0
Moved all of the callbacks interop code into a separate class with a base class for some common abstractions. Allows for better organization of callbacks as the list grows.
5 years ago