Compare commits
	
		
			No commits in common. "f50fe9e35b7cdcacec6d2f3118a19e379db782ef" and "18a36e169acf323c5f739460cec9c3b3c8deab5e" have entirely different histories.
		
	
	
		
			f50fe9e35b
			...
			18a36e169a
		
	
		
					 4 changed files with 6 additions and 7 deletions
				
			
		
							
								
								
									
										2
									
								
								etc/api
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								etc/api
									
										
									
									
									
								
							|  | @ -1 +1 @@ | |||
| Subproject commit 4dec8003ed89e5a05ee992448747096f72ce718b | ||||
| Subproject commit 30f7203c5fe69e875dbd29a4da9fe0c5ab1ddc9b | ||||
							
								
								
									
										2
									
								
								init.lua
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								init.lua
									
										
									
									
									
								
							|  | @ -1,3 +1,3 @@ | |||
| package.path = 'etc/?.lua;etc/?/init.lua;?.lua;?/init.lua;' .. package.path | ||||
| package.path = 'etc/?.lua;etc/?/init.lua;' .. package.path | ||||
| 
 | ||||
| require 'src.parts.core' | ||||
|  |  | |||
|  | @ -1,4 +1,4 @@ | |||
| local config = require 'config' | ||||
| local config = require 'config' | ||||
| 
 | ||||
| local Core = { | ||||
|   config = config, | ||||
|  | @ -14,9 +14,8 @@ function Core:load(what) | |||
| 
 | ||||
|     print(('Loading %s (%d / %d) %s...'):format(what:sub(0, -2), i, s, v)) | ||||
|     -- Lint | ||||
|     local e, a = pcall(require, 'src.'.. what ..'.'.. v) | ||||
|     print(e, a) | ||||
|     if e then | ||||
|     if pcall(require, 'src.'.. what ..'.'.. v) then | ||||
|       local a=require('src.'.. what ..'.'.. v) | ||||
|       if     what == 'events' then self.api:on(v, a) | ||||
|       elseif what == 'cmds'   then self.cmds[v] = a | ||||
|       elseif what == 'parts'  then a(self) | ||||
|  |  | |||
							
								
								
									
										2
									
								
								start.sh
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								start.sh
									
										
									
									
									
								
							|  | @ -1,3 +1,3 @@ | |||
| #!/bin/sh | ||||
| cd $(dirname $0) | ||||
| luajit init.lua || lua5.3 init.lua | ||||
| lua5.3 init.lua | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue