49 lines
		
	
	
		
			873 B
		
	
	
	
		
			TOML
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			873 B
		
	
	
	
		
			TOML
		
	
	
	
	
	
| [manifest]
 | |
| version = "1.0.0"
 | |
| dump_lua = true
 | |
| priority = 0
 | |
| 
 | |
| 
 | |
| # Console Stuff:
 | |
| 
 | |
| [[patches]]
 | |
| [patches.pattern]
 | |
| target = "main.lua"
 | |
| pattern = 'require "engine/object"'
 | |
| position = "before"
 | |
| payload = '''
 | |
| do
 | |
|     local logger = require("debugplus.logger")
 | |
|     logger.registerLogHandler()
 | |
| end
 | |
| '''
 | |
| match_indent = true
 | |
| overwrite = true
 | |
| 
 | |
| [[patches]]
 | |
| [patches.pattern]
 | |
| target = "main.lua"
 | |
| pattern = 'G:draw()'
 | |
| position = "after"
 | |
| payload = '''
 | |
| do
 | |
|     local console = require("debugplus.console")
 | |
|     console.doConsoleRender()
 | |
|     timer_checkpoint('DebugPlus Console', 'draw')
 | |
| end
 | |
| '''
 | |
| match_indent = true
 | |
| overwrite = true
 | |
| 
 | |
| [[patches]]
 | |
| [patches.pattern]
 | |
| target = "main.lua"
 | |
| pattern = 'function love.keypressed(key)'
 | |
| position = "after"
 | |
| payload = '''
 | |
| local console = require("debugplus.console")
 | |
| if not console.consoleHandleKey(key) then return end
 | |
| '''
 | |
| match_indent = true
 | |
| overwrite = false
 |