Skip to content

Commit

Permalink
Resolve a bunch of warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzaboxer committed Jul 27, 2024
1 parent 1550e17 commit 5a30453
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
14 changes: 8 additions & 6 deletions RBXGSConHost/RBXGSConHost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,20 @@ BOOL WINAPI WriteClient(HCONN ConnID, LPVOID Buffer, LPDWORD lpdwBytes, DWORD dw
std::stringstream response;

time_t rawtime;
struct tm *timeinfo;
struct tm timeinfo;
char timeHeaderBuf[64];

time(&rawtime);
timeinfo = gmtime(&rawtime);
if (!_gmtime64_s(&timeinfo, &rawtime))
{
strftime(timeHeaderBuf, sizeof(timeHeaderBuf), "%a, %d %b %Y %H:%M:%S GMT", &timeinfo);
response << "Date: " << timeHeaderBuf << "\r\n";
}

strftime(timeHeaderBuf, sizeof(timeHeaderBuf), "%a, %d %b %Y %H:%M:%S GMT", timeinfo);

response << "Date: " << timeHeaderBuf << "\r\n";
response << "Server: RBXGSConHost\r\n";

if (strnicmp(szBuffer, "<soap:", 6) == 0 || strncmp(szBuffer, "<?xml", 5) == 0)
if (_strnicmp(szBuffer, "<soap:", 6) == 0 || strncmp(szBuffer, "<?xml", 5) == 0)
response << "Content-Type: text/xml\r\n";

response << "Content-Length: " << *lpdwBytes << "\r\n";
Expand Down Expand Up @@ -351,7 +353,7 @@ bool InitializeSymbolHook()
return false;
}

if (moduleInfo.SymType != SYM_TYPE::SymPdb)
if (moduleInfo.SymType != SymPdb)
{
puts("Could not find WebService.pdb");
return false;
Expand Down
8 changes: 4 additions & 4 deletions RBXGSConHost/RBXGSConHost.rc
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ END
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,0,0
PRODUCTVERSION 1,0,0,0
FILEVERSION 1,1,0,0
PRODUCTVERSION 1,1,0,0
FILEFLAGSMASK 0x17L
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -70,11 +70,11 @@ BEGIN
BLOCK "040904b0"
BEGIN
VALUE "FileDescription", "Console host emulator for RBXGS"
VALUE "FileVersion", "1, 0, 0, 0"
VALUE "FileVersion", "1, 1, 0, 0"
VALUE "InternalName", "RBXGSConHost"
VALUE "OriginalFilename", "RBXGSConHost.exe"
VALUE "ProductName", " RBXGS Console Host"
VALUE "ProductVersion", "1, 0, 0, 0"
VALUE "ProductVersion", "1, 1, 0, 0"
END
END
BLOCK "VarFileInfo"
Expand Down
2 changes: 2 additions & 0 deletions RBXGSConHost/RBXGSConHost.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@
Name="VCLinkerTool"
AdditionalDependencies="Ws2_32.lib Iphlpapi.lib Dbghelp.lib Shlwapi.lib lib\libMinHook-x86-v90-mtd.lib"
LinkIncremental="1"
IgnoreAllDefaultLibraries="false"
IgnoreDefaultLibraryNames="LIBCMTD"
GenerateDebugInformation="true"
SubSystem="1"
OptimizeReferences="2"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# RBXGS Console Host

A console host for RBXGS, allowing you to run it without needing IIS, effectively making it work a lot like RCCService. At its core it's basically just an incredibly barebones [ISAPI extension](https://learn.microsoft.com/en-us/previous-versions/iis/6.0-sdk/ms525172(v=vs.90)) host emulator.
A console host for RBXGS, allowing you to run it without needing IIS, effectively making it work a lot like RCCService. At its core it's basically just an incredibly barebones [ISAPI extension](https://learn.microsoft.com/en-us/previous-versions/iis/6.0-sdk/ms525172(v=vs.90)) host emulator.

The base directory is the directory where the RBXGS binaries and content folder are located. By default, it is the folder that RBXGSConHost.exe is in.

Usage:
- `-b, --baseDir "<absolute path>"` - Set base directory, absolute path, wrapped in double quotes, no trailing backslash
- `-p, --port <port>` - Set Web Service port
- `-p, --port <port>` - Set Web Service port, default is 64989

This *must* be compiled using MSVC 8 on Visual Studio 2005. Releases are given if you don't feel like spending a few hours setting up an environment to do that, or dealing with the 40% chance of it crashing whenever you click on it.

Expand Down

0 comments on commit 5a30453

Please sign in to comment.