Skip to content

Commit

Permalink
Fix crash due to missing action icons
Browse files Browse the repository at this point in the history
  • Loading branch information
KonaeAkira committed Jun 28, 2024
1 parent 886b2cf commit 76753b1
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ members = ["simulator", "solvers", "game_data"]

[package]
name = "raphael-xiv"
version = "0.7.0-patch7.0"
version = "0.7.0"
edition = "2021"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Raphael is a crafting rotation solver for the online game Final Fantasy XIV.
* Produces optimal solutions. Achieving higher quality than the solver is impossible.
* Short solve time (5-15 seconds) and reasonable memory usage (300-500 MB).
* Short solve time (5-20 seconds) and reasonable memory usage (300-500 MB).

## How does it work?

Expand Down
2 changes: 1 addition & 1 deletion docs/dummy_worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function makeClosure(arg0, arg1, dtor, f) {
return real;
}
function __wbg_adapter_16(arg0, arg1, arg2) {
wasm._dyn_core__ops__function__Fn__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h37fdc4ad7d0dba3f(arg0, arg1, addHeapObject(arg2));
wasm._dyn_core__ops__function__Fn__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha97f34288f71d8b1(arg0, arg1, addHeapObject(arg2));
}

function makeMutClosure(arg0, arg1, dtor, f) {
Expand Down
Binary file modified docs/dummy_worker_bg.wasm
Binary file not shown.
10 changes: 5 additions & 5 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

<!-- config for our rust wasm binary. go to https://trunkrs.dev/assets/#rust for more customization -->

<script type="module" nonce="eFOrLVvGCEykA/ewOk4Blw==">
import init, * as bindings from 'https://www.raphael-xiv.com/raphael-xiv-abce274068e3d57a.js';
const wasm = await init('https://www.raphael-xiv.com/raphael-xiv-abce274068e3d57a_bg.wasm');
<script type="module" nonce="80RnAkPdPgACFX11OwXmvA==">
import init, * as bindings from 'https://www.raphael-xiv.com/raphael-xiv-5df6a750a855cf6a.js';
const wasm = await init('https://www.raphael-xiv.com/raphael-xiv-5df6a750a855cf6a_bg.wasm');


window.wasmBindings = bindings;
Expand Down Expand Up @@ -126,8 +126,8 @@
}
</style>

<link rel="modulepreload" href="https://www.raphael-xiv.com/raphael-xiv-abce274068e3d57a.js" crossorigin=anonymous integrity="sha384-OWfAsqpFBN4Litdh/Kx9B69YQuSF6/PGuiz5nYnNeGtAorxVpRXcjXvUmIVrLZVx">
<link rel="preload" href="https://www.raphael-xiv.com/raphael-xiv-abce274068e3d57a_bg.wasm" crossorigin=anonymous integrity="sha384-mbVl289JyDEFSaxopqvCHBEkUmkJywFabg8dsenpMTGDWx3UThCUUewV37z8nxo5" as="fetch" type="application/wasm"></head>
<link rel="modulepreload" href="https://www.raphael-xiv.com/raphael-xiv-5df6a750a855cf6a.js" crossorigin=anonymous integrity="sha384-aTEo04LVyzzwb179l5m8T+EzmhIU673n9dAKY3d02VpY3VQ7nzLPxpl5KvjGudrh">
<link rel="preload" href="https://www.raphael-xiv.com/raphael-xiv-5df6a750a855cf6a_bg.wasm" crossorigin=anonymous integrity="sha384-lDGSe4O2dONFpBi1WnXfvxfGgKKtfhwCYkeED0BtixtsLJClHskFh8JZ9KA8LFIc" as="fetch" type="application/wasm"></head>

<body>
<!-- The WASM code will resize the canvas dynamically -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ function makeClosure(arg0, arg1, dtor, f) {
return real;
}
function __wbg_adapter_28(arg0, arg1, arg2) {
wasm._dyn_core__ops__function__Fn__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h67c4cced433020bc(arg0, arg1, addHeapObject(arg2));
wasm._dyn_core__ops__function__Fn__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h3bbe63c514ffe3ce(arg0, arg1, addHeapObject(arg2));
}

function makeMutClosure(arg0, arg1, dtor, f) {
Expand Down Expand Up @@ -1519,7 +1519,7 @@ function __wbg_get_imports() {
const ret = makeMutClosure(arg0, arg1, 54, __wbg_adapter_34);
return addHeapObject(ret);
};
imports.wbg.__wbindgen_closure_wrapper741 = function(arg0, arg1, arg2) {
imports.wbg.__wbindgen_closure_wrapper742 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 54, __wbg_adapter_37);
return addHeapObject(ret);
};
Expand Down
Binary file not shown.
12 changes: 12 additions & 0 deletions src/assets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,5 +122,17 @@ pub fn get_action_icons() -> HashMap<Action, image::RgbImage> {
Action::TrainedFinesse,
include_bytes!("../assets/actions/Trained Finesse.png"),
);
load_icon(
Action::ComboRefinedTouch,
include_bytes!("../assets/actions/Refined Touch.png"),
);
load_icon(
Action::ImmaculateMend,
include_bytes!("../assets/actions/Immaculate Mend.png"),
);
load_icon(
Action::TrainedPerfection,
include_bytes!("../assets/actions/Trained Perfection.png"),
);
images
}

0 comments on commit 76753b1

Please sign in to comment.