Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Commit

Permalink
1.0.1: Optimize imports, add exception handling, fix region resize gl…
Browse files Browse the repository at this point in the history
…itch, add more instructions
  • Loading branch information
hardronix122 committed Jul 21, 2023
1 parent f13fbe1 commit 1e43e90
Show file tree
Hide file tree
Showing 8 changed files with 335 additions and 52 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
cmake_minimum_required(VERSION 3.16)
set(CMAKE_CXX_STANDARD 23)

# Name of the plugin #
project(imhexqb)
# ImHexQb #
project(imhexqb VERSION 1.0.1)

# Include ImHex cmake module #
set(IMHEX_BASE_FOLDER ${CMAKE_CURRENT_SOURCE_DIR}/ImHex)
Expand All @@ -16,7 +16,7 @@ addDefines()
# Add your source files here #
add_library(${PROJECT_NAME} SHARED
source/imhexqb_plugin.cpp
source/qb_recompiler_view.cpp source/qb/qb_recompiler.cpp include/misc/cpp/imgui_stdlib.cpp include/misc/cpp/imgui_stdlib.h source/qb/qb_crc.cpp source/qb/qb_crc.h)
source/qb_recompiler_view.cpp source/qb/qb_recompiler.cpp include/misc/cpp/imgui_stdlib.cpp include/misc/cpp/imgui_stdlib.h source/qb/qb_crc.cpp source/qb/qb_crc.h source/qb/exception/qb_exception.h)

# Add additional include directories here #
target_include_directories(${PROJECT_NAME} PRIVATE include)
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ Almost everything, except for:
+ Long Integer
+ Float Integer
+ String
+ Vector
+ Pair
+ Function
+ End Function
+ ArgStack / Global
+ AllArgs / isNull
+ Checksum
+ Dot
+ Comma
Expand Down
1 change: 0 additions & 1 deletion source/imhexqb_plugin.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include <hex/plugin.hpp>

#include <hex/api/content_registry.hpp>
#include <hex/ui/view.hpp>

#include "qb_recompiler_view.h"

Expand Down
19 changes: 19 additions & 0 deletions source/qb/exception/qb_exception.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#ifndef QB_EXCEPTION_H
#define QB_EXCEPTION_H

#include <exception>
#include <string>
#include <utility>

class qb_exception : public std::exception {
private:
std::string errorMessage;
public:
explicit qb_exception(std::string message) : errorMessage(std::move(message)) {}

[[nodiscard]] const char* what() const noexcept override {
return errorMessage.c_str();
}
};

#endif
Loading

0 comments on commit 1e43e90

Please sign in to comment.