Posted 08 November 2013 - 10:57 PM
I have done some Googling on this (to avoid a recent mistake I made lol) and I couldn't find anything.
I have a specific program that I would like to work with peripheral mods like openperipheral, miscperipheral, Immibis's Peripherals, etc. Some of them have specific functions that I would like to call, but if the user of my program doesn't have that mod, it would crash when that is called.
I probably could do a test thing like this (from the top of my head). But if I can't, or the correct way is really complicated then I think something to test if that mod is there would be useful.
I'm hesitant to actually post this just in case that code is correct, I hate to waste people's time. But it's hard to test without uninstalling mods just to test.
I have a specific program that I would like to work with peripheral mods like openperipheral, miscperipheral, Immibis's Peripherals, etc. Some of them have specific functions that I would like to call, but if the user of my program doesn't have that mod, it would crash when that is called.
I probably could do a test thing like this (from the top of my head). But if I can't, or the correct way is really complicated then I think something to test if that mod is there would be useful.
if function() then -- function() being a function specific to that mod
return true
else
return false
end
I'm hesitant to actually post this just in case that code is correct, I hate to waste people's time. But it's hard to test without uninstalling mods just to test.