Skip to content

Commit e8ee2cc

Browse files
committed
Fix stuff
1 parent 7d6a242 commit e8ee2cc

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cmake_minimum_required (VERSION 3.6)
33
#----Make changes here
44

55
#This is your project name. And also the filename of the resulting plugin.
6-
project (intercept_database)
6+
project (intercept-database)
77

88
#This setting enables the use of the engine string type instead of converting to std::string.
99
#Enabling this results in better performance when handling strings to SQF commands.

addons/main/config.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ class CfgPatches {
1515
};
1616
class Intercept {
1717
class Dedmen { //Change this. It's either the name of your project if you have more than one plugin. Or just your name.
18-
class template_plugin { //Change this.
19-
pluginName = "template-plugin"; //Change this.
18+
class intercept_database { //Change this.
19+
pluginName = "intercept-database"; //Change this.
2020
};
2121
};
2222
};

src/connection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ game_value Connection::cmd_createConnectionArray(uintptr_t, game_value_parameter
7878
newCon->session = std::make_shared<mysqlx::Session>(settings);
7979

8080

81-
return {};
81+
return newCon;
8282
}
8383

8484
game_value Connection::cmd_query(uintptr_t, game_value_parameter con, game_value_parameter qu) {

src/query.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void Query::initCommands() {
5151
GameDataDBQuery_type = dbType.second;
5252

5353

54-
handle_cmd_prepareQuery = client::host::register_sqf_command("db_createConnection", "TODO", Query::cmd_prepareQuery, dbType.first, game_data_type::ARRAY);
54+
handle_cmd_prepareQuery = client::host::register_sqf_command("db_prepareQuery", "TODO", Query::cmd_prepareQuery, dbType.first, game_data_type::STRING);
5555

5656
//#TODO only accept string,scalar,bool
5757

0 commit comments

Comments
 (0)