Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/RandyGaul/C-Hotloading
Example of MSVC makefile project for hotloading C with intellisense/debugger compatability
https://github.com/RandyGaul/C-Hotloading
Last synced: 28 days ago
JSON representation
Example of MSVC makefile project for hotloading C with intellisense/debugger compatability
- Host: GitHub
- URL: https://github.com/RandyGaul/C-Hotloading
- Owner: RandyGaul
- Created: 2016-02-24T00:30:42.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-09-24T00:09:34.000Z (about 2 years ago)
- Last Synced: 2024-11-12T22:34:59.238Z (about 1 month ago)
- Language: C++
- Homepage: https://randygaul.net
- Size: 7.81 KB
- Stars: 107
- Watchers: 10
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- AwesomeCppGameDev - C-Hotloading
README
C Hotloading
============Quick example of compiling a "game's" main loop into a DLL with the ability to reload the DLL at run-time whenever the DLL has changed. A batch file is used to allow compilation while the debugger is attached to the main executable. Idea taken from the Handmade Hero videos + forums.
I've included notes on how to add a hotkey (I used alt + f5) to recompile while running the executable from within Visual Studio, even while the debugger is attached.
Windows only demo. Batch file setup for MSVC 2013 (v12); easily modifiable for other version.
Instructions
------------- Open solution
- f5
- Edit game.cpp
- Alt + f5 (after setting up the hotkey, see notes folder)