View Issue Details

IDProjectCategoryView StatusLast Update
0001739FSSCPscriptingpublic2008-07-29 04:21
Reporterchief1983 Assigned ToWMCoolmon  
PrioritynormalSeverityfeatureReproducibilityN/A
Status resolvedResolutionfixed 
Product Version3.6.9 
Summary0001739: Request for someone to commit this lua function
DescriptionI've been using this function on the FotG test build for a while, we'll need it for the scripted interface we're currently using. Doesn't seem like it's going to break anything, if it does we can get rid of it and find another way. I've attached a patch that should apply to the current SVN revision 4723.
Additional InformationI figured I should try to get this in before the code freeze so I don't keep having to apply it myself, and anyone else's testing builds will work with FotG for now if they're based on SVN.
TagsNo tags attached.

Activities

2008-07-28 21:32

 

scripting_pxo_enabled_check.diff (815 bytes)   
Index: lua.cpp
===================================================================
--- lua.cpp	(revision 4723)
+++ lua.cpp	(working copy)
@@ -9050,6 +9050,17 @@
 	return ADE_RETURN_TRUE;
 }
 
+// Om_tracker_flag should already be set in FreeSpace.cpp, needed to determine if PXO is enabled from the registry
+extern int Om_tracker_flag; // needed for FS2OpenPXO config
+
+ADE_FUNC(isPXOEnabled, l_Testing, NULL, "Returns whether PXO is currently enabled in the configuration.", "boolean", "Whether PXO is enabled or not")
+{
+	if(!(Om_tracker_flag))
+		return ADE_RETURN_FALSE;
+
+	return ADE_RETURN_TRUE;
+}
+
 // *************************Helper functions*********************
 //WMC - This should be used anywhere that an 'object' is set, so
 //that scripters can get access to as much relevant data to that

WMCoolmon

2008-07-29 04:21

developer   ~0009518

Commitzored.

Issue History

Date Modified Username Field Change
2008-07-28 21:32 chief1983 New Issue
2008-07-28 21:32 chief1983 Status new => assigned
2008-07-28 21:32 chief1983 Assigned To => WMCoolmon
2008-07-28 21:32 chief1983 File Added: scripting_pxo_enabled_check.diff
2008-07-29 04:21 WMCoolmon Note Added: 0009518
2008-07-29 04:21 WMCoolmon Status assigned => resolved
2008-07-29 04:21 WMCoolmon Resolution open => fixed