Skip to content

Commit 7bf06d1

Browse files
authored
Minor fixes. (#113)
1 parent f363d5f commit 7bf06d1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
- 'argument count' parameter of **0AB2 (cleo_return)** is now optional. `cleo_return 0` can be written as `cleo_return`
6666
- **cleo_return_\*** opcodes now can pass strings as return arguments
6767
- SCM functions **(0AB1)** now keep their own GOSUB's call stack
68-
- fixed bug in **0AD4 ([scan_string](https://library.sannybuilder.com/#/sa/text/2604))** causing data overruns when reading strins longer than target variable
68+
- fixed bug in **0AD4 ([scan_string](https://library.sannybuilder.com/#/sa/text/2604))** causing data overruns when reading strings longer than target variable
6969
- fixed result register not being cleared before function call in opcodes **0AA7** and **0AA8**
7070
- changes in file operations
7171
- file paths can now use 'virtual absolute paths'. Use prefix in file path strings to access predefined locations:

cleo_plugins/FileSystemOperations/FileSystemOperations.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ class FileSystemOperations
687687
return OR_CONTINUE;
688688
}
689689

690-
//2302=3,write_block_to_file %1d% size %2d% address %3d% // IF and SET
690+
//2302=3, write_block_to_file %1d% size %2d% address %3d% // IF and SET
691691
static OpcodeResult WINAPI opcode_2302(CRunningScript* thread)
692692
{
693693
auto handle = READ_FILE_HANDLE_PARAM();

cleo_sdk/CLEO_Utils.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ namespace CLEO
398398

399399
if ((size_t)target.data <= MinValidAddress)
400400
{
401-
SHOW_ERROR("Invalid '0x%X' target pointer of output string argument in script %s \nScript suspended.", str, ScriptInfoStr(thread).c_str());
401+
SHOW_ERROR("Invalid '0x%X' target pointer of output string argument in script %s \nScript suspended.", target.data, ScriptInfoStr(thread).c_str());
402402
thread->Suspend();
403403
return false;
404404
}

0 commit comments

Comments
 (0)