View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001739 | FSSCP | scripting | public | 2008-07-28 21:32 | 2008-07-29 04:21 |
| Reporter | chief1983 | Assigned To | WMCoolmon | ||
| Priority | normal | Severity | feature | Reproducibility | N/A |
| Status | resolved | Resolution | fixed | ||
| Product Version | 3.6.9 | ||||
| Summary | 0001739: Request for someone to commit this lua function | ||||
| Description | I'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 Information | I 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. | ||||
| Tags | No tags attached. | ||||
|
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
|
|
|
Commitzored. |
| 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 |