Set config resolution for current project only
Monkey Forums/Monkey Programming/Set config resolution for current project only
| ||
Hi all, sorry if this is obvious, but I can't figure it out. I want to alter the window size for a particular project but all I can find is CONFIG.monkey in Monkey\targets\glfw. Is there a way I can get my project to read it's own config file for glfw instead of altering that master config file? Thx! |
| ||
You should be able to do it in code, I dont bother with the CONFIG.MONKEY file anymore:#GLFW_WINDOW_WIDTH=640 #GLFW_WINDOW_HEIGHT=480 Strict Import mojo Function Main:Int() ... |
| ||
Just add the defines to your project code: [monkeycode] #GLFW_WINDOW_WIDTH=800 #GLFW_WINDOW_HEIGHT=600 [/monkeycode] |
| ||
If I'm not mistaken, the latest version of monkey (v66) allows for conifg settings in either a local config.monkey file or in the code itself (which has priority over the config file). EDIT: see above code. |
| ||
Sweet. Thanks all! I'm going to be using Monkey a lot in the next few months (and hopefully for a long time), so expect some incoming posts! :-) |