Skip to content

Commit 37c7676

Browse files
committed
fix small issues
1 parent 9e9a780 commit 37c7676

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

XenonEffects/src/Render/xSprites.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ class XSpriteList
198198
void Lock()
199199
{
200200
mCurrViewBuffer = mNumViews;
201-
mNumViews = (mNumViews + 1) % NumViews;
201+
//mNumViews = (mNumViews + 1) % NumViews;
202202
mSprintListView[mCurrViewBuffer].Lock();
203203
}
204204

XenonEffects/src/dllmain.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ float ContrailSpeed = 44.0f;
4444
float ContrailMinIntensity = 0.1f;
4545
float ContrailMaxIntensity = 0.75f;
4646
float SparkIntensity = 1.0f;
47-
char TPKfilename[128] = { "GLOBAL\\XenonEffects.tpk" };
47+
char TPKfilename[MAX_PATH] = { "GLOBAL\\XenonEffects.tpk" };
48+
char INIPath[MAX_PATH] = { '\0' };
4849

4950
void __stdcall LoadResourceFile(char* filename, int ResType, int unk1, void* unk2, void* unk3, int unk4, int unk5)
5051
{
@@ -326,7 +327,7 @@ bool bValidateHexString(char* str)
326327

327328
void InitConfig()
328329
{
329-
mINI::INIFile inifile("NFSMW_XenonEffects.ini");
330+
mINI::INIFile inifile(INIPath);
330331
mINI::INIStructure ini;
331332
inifile.read(ini);
332333

@@ -517,6 +518,7 @@ BOOL APIENTRY DllMain(HMODULE /*hModule*/, DWORD reason, LPVOID /*lpReserved*/)
517518
// defer mod init until the game itself has initialized
518519
// so we can safely allocate memory
519520
CheckMultipleInstance = injector::MakeCALL(0x666597, EarlyInitializeEverythingHook, true).get();
521+
GetFullPathNameA("NFSMW_XenonEffects.ini", MAX_PATH, INIPath, NULL);
520522
}
521523
return TRUE;
522524
}

0 commit comments

Comments
 (0)