Skip to content

Commit

Permalink
test 10
Browse files Browse the repository at this point in the history
  • Loading branch information
x87 committed Jun 8, 2024
1 parent 45b7812 commit 7543781
Show file tree
Hide file tree
Showing 19 changed files with 346 additions and 283 deletions.
9 changes: 5 additions & 4 deletions CLEO4.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
<ClInclude Include="source\CGameVersionManager.h" />
<ClInclude Include="source\CLegacy.h" />
<ClInclude Include="source\cleo.h" />
<ClInclude Include="source\CleoVersion.h" />
<ClInclude Include="source\CModuleSystem.h" />
<ClInclude Include="source\CPluginSystem.h" />
<ClInclude Include="source\crc32.h" />
Expand Down Expand Up @@ -110,15 +111,15 @@
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<OutDir>$(SolutionDir)output\$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)output\.obj\$(Configuration)\</IntDir>
<OutDir>$(SolutionDir).output\$(Configuration)\</OutDir>
<IntDir>$(SolutionDir).output\.obj\$(Configuration)\</IntDir>
<TargetName>CLEO</TargetName>
<TargetExt>.asi</TargetExt>
<IncludePath>$(PLUGIN_SDK_DIR)\shared\;$(PLUGIN_SDK_DIR)\shared\game\;$(IncludePath)</IncludePath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<OutDir>$(SolutionDir)output\$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)output\.obj\$(Configuration)\</IntDir>
<OutDir>$(SolutionDir).output\$(Configuration)\</OutDir>
<IntDir>$(SolutionDir).output\.obj\$(Configuration)\</IntDir>
<TargetName>CLEO</TargetName>
<TargetExt>.asi</TargetExt>
<IncludePath>$(PLUGIN_SDK_DIR)\shared\;$(PLUGIN_SDK_DIR)\shared\game\;$(IncludePath)</IncludePath>
Expand Down
9 changes: 9 additions & 0 deletions cleo_sdk/CLEO.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ typedef union
#define globalVarSString 0x0A //s$
#define localVarSString 0x0B //@s

// CLEO virtual paths prefixes. Expandable with CLEO_ResolvePath
const char DIR_GAME[] = "0:"; // game root directory
const char DIR_USER[] = "1:"; // game save directory
const char DIR_SCRIPT[] = "2:"; // current script directory
const char DIR_CLEO[] = "3:"; // game\cleo directory
const char DIR_MODULES[] = "4:"; // game\cleo\modules directory

typedef int SCRIPT_HANDLE;
typedef SCRIPT_HANDLE HANDLE_ACTOR, ACTOR, HACTOR, PED, HPED, HANDLE_PED;
Expand Down Expand Up @@ -140,6 +146,9 @@ void WINAPI CLEO_AddScriptDeleteDelegate(FuncScriptDeleteDelegateT func);

void WINAPI CLEO_RemoveScriptDeleteDelegate(FuncScriptDeleteDelegateT func);

// convert to absolute file path
void WINAPI CLEO_ResolvePath(CScriptThread* thread, char* inOutPath, DWORD pathMaxLen);

#ifdef __cplusplus
}
#endif //__cplusplus
Loading

0 comments on commit 7543781

Please sign in to comment.