Skip to content

Commit

Permalink
small tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
mika-n committed Jan 26, 2021
1 parent 024e751 commit c1864fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/NGPCarMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,7 @@ void CNGPCarMenu::RefreshSettingsFromPluginINIFile(bool fistTimeRefresh)
// The latest INI fileFormat is 2
iFileFormat = pluginINIFile.GetValueEx(L"Default", L"", L"FileFormat", 2);

this->m_screenshotReplayFileName = pluginINIFile.GetValueEx(L"Default", L"", L"ScreenshotReplay", L"");
//this->m_screenshotReplayFileName = pluginINIFile.GetValueEx(L"Default", L"", L"ScreenshotReplay", L"");

this->m_screenshotPath = pluginINIFile.GetValueEx(L"Default", L"", L"ScreenshotPath", L"");
this->m_screenshotPathRSF = pluginINIFile.GetValueEx(L"Default", L"", L"RSF_ScreenshotPath", L"");
Expand Down Expand Up @@ -3438,7 +3438,7 @@ int CNGPCarMenu::GetNextScreenshotCarID(int currentCarID)
}


#if USE_DEBUG == 1
#if 0
//------------------------------------------------------------------------------------------------
// Prepare RBR "screenshot replay file" for a new car 3D model (replay was saved using certain car model, but modify it on the fly to show another car model)
// CarID is the RBR car slot# 0..7
Expand Down
7 changes: 2 additions & 5 deletions src/NGPCarMenu.h
Original file line number Diff line number Diff line change
Expand Up @@ -723,10 +723,7 @@ class CNGPCarMenu : public IPlugin
void DrawRecentResultsTable(int posX, int posY, std::vector<RaceStatDBStageResult>& latestStageResults, bool drawStageRecordTitleRow = false);

int GetNextScreenshotCarID(int currentCarID);

#if USE_DEBUG == 1
static bool PrepareScreenshotReplayFile(int carID);
#endif
//static bool PrepareScreenshotReplayFile(int carID);

std::wstring ReplacePathVariables(const std::wstring& sPath, int selectedCarIdx = -1, bool rbrtmplugin = false, int mapID = -1, const WCHAR* mapName = nullptr, const std::string& folderName = "");
bool ReadCarPreviewImageFromFile(int selectedCarIdx, float x, float y, float cx, float cy, IMAGE_TEXTURE* pOutImageTexture, DWORD dwFlags = 0, bool isRBRTMPlugin = false);
Expand Down Expand Up @@ -814,7 +811,7 @@ class CNGPCarMenu : public IPlugin
std::wstring m_screenshotPathRSF; // Path to RSF specific car preview screenshot images (by default AppPath + \rsfdata\images\car_images\)

int m_screenshotAPIType; // Uses DIRECTX or GDI API technique to generate a new screenshot file. 0=DirectX (default), 1=GDI. No GUI option, so tweak this in NGPCarMenu.ini file.
std::wstring m_screenshotReplayFileName; // Name of the RBR replay file used when car preview images are generated
//std::wstring m_screenshotReplayFileName; // Name of the RBR replay file used when car preview images are generated

std::wstring m_rbrCITCarListFilePath; // Path to RBRCIT carList.ini file (the file has NGP car details and specs information)
std::wstring m_easyRBRFilePath; // Path to EesyRBR installation folder (if RBRCIT car manager is not used)
Expand Down

0 comments on commit c1864fe

Please sign in to comment.