| 700 | EXTERN_C BOOL __stdcall XMemSetAllocationHysteresis() |
| 701 | { |
| 702 | SetLastError(ERROR_CALL_NOT_IMPLEMENTED); |
| 703 | return FALSE; |
| 704 | } |
| 705 | |
| 706 | EXTERN_C SIZE_T __stdcall XMemGetAllocationHysteresis() |
| 707 | { |
| 708 | SetLastError(ERROR_CALL_NOT_IMPLEMENTED); |
| 709 | return MAXSIZE_T; |
| 710 | } |
| 711 | |
| 712 | EXTERN_C BOOL __stdcall XMemPreallocateFreeSpace() |
| 713 | { |
| 714 | SetLastError(ERROR_CALL_NOT_IMPLEMENTED); |
| 715 | return FALSE; |
| 716 | } |
| 717 | |
| 718 | EXTERN_C BOOL __stdcall XMemGetAllocationStatistics() |
| 719 | { |
| 720 | SetLastError(ERROR_CALL_NOT_IMPLEMENTED); |
| 721 | return FALSE; |
| 722 | } |
| 723 | |
| 724 | EXTERN_C HANDLE __stdcall XMemGetAuxiliaryTitleMemory() |
| 725 | { |
| 726 | SetLastError(ERROR_CALL_NOT_IMPLEMENTED); |
| 727 | return nullptr; |
| 728 | } |
| 729 | |
| 730 | EXTERN_C void __stdcall XMemReleaseAuxiliaryTitleMemory(_In_opt_ HANDLE hHandle) |
| 731 | { |
| 732 | UNREFERENCED_PARAMETER(hHandle); |
| 733 | SetLastError(ERROR_CALL_NOT_IMPLEMENTED); |
| 734 | } |
| 735 | |
| 736 | |
| 737 | void FixRelativePath(LPCWSTR &lpFileName) |
| 738 | { |
| 739 | static std::wstring convert{}; |
| 740 | std::wstring_view fileName(lpFileName); |
| 741 | |
| 742 | if (fileName.size() == 0) |
| 743 | return; |
| 744 | |
| 745 | if (wcsncmp(lpFileName, L"GAME:", 5) == 0) |
| 746 | { |
| 747 | static std::wstring trimPath{}; |
| 748 | trimPath = fileName.substr(5); |
| 749 | fileName = trimPath.data(); |
| 750 | convert = std::filesystem::current_path().c_str(); |
| 751 | convert.append(fileName); |
| 752 | std::replace(convert.begin(), convert.end(), L'\\', L'/'); |
| 753 | std::replace(convert.begin(), convert.end(), L'//', L'/'); |
| 754 | |
| 755 | lpFileName = convert.data(); |
| 756 | return; |
| 757 | } |
| 758 | if (fileName[0] == '.' && fileName[1] == '\\') |
| 759 | { |
no test coverage detected