Skip to content

Commit

Permalink
Exports: Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Iswenzz committed Dec 17, 2022
1 parent d1a52c8 commit 0e023d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/net/mysql.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ void GScr_MySQL_Execute()

mysql->status = ASYNC_PENDING;
Plugin_AsyncCall(mysql, &MySQL_Execute, &Plugin_AsyncNull);

Plugin_Scr_AddBool(qtrue);
}

Expand Down Expand Up @@ -202,7 +202,7 @@ void GScr_MySQL_SelectDB()
void GScr_MySQL_FetchFields()
{
CHECK_PARAMS(1, "Usage: SQL_FetchFields(<request>)");

MYSQL_REQUEST* mysql = (MYSQL_REQUEST*)Plugin_Scr_GetInt(0);

CHECK_MYSQL_REQUEST(mysql);
Expand Down Expand Up @@ -487,7 +487,7 @@ qboolean Scr_MySQL_FetchStatementRow(MYSQL_REQUEST* mysql, qboolean stringIndexe
}

// Add the value to an array
if (CGSC_SupportIndexedString() && stringIndexed)
if (Plugin_CGSC_SupportIndexedString() && stringIndexed)
Plugin_Scr_AddArrayStringIndexed(Plugin_Scr_AllocString(field->name));
else
Plugin_Scr_AddArray();
Expand Down Expand Up @@ -536,7 +536,7 @@ qboolean Scr_MySQL_FetchQueryRow(MYSQL_REQUEST* mysql, qboolean stringIndexed)
Plugin_Scr_AddString(row[i]);

// Add the value to an array
if (CGSC_SupportIndexedString() && stringIndexed)
if (Plugin_CGSC_SupportIndexedString() && stringIndexed)
Plugin_Scr_AddArrayStringIndexed(Plugin_Scr_AllocString(field->name));
else
Plugin_Scr_AddArray();
Expand Down Expand Up @@ -641,7 +641,7 @@ void MySQL_Query(uv_work_t* req)
mysql->status = ASYNC_FAILURE;
return;
}

mysql->result = mysql_store_result(mysql->handle);
mysql->status = ASYNC_SUCCESSFUL;
}
Expand Down
2 changes: 1 addition & 1 deletion src/sys/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void GScr_GSCLIB_Version()

void GScr_CGSC_Version()
{
Plugin_Scr_AddFloat(CGSC_Version());
Plugin_Scr_AddFloat(Plugin_CGSC_Version());
}

void Sys_PrintF(const char* format, ...)
Expand Down

0 comments on commit 0e023d0

Please sign in to comment.