Our server pr0vider carried out maintenance on 15 January 2020 but it corrupted some files in the process. If you notice anything out of the ordinary (partial files, pages not loading, that kind of shit) then let us know at:

Browse Source

Forgot about a couple writetimer offset things xd

Wazakindjes 1 year ago
parent
commit
3cf1c46fd8
3 changed files with 6 additions and 6 deletions
  1. 1 1
      README.md
  2. 1 1
      sauce/win/src/str0kem.cpp
  3. 4 4
      sauce/win/str0kem.rc

+ 1 - 1
README.md

@@ -131,7 +131,7 @@ The counter file should be written if the br0gram receives any of these signals:
 As far as I can tell, unloading through `launchctl` __and__ using the `Quit` option in Activity Manager (__not__ `Force Quit`) both result in the file being properly written. Shutting down y0 Mac goes through `launchd` as well so it should be the same for that. [[=[=[==[[=[==[[==[=[
 
 ### Wind0ngs
-It doesn't actually generate signals the way Unixy systems do, but instead uses the `TerminateProcess` API which might kill the process without notification (thanks Microsoft). Meaning the file is only written on termination if you run the `.exe` from a `cmd` and you `Ctrl+C` that shit (which does seem to gener8 `SIGINT`). Wind0ngs seems to be running timers __in parallel__ so we do have to purposely stall/offset the timer for writing the counter file. Otherwise both the MySQL insert and this timer might run together, resulting in a counter file with stale data. As such this particular timer will fire every minute but inside of it there's a wait for at least 200 milliseconds, it will also sleep additional 10ms for as long as MySQL is inserting.
+It doesn't actually generate signals the way Unixy systems do, but instead uses the `TerminateProcess` API which might kill the process without notification (thanks Microsoft). Meaning the file is only written on termination if you run the `.exe` from a `cmd` and you `Ctrl+C` that shit (which does seem to gener8 `SIGINT`). Wind0ngs seems to be running timers __in parallel__ so we do have to purposely stall/offset the timer for writing the counter file. Otherwise both the MySQL insert and this timer might run together, resulting in a counter file with stale data. As such this particular timer will fire every minute but inside of it there's a wait for at least 200 milliseconds, it will also sleep additional 20ms for as long as MySQL is inserting.
 
 # Custom compilation
 First off, I've included project files/solution bullshit so you should be able to just open those in your IDE and start editing. They should all contain relative paths regarding sauce/incl00d dirs etc, but to make sure it werks try compiling right away without any modifications. Just make sure you've installed the proper libraries first 0bv (i.e. follow the steps below first). ;]

+ 1 - 1
sauce/win/src/str0kem.cpp

@@ -157,7 +157,7 @@ int WinMain(HINSTANCE hinst, HINSTANCE hprevinst, LPSTR cmdline, int showcmd) {
 	}
 
 	// Apparently Wind0ngs run timers in parallel, so need to offset this shit by a couple hundred milliseconds to make sure the SQL timers runs first =]
-	writetimer = SetTimer(NULL, 0, ((JM_TIMER_COUNTERWRITE_INTERVAL * 1000) + 147), (TIMERPROC)writemStats);
+	writetimer = SetTimer(NULL, 0, (JM_TIMER_COUNTERWRITE_INTERVAL * 1000), (TIMERPROC)writemStats);
 	if(!writetimer) {
 		error = GetLastError();
 		JM_GIBERRSTR(error, lpbuf);

+ 4 - 4
sauce/win/str0kem.rc

@@ -70,8 +70,8 @@ IDR_MYSQLDLL            DLL MOVEABLE PURE       "lib\\libmysql.dll"
 //
 
 VS_VERSION_INFO VERSIONINFO
- FILEVERSION 1,1,0,33
- PRODUCTVERSION 1,1,0,33
+ FILEVERSION 1,1,0,34
+ PRODUCTVERSION 1,1,0,34
  FILEFLAGSMASK 0x3fL
 #ifdef _DEBUG
  FILEFLAGS 0x1L
@@ -87,11 +87,11 @@ BEGIN
         BLOCK "040904b0"
         BEGIN
             VALUE "FileDescription", "str0kem"
-            VALUE "FileVersion", "1.1.0.33"
+            VALUE "FileVersion", "1.1.0.34"
             VALUE "InternalName", "str0kem"
             VALUE "LegalCopyright", "Copyright © 2019 Wazakindjes"
             VALUE "ProductName", "str0kem"
-            VALUE "ProductVersion", "1.1.0.33"
+            VALUE "ProductVersion", "1.1.0.34"
         END
     END
     BLOCK "VarFileInfo"