It's nice this made it compile again, but it silently breaks Java and Python bindings.r7068 wrote: Modified: trunk/tools/unitsync/javabind.cpp
===================================================================
--- trunk/tools/unitsync/javabind.cpp 2008-11-18 19:20:23 UTC (rev 7067)
+++ trunk/tools/unitsync/javabind.cpp 2008-11-18 20:22:31 UTC (rev 7068)
@@ -26,7 +26,6 @@
DLL_EXPORT const char* __stdcall GetSpringVersion();
DLL_EXPORT void __stdcall Message(const char* p_szMessage);
-DLL_EXPORT int __stdcall Init(bool isServer, int id);
DLL_EXPORT void __stdcall UnInit();
DLL_EXPORT int __stdcall ProcessUnits(void);
DLL_EXPORT int __stdcall ProcessUnitsNoChecksum(void);
@@ -170,7 +169,7 @@
*/
JNIEXPORT jint JNICALL Java_aflobby_CUnitSyncJNIBindings_Init
(JNIEnv *env, jclass myobject, jboolean isServer, jint id){
- return Init(isServer,id);
+ return 1;
}
/*
Modified: trunk/tools/unitsync/pybind.cpp
===================================================================
--- trunk/tools/unitsync/pybind.cpp 2008-11-18 19:20:23 UTC (rev 7067)
+++ trunk/tools/unitsync/pybind.cpp 2008-11-18 20:22:31 UTC (rev 7068)
@@ -22,7 +22,6 @@
DLL_EXPORT const char* __stdcall GetSpringVersion();
DLL_EXPORT void __stdcall Message(const char* p_szMessage);
-DLL_EXPORT int __stdcall Init(bool isServer, int id);
DLL_EXPORT void __stdcall UnInit();
DLL_EXPORT int __stdcall ProcessUnits(void);
DLL_EXPORT int __stdcall ProcessUnitsNoChecksum(void);
@@ -94,7 +93,7 @@
int id;
if (!PyArg_ParseTuple(args, "ii", &isServer, &id))
return NULL;
- return Py_BuildValue("i", Init(isServer, id));
+ return Py_BuildValue("i", 1);
}
I'd rather have you just removed the bindings altogether then (or comment them out or so)

Now it's way to easy to not notice and/or forget about it and end up releasing java/python bindings in which Init is a no-op... (which even returns success..)