Skip to content

Commit

Permalink
Fix load_hmla_hash_list return type
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyFuller committed Nov 5, 2023
1 parent 9e95e43 commit b396226
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rpkg-gui/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5043,7 +5043,7 @@ public static extern UInt32 generate_localization_line_string(string rpkg_file_n
public static extern int load_hash_list(string path);

[DllImport("rpkg-lib.dll", EntryPoint = "load_hmla_hash_list", CallingConvention = CallingConvention.Cdecl)]
public static extern int load_hmla_hash_list(string path);
public static extern uint load_hmla_hash_list(string path);

[DllImport("rpkg-lib.dll", EntryPoint = "get_hash_list_string", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr get_hash_list_string(string hash_string);
Expand Down
2 changes: 1 addition & 1 deletion src/lib/rpkg_dll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ int load_hash_list(char* path) {
return hash_list_version;
}

int load_hmla_hash_list(char* path) {
uint32_t load_hmla_hash_list(char* path) {
return util::load_hmla_hash_list(std::string(path));
}

Expand Down
2 changes: 1 addition & 1 deletion src/lib/rpkg_dll.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

RPKG_EXPORT int load_hash_list(char* path);

RPKG_EXPORT int load_hmla_hash_list(char* path);
RPKG_EXPORT uint32_t load_hmla_hash_list(char* path);

RPKG_EXPORT char* get_hash_list_string(char* hash_string);

Expand Down

0 comments on commit b396226

Please sign in to comment.