UnleashedRecomp icon indicating copy to clipboard operation
UnleashedRecomp copied to clipboard

LOG_UTILITY doesn't work on Linux because _DEBUG is not set

Open JillianTo opened this issue 9 months ago • 1 comments

Validation

  • [x] I have checked the Issues page to see if my problem has already been reported
  • [ ] I have confirmed that this bug does not occur in the original game running on original Xbox 360 hardware

If you have DLC installed, please specify which ones you have.

  • [ ] Apotos & Shamar Adventure Pack
  • [ ] Chun-nan Adventure Pack
  • [ ] Empire City & Adabat Adventure Pack
  • [ ] Holoska Adventure Pack
  • [ ] Mazuri Adventure Pack
  • [ ] Spagonia Adventure Pack

If you have mods enabled, please specify which ones you have.

No response

If you have codes enabled, please specify which ones you have.

No response

Describe the Bug

I built UnleashedRecomp with the linux-debug preset, and none of the LOG_UTILITY messages show unless I manually set UnleashedRecomp/os/logger.h:17 to the same as line 15.

Steps to Reproduce

  1. Build with linux-debug preset
  2. Run and don't see any "--STUB--" messages

Expected Behavior

See "--STUB--" messages, which I do see when I manually set UnleashedRecomp/os/logger.h:17 to the same as line 15.

System Specifications

  • CPU: Intel Core i5 9400f
  • GPU: Radeon RX 580
  • GPU Driver: amd-gpu-firmware 20241210-1.fc41
  • OS: Fedora 41

Additional Context

No response

JillianTo avatar Mar 19 '25 17:03 JillianTo

Can you make a PR that defines _DEBUG on the preset for linux on CMakePresets then? Or a more cross-platform flag for this?

DarioSamo avatar Mar 19 '25 18:03 DarioSamo